/// <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); }
/// <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); }
/// <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); }
public static void OpenResult_FileOk(object sender, System.ComponentModel.CancelEventArgs e) { string path = ((Microsoft.Win32.OpenFileDialog)sender).FileName; OpenOperation.OpenResultsFile(path); }