private void New_Button_Click(object sender, RoutedEventArgs e) { AppSettings loadedSettings = ClientSelect.getUserSettings(); Process gameProcess = new Process(); gameProcess.StartInfo.WorkingDirectory = loadedSettings.appSettings.Filepath; gameProcess.StartInfo.FileName = "ragexe.exe"; gameProcess.StartInfo.Arguments = ""; //REDACTED gameProcess.Start(); }
private void Browse_Click(object sender, RoutedEventArgs e) { CommonOpenFileDialog dialog = new CommonOpenFileDialog(); dialog.InitialDirectory = ClientSelect.getUserSettings().appSettings.Filepath; dialog.IsFolderPicker = true; if (dialog.ShowDialog() == CommonFileDialogResult.Ok) { RagexeTextbox.Text = dialog.FileName; } }
public Settings() { InitializeComponent(); RagexeTextbox.IsReadOnly = true; RagexeTextbox.Text = ClientSelect.getUserSettings().appSettings.Filepath; }