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); }
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); }
private void cuf_FormClosing(object sender, FormClosingEventArgs e) { cuf = null; ((Form)sender).Dispose(); }