Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 public virtual void ThisClose()
 {
     try
     {
         ActiveWaiting closew = new ActiveWaiting(CloseObj);
         while (!this.IsHandleCreated)
         {
             this.CreateHandle();
         }
         if (this.InvokeRequired)
         {
             this.Invoke(closew);
         }
         else
         {
             this.Close();
         }
     }
     catch (Exception ex)
     {
         MessageObject mo = new MessageObject(MessageType.Debug);
         mo.Message = ex;
         MessageFactory.GetMegBus().Send(mo);
     }
 }
Exemple #2
0
        /// <summary>
        /// 显示处理过程
        /// </summary>
        protected virtual void ShowProcess()
        {
            this.waitingForm = new FrmWaiting();
            ActiveWaiting setchild = new ActiveWaiting(SetChild);

            this.waitingForm.SetContent(this.content);
            Show();
        }