public ServerConsolePage(LauncherLogic logic) { InitializeComponent(); this.logic = logic; this.logic.StartServerEvent += OnStartServer; PropertyChanged += PropertyChange; CommandText = ""; }
public ServerPage(LauncherLogic logic) { InitializeComponent(); RBIsDocked.IsChecked = !Settings.Default.IsExternalServer; RBIsExternal.IsChecked = Settings.Default.IsExternalServer; this.logic = logic; }
public ServerPage(LauncherLogic logic) { InitializeComponent(); // Change style depending on windows version. Win 10 uses other definition of comboboxes then win 7 so win 10 has its own style if (Environment.OSVersion.Version.Major >= 6 && Environment.OSVersion.Version.Minor > 1) { CBox.Style = (Style)Resources["ComboBoxStyle"]; CBox.ApplyTemplate(); } this.logic = logic; }
private void Application_Startup(object sender, StartupEventArgs e) { LauncherLogic = new LauncherLogic(); LaunchGamePage = new LaunchGamePage(); OptionPage = new OptionPage(); ServerConsolePage = new ServerConsolePage(); ServerPage = new ServerPage(); MainWindow = new MainWindow(); MainWindow.Show(); Log.Setup(); // Error if running from a temporary directory because Nitrox Launcher won't be able to write files directly to zip/rar // Tools like WinRAR do this to support running EXE files while it's still zipped. if (Directory.GetCurrentDirectory().StartsWith(Path.GetTempPath(), StringComparison.OrdinalIgnoreCase)) { MessageBox.Show("Nitrox launcher should not be executed from a temporary directory. Install Nitrox launcher properly by extracting ALL files and moving these to a dedicated location on your PC.", "Invalid working directory", MessageBoxButton.OK, MessageBoxImage.Error); Environment.Exit(1); } }
public ServerPage(LauncherLogic logic) { InitializeComponent(); this.logic = logic; }
public LaunchGamePage(LauncherLogic logic) { InitializeComponent(); this.logic = logic; }
public OptionPage(LauncherLogic logic) { InitializeComponent(); this.logic = logic; PathToSubnautica = logic.LoadSettings(); }