示例#1
0
        public void loadAssetsFileInNewWin(string file_name)
        {
            if (cuf == null)
            {
                cuf = new COH_CostumeUpdaterForm();

                cuf.FormClosing += new FormClosingEventHandler(cuf_FormClosing);
            }

            cuf.loadAssetsTrick(file_name);

            cuf.showCfx(this.MenuStripColor);

            cuf.fxLauncher.selectFxFile(file_name);
        }
示例#2
0
        public void loadPartFileInNewWin(string file_name)
        {
            if (cuf == null)
            {
                cuf = new COH_CostumeUpdaterForm();

                cuf.FormClosing -= new FormClosingEventHandler(cuf_FormClosing);
                cuf.FormClosing += new FormClosingEventHandler(cuf_FormClosing);
            }

            if (cuf.tgaFilesDictionary == null || cuf.tgaFilesDictionary.Count == 0)
            {
                cuf.tgaFilesDictionary = this.tgaFilesDictionary.ToDictionary(k => k.Key, k => k.Value);
            }

            cuf.loadPartFile(file_name);

            cuf.showCfx(this.MenuStripColor);

            cuf.fxLauncher.selectFxFile(file_name);
        }
示例#3
0
 private void cuf_FormClosing(object sender, FormClosingEventArgs e)
 {
     cuf = null;
     ((Form)sender).Dispose();
 }