コード例 #1
0
        public static void Setup()
        {
            // Verification of the process
            String thisprocessname = System.Diagnostics.Process.GetCurrentProcess().ProcessName;

            if (System.Diagnostics.Process.GetProcesses().Count(p => p.ProcessName == thisprocessname) > 1)
            {
                MetroMessageBox.Show(Program.splashForm, "You can't open the application twice at the same time!", "", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Environment.Exit(0);
            }

            // Initialize RSettings
            Reference.RSettings = new WolfLib.Rasu(Reference.SettingsFile);

            // Initialize folders
            Folders();
            // Iniatilize files
            Files();

            // Update files
            Updates.UpdateFiles();

            // Set WolfWatchMetro
            Program.mainForm = new WolfWatchMetro();

            // Style manager
            Program.mainForm.StyleManager = Program.mainForm.metroStyleManager;

            // Load/Set settings
            Settings.LoadSettings();
            Settings.SetSettings();
            Program.mainForm.refreshPlaylistsList();

            // Show mainForm
            Program.mainForm.Show();
            Program.splashForm.Hide();
        }
コード例 #2
0
 // Manual check
 public static void GetManualUpdateCheckButton()
 {
     Updates.checkForUpdates(true);
 }
コード例 #3
0
ファイル: WolfWatchMetro.cs プロジェクト: NaolShow/WolfWatch
 // Manual update check
 private void settings_manualupdatecheck_Click(object sender, EventArgs e)
 {
     Updates.GetManualUpdateCheckButton();
 }