示例#1
0
 void SendUpdates()
 {
     if (
         NotifyEnabled &&
         LowKey.IsAValidLowKey(HiKey, KeyCount) &&
         HiKey.IsAValidHiKey(LowKey, KeyCount)
         )
     {
         _onSwitchEditVmChanged.OnNext(this);
     }
 }
示例#2
0
 public string this[string columnName]
 {
     get
     {
         if (columnName == "LowKey")
         {
             return((LowKey.IsAValidLowKey(HiKey, KeyCount)) ? null : " ");
         }
         if (columnName == "HiKey")
         {
             return((HiKey.IsAValidHiKey(LowKey, KeyCount)) ? null : " ");
         }
         return(null);
     }
 }