private void AddSchedule() { ScheduleItem item = new ScheduleItem(); using (SetupScheduleForm f = new SetupScheduleForm(item)) { if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) { Data.Items.Add(item); AddListItem(item); } } }
private void AddSchedule() { ScheduleItem item = new ScheduleItem(); using (SetupScheduleForm f = new SetupScheduleForm(item)) { if (f.ShowDialog() == DialogResult.OK) { Data.Items.Add(item); AddListItem(item); _isDirty = true; } } }
private void EditCurrentItem() { if (listViewItems.SelectedItems.Count == 1) { ListViewItem lvItem = listViewItems.SelectedItems[0]; ScheduleItem scheduleItem = lvItem.Tag as ScheduleItem; using (SetupScheduleForm f = new SetupScheduleForm(scheduleItem)) { if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) { UpdateListItem(scheduleItem); } } } }
private async void EditCurrentItem() { if (listViewItems.SelectedItems.Count == 1) { ListViewItem lvItem = listViewItems.SelectedItems[0]; ScheduleItem scheduleItem = lvItem.Tag as ScheduleItem; using (SetupScheduleForm f = new SetupScheduleForm(scheduleItem)) { if (f.ShowDialog() == DialogResult.OK) { UpdateListItem(scheduleItem); await VixenSystem.SaveModuleConfigAsync(); } } } }
private async void EditCurrentItem() { if (listViewItems.SelectedItems.Count == 1) { ListViewItem lvItem = listViewItems.SelectedItems[0]; ScheduleItem scheduleItem = lvItem.Tag as ScheduleItem; using (SetupScheduleForm f = new SetupScheduleForm(scheduleItem)) { if (f.ShowDialog() == DialogResult.OK) { UpdateListItem(scheduleItem); _isDirty = true; } } } }