コード例 #1
0
ファイル: MainForm.cs プロジェクト: 8bit-cat/archive
 //****************************************************************************************************
 //Обработчик ввода команды
 private void consoleBox1_GetCommand(object sender, ConsoleBoxGetCommandEventArgs e)
 {
     //Если введена не пустая строка
     if (e.Command.Length > 0)
         m_fasade.ExecuteCommand(e.Command);
     else
         consoleBox.Prompt();
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: imarshall/Interpretator
 private void consoleBox1_GetCommand(object sender, ConsoleBoxGetCommandEventArgs e)
 {
     if (e.Command.Length > 0)
         m_fasade.ExecuteCommand(e.Command);
     else
         consoleBox1.Prompt();
 }