예제 #1
0
 public MDIForm(ref Image Img,MainForm Parent)
 {
     InitializeComponent();
     img = Img.Clone();
     //this.Dock = DockStyle.Fill;
     this.WindowState = FormWindowState.Maximized;
     MDIPicture.Width = (int)img.Width;
     MDIPicture.Height = (int)img.Height;
     Parent.IsMdiContainer = true;
     this.MdiParent = Parent;
     MDIPicture.Image = img.bitmap;
     this.Show();
 }
예제 #2
0
 private void newFormToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MainForm f = new MainForm();
     this.Hide();
     f.ShowDialog();
     this.Show();
 }