Beispiel #1
0
 private void dataGridView1_CellContentClick_1(object sender,DataGridViewCellEventArgs e)
 {
     if(dataGridView1.Columns[e.ColumnIndex].Name.Equals("Enable")) {
         DataGridViewCheckBoxCell checkbox = dataGridView1.Rows[e.RowIndex].Cells["Enable"] as DataGridViewCheckBoxCell;
         AConsoleCommand command;
         if((bool)checkbox.Value)
             command = new CommandDisableWord(currentDiction);
         else
             command = new CommandEnableWord(currentDiction);
         command.ExecuteAndGetResponse(new CommandParser.ImputCommand(" " + dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex+1].Value.ToString()));
     }
 }
Beispiel #2
0
 void popup_MenuClick(object sender,EventArgs e)
 {
     DictionsControl tmpcont = new DictionsControl(new DictionInfo().GetAllDictions());
     tmpcont.AddInUsingDictions(popup.LastRow.TableName);
     AConsoleCommand command = new CommandDisableWord(tmpcont);
     command.ExecuteAndGetResponse( new CommandParser.ImputCommand(" "+popup.LastRow.word));
 }