Beispiel #1
0
 public CGitAsynchControl()
 {
     //callback initialize
     syncContext = SynchronizationContext.Current;
     ProcessReceiveData = new DataReceivedEventHandler(GitProcessReceiveData);
     ProcessAbort = new ExitProcessHandler(GitProcessExit);
     ProcessErrorData = new DataReceivedEventHandler(GitProcessErrorData);
     m_WaitForm = null;
 }
Beispiel #2
0
        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();
        }
Beispiel #3
0
 protected void HideWaiting()
 {
     if (m_WaitForm != null)
     {
         m_WaitForm.Close();
         m_WaitForm = null;
     }
 }