コード例 #1
0
ファイル: WolfWatchMetro.cs プロジェクト: NaolShow/WolfWatch
        public async void startWolfWatch()
        {
            // Hide tab pages
            WWTabControl.TabPages.Remove(tabAddPlaylist);
            WWTabControl.TabPages.Remove(tabEditPlaylist);
            WWTabControl.TabPages.Remove(tabEditVideo);

            WWTabControl.SelectedTab = tabPlayer;

            this.WWTabControl.Selected += new System.Windows.Forms.TabControlEventHandler(Settings.WWTabControl_Selected);

            await Task.Delay(1);

            // Set up players
            WMP.uiMode            = "full";
            WMP.enableContextMenu = true;

            // Show front
            this.BringToFront();

            // Check for updates
            if (Reference.RSettings.Get("autoupdates").ToLower() == "true")
            {
                Updates.checkForUpdates(false);
            }
        }
コード例 #2
0
 // Manual check
 public static void GetManualUpdateCheckButton()
 {
     Updates.checkForUpdates(true);
 }