private ConnectionTabControl() { this._connections = new List<ConnectionData>(); this._model = null; this._isDisableNavigationPanel = false; this._template = null; this._runningProcessFormClosedTime = DateTime.MinValue; this._runningTaskInfoForm = null; this._reportViewCanceler = null; this._jobProcessor = null; this._allEmailTask = new List<EmailNotificationTask>(); this._pageBuffer = new TabPageBuffer(); InitializeComponent(); BuildImageList(); txtXml.Padding = new Padding(0); if (!Program.Model.Settings.ShowXML) { tcBrowse.TabPages.Remove(tpXml); } }
private void ShowRunningProcessesForm() { if (this._runningTaskInfoForm != null) { if (this._runningTaskInfoForm.IsDisposed) { this._runningTaskInfoForm = null; } } if (this._runningTaskInfoForm != null) { if(DateTime.Now - this._runningProcessFormClosedTime > new TimeSpan(0, 0, 0, 0, 200)) { this._runningTaskInfoForm.Visible = true; } } else { this._runningTaskInfoForm = new RunningTaskInfoForm(TaskManager.ProgressManager, this._model); this._runningTaskInfoForm.VisibleChanged += (s, a) => { if (!this._runningTaskInfoForm.Visible) { this._runningProcessFormClosedTime = DateTime.Now; } }; var pt = statusStrip.PointToScreen(processWithLabel.Bounds.Location); this._runningTaskInfoForm.Show(this, pt); } }