private void LauncherCheckVer2() { try { var updater = new Updater(); updater.StartMonitoring(); // Log activity to the console. Log.Console = true; // Log activity to the System.Diagnostics.Debug facilty. Log.Debug = true; // Prefix messages to the above. Log.Prefix = "[Update] "; // This is the default. outputter = new TextBoxOutputter(TextBoxCmd); // Send activity messages to the UI. Log.Event += (sender, e) => outputter.Write("\n" + e.Message); } catch (Exception ex) { System.Windows.MessageBox.Show("Update error: " + ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error); } }
public Konsole() { InitializeComponent(); outputter = new TextBoxOutputter(ConsoleTextBox); Console.SetOut(outputter); }
private void Application_Startup(object sender, StartupEventArgs e) { //Create the startup window MainWindow main_window = new MainWindow(); if (e.Args.Length > 0) { if (e.Args[0].Equals("debug")) { ConsoleWindow window_console = new ConsoleWindow(); outputter = new TextBoxOutputter(window_console.test_console); Console.SetOut(outputter); window_console.Show(); Console.WriteLine("Console Started"); Console.WriteLine("Console is working????"); } } //Do stuff // Navigate to the main menu. MainMenu main_menu = new MainMenu(); main_window.Navigate(main_menu); // Show the window main_window.Show(); }
public MainWindow() { InitializeComponent(); TextBoxOutputter outputter = new TextBoxOutputter(ConsoleTextBlock); Console.SetOut(outputter); }
public OutputWindow() { InitializeComponent(); Closing += new CancelEventHandler(closeWindow); outputter = new TextBoxOutputter(textBox); Console.SetOut(outputter); Console.WriteLine("Waiting for output..."); }
private void Window_Loaded(object sender, RoutedEventArgs e) { txtBoxPutter = new TextBoxOutputter(tb_console); Console.SetOut(txtBoxPutter); launcher.Logger = new GuiltySpark.ConsoleLogger { TextWriter = txtBoxPutter }; UpdateHistorys(); }
public MainWindow() { InitializeComponent(); //this.Height = Screen.PrimaryScreen.Bounds.Height - 40; //this.Width = Screen.PrimaryScreen.Bounds.Width; this.WindowStartupLocation = WindowStartupLocation.CenterScreen; //Logging var outputter = new TextBoxOutputter(TestBox); Console.SetOut(outputter); Console.WriteLine("Log Initialized..."); }
public EventsReminderWindow() { InitializeComponent(); TextBoxOutputter outputter; InitializeComponent(); outputter = new TextBoxOutputter(TestBox); Console.SetOut(outputter); Console.WriteLine("EventsReminder app started"); EventDB.init(); IEnumerable <EventModel> eventModels = EventDB.selectAll(); Console.WriteLine("Events (Count=" + eventModels.ToList().Count + ") loaded from LiteDB"); this.EventsReminderView = new EventsReminderViewModel(eventModels); }
public MainWindow() { _viewModel = new MainWindowViewModel(); DataContext = _viewModel; InitializeComponent(); consoleOutputter = new TextBoxOutputter(ConsoleTextBox); Console.SetOut(consoleOutputter); //AutoUpdater.CheckForUpdateEvent += (e) => //{ // if (e.Error != null) // { // Console.WriteLine("Fehler beim Update-Check! " + e.Error.Message); // } // AutoUpdater.ShowUpdateForm(e.); //}; }
public MainWindow() { InitializeComponent(); InitializeTrayIcon(); DataContext = this; foreach (string server in Properties.Settings.Default.ServerList) { ServerList.Add(server); } CurrentServer = Properties.Settings.Default.DefaultServer; RefreshRateComboBox.ItemsSource = new List <int> { 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 15 }; RefreshRateComboBox.SelectedItem = Properties.Settings.Default.RefreshRate; _outputter = new TextBoxOutputter(ConsoleTextBox); Console.SetOut(_outputter); ClearConsole(); }