Example #1
0
 public void SetValue(object value)
 {
     if (_value == null || _value != (bool)value)
     {
         _value = (bool)value;
         _lcd.Clear();
     }
 }
Example #2
0
 void DataGridView5CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (Working && e.RowIndex > -1)
     {
         RS232LCD lcd = (RS232LCD)dataGridView5.Rows[e.RowIndex].Tag;
         if (e.ColumnIndex == 2)
         {
             lcd.On();
             return;
         }
         if (e.ColumnIndex == 3)
         {
             lcd.Clear();
             return;
         }
         if (e.ColumnIndex == 4)
         {
             lcd.Off();
             return;
         }
     }
 }