private void Initialize() { WindowStartupLocation = WindowStartupLocation.CenterScreen; MainConfig = new MainWindowConfig(this); MainPages = new List <Page>() { new ChartPage(MainConfig.Charts) { Owner = this }, new Page() { Background = Brushes.Black } }; SettingsTabPages = new List <Page>() { new SettingsPage(MainConfig) }; InitChartPage = new CreateNewChart(MainConfig.Charts, SettingsTabPages[0]); SettingsFrame.Visibility = Visibility.Collapsed; MainConfig.Ininitiolize(); Background = MainConfig.BackgroundBrush; this.PreviewMouseDown += SettingsFrame_PreviewMouseDown; }
public Initializer() { Console.WriteLine("Yo you wanna learn how to do a f****n infinite?"); var version = Assembly.GetExecutingAssembly().GetName().Version; Console.WriteLine($"Mod Compendium {version.Major}.{version.Minor}.{version.Revision}"); Config = ConfigStore.Get <MainWindowConfig>(); Console.WriteLine("Currently modding: " + Config.SelectedGame); }
public MainWindow() { InitializeComponent(); InitializeLog(); var version = Assembly.GetExecutingAssembly().GetName().Version; Title = $"Mod Compendium {version.Major}.{version.Minor}.{version.Revision}"; Config = ConfigStore.Get <MainWindowConfig>(); InitializeGameComboBox(); }
public SettingsPage(MainWindowConfig config) { InitializeComponent(); Config = config; Background = Config.BackgroundBrush; ContentBilder(); Frozen = new SolidColorBrush(((SolidColorBrush)Config.BackgroundBrush).Color); this.Loaded += SettingsPage_Loaded; }
//Window startup public MainWindow() { //starts the window I guess InitializeComponent(); InitializeLog(); //gets the Assembly version var version = Assembly.GetExecutingAssembly().GetName().Version; //appends it to mod compendium in the window title. Title = $"Mod Compendium {version.Major}.{version.Minor}.{version.Revision}"; //retrieves the the main window configuration through the dark arts. Config = ConfigStore.Get <MainWindowConfig>(); InitializeGameComboBox(); }
/// <summary> /// Runs when the Main Window Initializes. /// </summary> public MainWindow() : base(Gtk.WindowType.Toplevel) { Build(); this.Deleted.Sensitive = false; InitializeLog(); //gets the Assembly version var version = Assembly.GetExecutingAssembly().GetName().Version; //appends it to mod compendium in the window title. Title = $"Mod Compendium {version.Major}.{version.Minor}.{version.Revision}"; //retrieves the the main window configuration from the config store. Config = ConfigStore.Get <MainWindowConfig>(); //retrieves the gameconfig previously in use from the combo box //which is set from the Main Window (somehow) SelectedGame = (Game)(GameSelect.Active + 1); //retrieves the gameconfig previously in use. GameConfig = ConfigStore.Get(SelectedGame); //starts the ModGrid. InitializeModGrid(); //Refreshes the mod database to collect the correct mods RefreshModDatabase(); //starts the combobox (shouldn't it be already be initialized?) InitializeGameComboBox(); }