/// <summary> /// Show schedule options. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void ScheduleOptionsMenu_Click(object sender, EventArgs e) { try { if (Schedules.SelectedItems.Count == 1) { GXScheduleEditorDlg dlg = new GXScheduleEditorDlg(Schedules.SelectedItems[0].Tag as GXSchedule, m_DeviceList); dlg.ShowDialog(ParentComponent); } } catch (Exception ex) { GXCommon.ShowError(this, ex); } }
/// <summary> /// Add new Schedule. /// </summary> public void NewSchedule() { try { GXScheduleEditorDlg dlg = new GXScheduleEditorDlg(null, m_DeviceList); dlg.ShowDialog(ParentComponent); } catch (Exception ex) { GXCommon.ShowError(this.ParentComponent, Gurux.DeviceSuite.Properties.Resources.GuruxDeviceSuiteTxt, ex); } }