public fMain(string[] args) { Directory.SetCurrentDirectory(Application.StartupPath); this.args = args; MainForm = this; RegistryWorker.PreLoad(); InitializeComponent(); RegistryWorker.Load(); highlighter = new Highlighter(); }
private void fMain_FormClosing(object sender, FormClosingEventArgs e) { foreach (EditorTab tab in tabControl.TabPages) { if (!tab.CanClose()) { e.Cancel = true; } } RegistryWorker.Save(); }