Esempio n. 1
0
        public MainWindow()
        {
            Icon = Icon.ExtractAssociatedIcon(Assembly.GetExecutingAssembly().Location);

            Program.MainSynchronizationContext = SynchronizationContext.Current;

            Instance = this;

            InitializeComponent();

            InstallDirectoryHelper.KoikatuDirectory = GetGameDirectory();

            SetupTabs();

            Task.Run((Action)PopulateStartMenu);

#if DEBUG
            var version = Assembly.GetExecutingAssembly().GetName().Version;
#else
            var version = Assembly.GetExecutingAssembly().GetName().Version.ToString(3);
#endif
            Text = $"KK Manager {version} (HS2 support edition) - [{InstallDirectoryHelper.GetGameType().GetFancyGameName()}] in {InstallDirectoryHelper.KoikatuDirectory.FullName}";

            Settings.Default.Binder.BindControl(checkForUpdatesOnStartupToolStripMenuItem, settings => settings.AutoUpdateSearch, this);
            Settings.Default.Binder.SendUpdates(this);
        }
        private ModUpdateProgressDialog()
        {
            InitializeComponent();

            switch (InstallDirectoryHelper.GetGameType())
            {
            case GameType.PlayHome:
            case GameType.AiShoujoSteam:
            case GameType.AiShoujo:
            case GameType.HoneySelect2:
                pictureBox1.Image = Resources.aichika;
                break;

            case GameType.Koikatsu:
            case GameType.KoikatsuSteam:
            case GameType.EmotionCreators:
                pictureBox1.Image = Resources.chikajump;
                break;

            case GameType.Unknown:
                break;
            }
        }