Esempio n. 1
0
 public override bool ShowOpenCruiseFileDialog(out string fileName)
 {
     using (FMSC.Controls.OpenFileDialogRedux fileDialog = new FMSC.Controls.OpenFileDialogRedux())
     {
         fileDialog.Filter = "cruise files (*.cruise)|*.cruise";
         DialogResult result = fileDialog.ShowDialog();
         if (result == DialogResult.OK)
         {
             fileName = fileDialog.FileName;
         }
         else
         {
             fileName = null;
         }
         return(result == DialogResult.OK);
     }
 }
 public override DialogResult ShowOpenCruiseFileDialog(out string fileName)
 {
     using (FMSC.Controls.OpenFileDialogRedux fileDialog = new FMSC.Controls.OpenFileDialogRedux())
     {
         fileDialog.Filter = "cruise files (*.cruise)|*.cruise";
         DialogResult result = fileDialog.ShowDialog();
         if (result == DialogResult.OK)
         {
             fileName = fileDialog.FileName;
         }
         else
         {
             fileName = null;
         }
         return result;
     }
 }