예제 #1
0
 private void SaveModeMaster()
 {
     try
     {
         objGeneralDba.SaveModeMaster(morningRangeSlider.RangeStartSelected / 60, morningRangeSlider.RangeStopSelected / 60,
                                      morningRangeSlider.RangeStartSelected % 60, morningRangeSlider.RangeStopSelected % 60,
                                      eveningRangeSlider.RangeStartSelected / 60, eveningRangeSlider.RangeStopSelected / 60,
                                      eveningRangeSlider.RangeStartSelected % 60, eveningRangeSlider.RangeStopSelected % 60);
     }
     catch (Exception errMsg)
     {
         MessageBox.Show("Error occured while saving mode master. " + errMsg.Message);
     }
 }