public CGitAsynchControl() { //callback initialize syncContext = SynchronizationContext.Current; ProcessReceiveData = new DataReceivedEventHandler(GitProcessReceiveData); ProcessAbort = new ExitProcessHandler(GitProcessExit); ProcessErrorData = new DataReceivedEventHandler(GitProcessErrorData); m_WaitForm = null; }
protected void ShowWaiting() { m_WaitForm = new FormWaiting(); m_WaitForm.Width = this.ClientSize.Width; m_WaitForm.Height = this.ClientSize.Height; m_WaitForm.Location = this.ClientRectangle.Location; m_WaitForm.Location = this.PointToScreen(this.ClientRectangle.Location); //m_WaitForm.ShowDialog(this); //m_WaitForm.BringToFront(); m_WaitForm.ShowDialog(); }
protected void HideWaiting() { if (m_WaitForm != null) { m_WaitForm.Close(); m_WaitForm = null; } }