Exemplo n.º 1
0
        /// <summary>
        /// Checks if the file the user selected to open is Ok to open
        /// </summary>
        public static void OpenStructure_FileOk(object sender, System.ComponentModel.CancelEventArgs e)
        {
            string path = ((Microsoft.Win32.OpenFileDialog)sender).FileName;

            MainWindow.fileName = Path.GetFileName(path).TrimEnd(new char[] { '.', 'x', 'm', 'l' });
            Application.Current.MainWindow.Title = "CLTFEM - " + MainWindow.fileName.TrimEnd(new char[] { '.', 'x', 'm', 'l' });
            Directory.SetCurrentDirectory(Path.GetDirectoryName(path));

            OpenOperation.OpenStructure(path);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Checks if the file the user selected to open is Ok to open
        /// </summary>
        public static void OpenSeismic_FileOk(object sender, System.ComponentModel.CancelEventArgs e, ref string[] stringXFile)
        {
            string path = ((Microsoft.Win32.OpenFileDialog)sender).FileName;

            OpenOperation.OpenSeismicFile(path, ref stringXFile);
        }
Exemplo n.º 3
0
 /// <summary>
 /// Checks if the file the user selected to open is Ok to open
 /// </summary>
 public static void OpenSeriesOfForce_FileOk(object sender, System.ComponentModel.CancelEventArgs e)
 {
     string[] path = ((Microsoft.Win32.OpenFileDialog)sender).FileNames;
     OpenOperation.OpenSeriesOfForceFile(path);
 }
Exemplo n.º 4
0
        public static void OpenResult_FileOk(object sender, System.ComponentModel.CancelEventArgs e)
        {
            string path = ((Microsoft.Win32.OpenFileDialog)sender).FileName;

            OpenOperation.OpenResultsFile(path);
        }