public SSSEditorForm(string gct, string pac) { InitializeComponent(); foreach (Control c in tblColorCodeKeys.Controls) { c.DoubleClick += (o, e) => { tblColorCodeKeys.Visible = false; }; } try { Icon = Icon.ExtractAssociatedIcon(System.Reflection.Assembly.GetCallingAssembly().Location); } catch (Exception e) { Console.WriteLine(e.StackTrace); } tabControl1.SelectedIndexChanged += tabControl1_SelectedIndexChanged; sss = gct != null ? new CustomSSSCodeset(gct) : new CustomSSSCodeset(); if (pac != null) { ReloadIfValidPac(pac); } else { md80 = new BRRESNode(); ReloadData(); } FormClosed += (o, e) => TempFiles.DeleteAll(); }
private void closed(object sender, FormClosedEventArgs e) { TempFiles.DeleteAll(); }