예제 #1
0
 public textmsg(TextEditorControl text1, int codemessageindex)
 {
     try
     {
         this.messageid = codemessageindex;
         this.closemessageshow();
         if (this.timershow == null)
         {
             this.timershow          = new Timer();
             this.timershow.Enabled  = false;
             this.timershow.Interval = 50;
             this.timershow.Tick    += new EventHandler(this.timershow_Tick);
         }
         this.timershow.Enabled = false;
         this.DisptextBox();
         this.inttextBox(text1);
         if (this.messagecom.Count == 0)
         {
             this.messageinit();
         }
         if (this.Listm1 == null)
         {
             this.Listm1        = new ListMessage();
             this.Listm1.Width  = this.ListFormWidth;
             this.Listm1.Height = 20;
             this.Listm1.Show();
             ListMessage expr_162 = this.Listm1;
             expr_162.KeyEnter = (EventHandler)Delegate.Combine(expr_162.KeyEnter, new EventHandler(this.OnKeyenter));
         }
         if (this.Topm1 == null)
         {
             this.Topm1        = new TopMessage();
             this.Topm1.Width  = 10;
             this.Topm1.Height = 10;
             this.Topm1.Show();
         }
     }
     catch (Exception ex)
     {
         MessageOpen.Show(ex.Message);
     }
 }
예제 #2
0
 public void CloseMe()
 {
     this.textevent = false;
     if (this.Topm1 != null)
     {
         this.Topm1.Close();
     }
     if (this.Topm1 != null)
     {
         this.Topm1.Dispose();
     }
     this.Topm1 = null;
     if (this.Listm1 != null)
     {
         this.Listm1.Close();
     }
     if (this.Listm1 != null)
     {
         this.Listm1.Dispose();
     }
     this.Listm1 = null;
 }