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