...
Code Block | ||
---|---|---|
| ||
<ScriptRules>
<!--
Description: ScriptRules to migrate MSComDlg.CommonDialog to Winforms Common Dialog classes
-->
<ScriptRule id="comdlg32.OCX" Condition="%TaskTag%=~(upg)">
<Option>
<Registry type="MigFile" source="comdlg32.OCX" target="comdlg32.OCX.WinForms.Refactor" />
</Option>
<Compile Condition="%SrcName%=='ic_FuncLib'">
<Refactor errorStatus="Warn">
<FixType identifier="ic_FuncLib.clsFuncLib.OpenFileDialog.cDlg" type="MSComDlg.OpenFileDialog" />
<FixType identifier="ic_FuncLib.clsFuncLib.SaveAsDialog.cDlg" type="MSComDlg.SaveFileDialog" />
<FixType identifier="ic_FuncLib.clsFuncLib.SetDefaultPrinter.cDlg" type="MSComDlg.PrintDialog" />
</Refactor>
</Compile>
h <Author Condition="%SrcName%=='ic_FuncLib'">
<Fix host="ic_FuncLib" name="PostEdit">
<Replace status="active" name="Cleanup Common Dialog instance">
<OldBlock><![CDATA[this.cmDlg = new System.Windows.Forms.CommonDialog();]]></OldBlock>
</Replace>
</Fix>
</Author>
<Compile Condition="%SrcName%=~'devOPOSposprn|appmain'">
<Fix host="%SrcName%" name="PreEdit">
<Replace status="active" name="Migrate CommonDialog as OpenFileDialog">
<OldBlock><![CDATA[Begin MSComDlg.CommonDialog]]></OldBlock>
<NewBlock><![CDATA[Begin MSComDlg.OpenFileDialog]]></NewBlock>
</Replace>
</Fix>
</Compile>
<Compile Condition="%SrcName%=='ic_Company'">
<Fix host="%SrcName%" name="PreEdit">
<Replace status="active" name="Migrate CommonDialog as ColorDialog">
<OldBlock><![CDATA[Begin MSComDlg.CommonDialog CommonDialog1]]></OldBlock>
<NewBlock><![CDATA[Begin MSComDlg.ColorDialog CommonDialog1]]></NewBlock>
</Replace>
</Fix>
</Compile>
<Compile Condition="%SrcName%=='ic_RptsFinancial'">
<Fix host="%SrcName%" name="PreEdit">
<Replace status="active" name="Remove unused CommonDialog">
<OldBlock><![CDATA[
Begin MSComDlg.CommonDialog CommonDialog1
...
End
]]></OldBlock>
</Replace>
</Fix>
</Compile>
<Compile Condition="%SrcName%=='ic_RptsGeneral'">
<Fix host="ic_RptsGeneral" name="PreEdit">
<Replace status="active" name="Migrate CommonDialog as PrintDialog">
<OldBlock><![CDATA[Begin MSComDlg.CommonDialog CommonDialog1]]></OldBlock>
<NewBlock><![CDATA[Begin MSComDlg.PrintDialog CommonDialog1]]></NewBlock>
</Replace>
</Fix>
</Compile>
<Author Condition="%SrcName%=='ic_FuncLib|devOPOSposprn'">
<Fix host="%SrcName%" name="PostEdit">
<Replace status="active" name="Cleanup Spurious new from control">
<OldBlock><![CDATA[this.cmDlg = new System.Windows.Forms.CommonDialog();]]></OldBlock>
</Replace>
</Fix>
</Author>
</ScriptRule>
</ScriptRules>
|
...