private void BTN_Open_Click(object sender, EventArgs e) { if (DLG_Open.ShowDialog() == DialogResult.OK) { string Path = DLG_Open.FileName; Bitmap ImageOpened = new Bitmap(Path); this.Visible = false; FRM_Main main = new FRM_Main(ImageOpened); main.ShowDialog(); this.Close(); } }
private void BTN_New_Click(object sender, EventArgs e) { FRM_New nouveau = new FRM_New(); nouveau.ShowDialog(); if (nouveau.DialogResult == DialogResult.OK) { this.Visible = false; FRM_Main main = new FRM_Main(nouveau.CanvasWidth, nouveau.CanvasHeight); main.ShowDialog(); this.Close(); } }