| | |
| | | { |
| | | UserHSmartWindowControl UserHSmartWindowControl = new UserHSmartWindowControl(); |
| | | |
| | | public event ProcessRunBllRun OnProcessRunBllRun; |
| | | |
| | | private void onProcessRunBllRun() |
| | | { |
| | | if (OnProcessRunBllRun != null) |
| | | { |
| | | OnProcessRunBllRun(); |
| | | } |
| | | } |
| | | |
| | | public string Title = string.Empty; |
| | | |
| | | public event Control_MouseDown event_MouseDown; |
| | | public event Control_MouseDoubleClick event_MouseDoubleClick; |
| | | private void event_mouseDown(object sender, MouseEventArgs e) |
| | | { |
| | | if (event_MouseDown != null) |
| | | { |
| | | event_MouseDown(sender, e); |
| | | } |
| | | } |
| | | private void event_mouseDoubleClick(object sender, MouseEventArgs e) |
| | | { |
| | | if (event_MouseDoubleClick != null) |
| | | { |
| | | event_MouseDoubleClick(this, e); |
| | | } |
| | | } |
| | | |
| | | ProcessRunBll ProcessRunBll |
| | | { |
| | | get |
| | |
| | | { |
| | | this.panel1.Controls.Add(this.UserHSmartWindowControl); |
| | | this.UserHSmartWindowControl.Dock = DockStyle.Fill; |
| | | |
| | | this.UserHSmartWindowControl.event_MouseDoubleClick += event_mouseDoubleClick; |
| | | this.UserHSmartWindowControl.event_MouseDown += event_mouseDown; |
| | | SetTitle(_Layout.ProcessName); |
| | | |
| | | Title = _Layout.Title; |
| | | if (ProcessRunBll != null) |
| | | this.label1.Text = $"总数:{ProcessRunBll.total}"; |
| | | this.isClosed = false ; |
| | | this.isClosed = false; |
| | | var TaskPhotoContinue = Task.Factory.StartNew(() => |
| | | { |
| | | ThreadCircleRun(); |
| | |
| | | if (isCircleRuning || ProcessRunBll.bRuning) |
| | | ProcessRunBll.LogInfo($"{ProcessRunBll.Name}正在运行", LogInfoType.ERROR); |
| | | |
| | | ProcessRunBll.Run(); |
| | | |
| | | //ProcessRunBll.Run(); |
| | | onProcessRunBllRun(); |
| | | msg = ProcessRunBll.Msg; |
| | | return ProcessRunBll.Result; |
| | | } |