Beispiel #1
0
        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();
        }
Beispiel #2
0
        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;
            }
        }
Beispiel #3
0
 public Settings()
 {
     InitializeComponent();
     RagexeTextbox.IsReadOnly = true;
     RagexeTextbox.Text       = ClientSelect.getUserSettings().appSettings.Filepath;
 }