Example #1
0
 private void CreateToolWindows()
 {
     this.formStartPage.Close();
     
     this.windows.Clear();
     this.windows.Add(this.formCollectionList = new FormCollectionList(this, this.database));
     this.windows.Add(this.formGroupList = new FormGroupList(this, this.database));
     this.windows.Add(this.formConfig = new FormConfig(this, this.database));
 }
Example #2
0
 private void CloseCurrentDatabase(bool createStarterPage)
 {
     this.SaveConfiguration();
     if (this.database != null)
     {
         this.database.Close();
     }
     
     foreach (ToolWindow w in this.windows)
     {
         w.Close();
     }
     
     this.windows.Clear();
     this.formCollectionList = null;
     this.formConfig = null;
     this.formGroupList = null;
     if (createStarterPage)
     {
         this.CreateStarterPage();
     }
     
     this.UpdateToolbarAndMenu();
 }