상속: Common.Controls.BaseForm
예제 #1
0
파일: SetupForm.cs 프로젝트: thorhs/vixen
        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);
                }
            }
        }
예제 #2
0
        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;
                }
            }
        }
예제 #3
0
 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);
             }
         }
     }
 }
예제 #4
0
 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();
             }
         }
     }
 }
예제 #5
0
 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;
             }
         }
     }
 }
예제 #6
0
파일: SetupForm.cs 프로젝트: stewmc/vixen
		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);
					}
				}
			}
		}
예제 #7
0
파일: SetupForm.cs 프로젝트: stewmc/vixen
		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);
				}
			}
		}