Esempio n. 1
0
 Main_Instance()
 {
     workspace   = new Workspace();
     NodeDiagram = new NodeDiagram();
     Module_list = new Dictionary <General_Config.Module_Type, List <IGeneral_module> >();
     foreach (General_Config.Module_Type key in Enum.GetValues(typeof(General_Config.Module_Type)))
     {
         Module_list.Add(key, new List <IGeneral_module>());
     }
     NodeDiagram.DiagramEvent += NodeDiagram_DiagramEvent;
     Config = new General_Config();
 }
Esempio n. 2
0
 private void updateRecentProjectList(string fileName)
 {
     if (General_Config.recent_workspaces.Contains(fileName))
     {
         General_Config.recent_workspaces.Remove(fileName);
     }
     else
     {
         if (General_Config.recent_workspaces.Count > 4)
         {
             General_Config.recent_workspaces.RemoveAt(4);
         }
     }
     General_Config.recent_workspaces.Insert(0, fileName);
     General_Config.SaveGeneralConfig();
 }
Esempio n. 3
0
 private void btnRecolor_Click(object sender, EventArgs e)
 {
     General_Config.Recolor(Main_Instance.Instance.Workspace.TargetTreeView, true, true);
     ReloadWorkspace(true);
 }