コード例 #1
0
 private void ListMessage_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (this.Topm1 != null)
     {
         this.Topm1.Close();
     }
     if (this.Topm1 != null)
     {
         this.Topm1.Dispose();
     }
     this.Topm1 = null;
 }
コード例 #2
0
 private void ListMessage_Load(object sender, EventArgs e)
 {
     base.Location = this.vispoint;
     this.colListBox1.itemmovestate    = false;
     this.colListBox1.imglayout        = 1;
     this.colListBox1.idwidth          = 0;
     this.colListBox1.GotFocus        += new EventHandler(this.ThisGotFouce);
     this.colListBox1.LostFocus       += new EventHandler(this.ThisLostFouce);
     this.colListBox1.DialogKeyPress  += new KeyEventHandler(this.OnDialogKey);
     this.colListBox1.ItemDoubleClick += new EventHandler(this.colListBox_ItemDoubleClick);
     this.colListBox1.ItemSelectChang += new EventHandler(this.colListBox_ItemSelectChang);
     this.colListBox1.listbordercolor  = Color.Gray;
     this.Topm1        = new TopMessage();
     this.Topm1.Width  = 10;
     this.Topm1.Height = 10;
     this.Topm1.Show();
 }
コード例 #3
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);
     }
 }
コード例 #4
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;
 }