private void Btn_Setting_MouseUp(object sender, MouseButtonEventArgs e) { if (Item.Status != Cls_WorkListItem.StatusCode.Recording) { TaskSettingWindow t = new TaskSettingWindow(Item, Parent); t.Show(); } else { System.Windows.Forms.MessageBox.Show("录制进行中,请先结束录制。"); } }
/// <summary> /// 添加任务按钮鼠标弹起 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Btn_AddTask_MouseUp(object sender, MouseButtonEventArgs e) { TaskSettingWindow t = new TaskSettingWindow(WorkList); t.Show(); }