public frmEditWindow(frmDamoANTs pf, Boolean alarm) { InitializeComponent(); primaryWindow = pf; if (editDebugging) { Console.WriteLine("Debugging in Edit window"); } if (alarm) { alOrTm = true; radioAlarmType.Checked = true; ndx = pf.chklstAlarms.SelectedIndex; if (ndx == -1) { showDispleasureAtIncompetence(); return; } if (editDebugging) { Console.WriteLine("ndx: " + ndx); Console.WriteLine("Press a key to continue . . ."); Console.ReadKey(); } txtEditAlarmName.Text = pf.activeAls[ndx].name; nudEditHour.Value = pf.activeAls[ndx].ringAt.Hour; nudEditMinute.Value = pf.activeAls[ndx].ringAt.Minute; nudEditSecond.Value = pf.activeAls[ndx].ringAt.Second; txtShowSoundByte.Text = pf.activeAls[ndx].soundBite; } else { alOrTm = false; radioTimerType.Checked = true; ndx = pf.chklstTimers.SelectedIndex; if (ndx == -1) { showDispleasureAtIncompetence(); return; } txtEditAlarmName.Text = pf.activeTms[ndx].name; var ouah = pf.activeTms[ndx].getOrigInterval(); nudEditHour.Value = ouah.Hours; nudEditMinute.Value = ouah.Minutes; nudEditSecond.Value = ouah.Seconds; txtShowSoundByte.Text = pf.activeTms[ndx].soundBite; } }
public frmHelp(frmDamoANTs pf) { InitializeComponent(); primaryWindow = pf; }