private void ShowTaskProperties() { if (taskList.SelectedItems.Count == 0) { return; } int taskId = ((Log)taskList.SelectedItems[0].Tag).TaskId; TaskPropertiesForm pf; pf = new TaskPropertiesForm(taskId); pf.ShowDialog(this); }
public void ShowPropertiesSelectedTask() { if (treeView.SelectedItems.Count == 0) { return; } if (Tasks.RootTask.Id == (int)treeView.SelectedItems[0].Tag) { return; } TaskPropertiesForm pf; pf = new TaskPropertiesForm((int)treeView.SelectedItems[0].Tag); pf.ShowDialog(this); }
public DragDropTaskList() { InitializeComponent(); typeof(TaskListBox).InvokeMember("DoubleBuffered", BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic, null, this.ListDragTarget, new object[] { true }); typeof(TaskListBox).InvokeMember("DoubleBuffered", BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic, null, this.ListDragSource, new object[] { true }); //DoubleBuffered = true; this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true); this.DoubleBuffered = true; In = eTaskItem.None; PropertyForm = new TaskPropertiesForm(); Application.Idle += this.OnIdle; this.ToolTip.ForeColor = SkinInfo.ForeColor; this.ToolTip.BackColor = SkinInfo.BackColor; }