示例#1
0
 public mainWindow()
 {
     InitializeComponent();
     MCP_Init.Init();
     foreach (Command c in commandQue)
     {
         codeAutoComplete.AddItem(new AutocompleteItem(c.name, 0));
     }
     errorView.Rows.Add("[LN 37] Unrecognized command.");
     errorView.Rows.Add("[LN 38] Unrecognized block.");
     errorView.Rows.Add("[LN 41] Unrecognized fixed value.");
 }
示例#2
0
 public mainWindow(string toOpen)
 {
     InitializeComponent();
     MCP_Init.Init();
     foreach (Command c in commandQue)
     {
         codeAutoComplete.AddItem(new AutocompleteItem(c.name, 0));
     }
     errorView.Rows.Add("[LN 37] Unrecognized command.");
     errorView.Rows.Add("[LN 38] Unrecognized block.");
     errorView.Rows.Add("[LN 41] Unrecognized fixed value.");
     if (File.Exists(toOpen))
     {
         codeBox.Text = File.ReadAllText(toOpen);
         curFilePath  = toOpen;
         int x = 0;
         foreach (string g in codeBox.Lines)
         {
             codeLoadLine(codeBox.GetFirstCharIndexFromLine(x), g);
             x++;
         }
     }
 }