private void msMessageFlowToolStripMenuItem_Click(object sender, EventArgs e) { msMessageFlow fr1 = new msMessageFlow(); fr1.MdiParent = this; fr1.Show(); }
private void allMessageFlow_Load(object sender, EventArgs e) { f1.MdiParent = this.MdiParent; f1.Show(); f2.MdiParent = this.MdiParent; f2.Show(); this.Location = new Point(this.MdiParent.Location.X, this.MdiParent.Location.Y); this.Width = this.MdiParent.Width / 2 - SystemInformation.CaptionHeight; this.Height = this.MdiParent.Height - 2 * (SystemInformation.MenuHeight + SystemInformation.CaptionHeight); toolStripLabel1.Text = string.Empty; toolStripStatusLabel1.Text = string.Empty; toolStripStatusLabel2.Text = string.Empty; toolStripStatusLabel3.Text = string.Empty; streamMessagePool.appPath = Application.StartupPath.ToString(); streamMessagePool.Acc.Init(null, "CN-Iu", null, null); streamMessagePool.Acc.Open(); //loadMessageToListBox(); middleDelegate.sendListEvent += new middleDelegate.SendListMessage(this.loadMessageToListBox); }