Beispiel #1
0
 /// <summary>
 /// Event: Occurs when open is clicked
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void menuItemOpen_Click(object sender, System.EventArgs e)
 {
     this.openFileDialog        = new OpenFileDialog();
     this.openFileDialog.Filter = ExtensionHandler.GetDialogFormat();
     if (this.openFileDialog.ShowDialog() == DialogResult.OK)
     {
         CurrentPage.Load(this.openFileDialog.FileName);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Initializes an open of a new picture by showing the dialog box
 /// </summary>
 public void InitBox()
 {
     //
     //openDialog
     //
     this.openDialog        = new OpenFileDialog();
     this.openDialog.Filter = ExtensionHandler.GetDialogFormat();
     if (this.openDialog.ShowDialog() == DialogResult.OK)
     {
         LoadNew(this.openDialog.FileName);
     }
 }