Пример #1
0
        private void plotVarDatabaseToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var form = new PlotVarDB.PlotVarDB();

            OpenMaximized(form);
            taskbar.AddTool(form, Properties.Resources.plot_DB_64x64);
        }
Пример #2
0
 public bool ReadEntry(string s, out PlotVarDB.PlotVarEntry res)
 {
     res = new PlotVarDB.PlotVarEntry();
     string t = s.Trim();
     if (!t.StartsWith("{") || !t.EndsWith("}"))
         return false;
     string[] t2 = t.Substring(1, t.Length - 2).Split(',');
     if (t2.Length != 3)
         return false;
     t2[0] = t2[0].Trim();
     t2[1] = t2[1].Trim();
     t2[2] = t2[2].Trim();
     int x;
     if (!int.TryParse(t2[0], out x))
         return false;
     res.ID = x;
     if (!t2[1].StartsWith("\"") || !t2[1].EndsWith("\""))
         return false;
     if (!t2[2].StartsWith("\"") || !t2[2].EndsWith("\""))
         return false;
     res.Desc = t2[2].Substring(1, t2[2].Length - 2);
     string t3 = t2[1].Substring(1, t2[1].Length - 2).ToLower();
     switch (t3)
     {
         case "bool":
             res.type = 0;
             break;
         case "int":
             res.type = 1;
             break;
         case "float":
             res.type = 2;
             break;
         default: return false;
     }
     return true;
 }
Пример #3
0
 private void plotVarDatabaseToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var form = new PlotVarDB.PlotVarDB();
     OpenMaximized(form);
     taskbar.AddTool(form, Properties.Resources.plot_DB_64x64);
 }