public UpdateAvailableForm(Version version, UpdateCheckerSettings settings)
        {
            InitializeComponent();
            downloadProgressBar.DisplayStyle = TextProgressBar.ProgressBarDisplayText.Both;
            Icon = Gui.Icon;
            downloadButton.ContextMenuStrip = new ContextMenuStrip();
            SplitMenuChoices = version.GenerateSplitButtonItemList();

            foreach (var choice in SplitMenuChoices)
            {
                downloadButton.ContextMenuStrip.Items.Add(choice);
            }


            downloadButton.ContextMenuStrip.ItemClicked +=
                delegate(object sender, ToolStripItemClickedEventArgs args)
            {
                m_ChosenDownload = (SplitButtonToolStripItem)args.ClickedItem;
                DownloadButtonClick(sender, args);
            };
            CancelButton = CloseButton;

            Settings = settings;
            Text     = "New Player available: " + version;
            changelogViewerWebBrowser.BeforeLoadPreviousChangelog +=
                ChangelogViewerWebBrowserOnBeforeLoadPreviousChangelog;
            SetChangelog(version);
        }
Beispiel #2
0
        public SimpleUpdateForm(UpdateType type, UpdateCheckerSettings settings)
        {
            InitializeComponent();
            Icon       = Gui.Icon;
            m_Type     = type;
            m_Settings = settings;
            extensionVersionLinkLabel.LinkClicked += ExtensionVersionLinkLabelOnLinkClicked;
            playerVersionLinkLabel.LinkClicked    += PlayerVersionLinkLabelOnLinkClicked;
            switch (m_Type)
            {
            case UpdateType.Both:
                EnableExtensionInfo();
                EnablePlayerInfo();
                break;

            case UpdateType.Extensions:
                EnableExtensionInfo();
                break;

            case UpdateType.Player:
                EnablePlayerInfo();
                break;
            }
        }
 public ExtensionUpdateAvailableForm(Version version, UpdateCheckerSettings settings)
     : base(version, settings)
 {
     Text = "New Extensions available: " + version;
 }
Beispiel #4
0
 public ExtensionUpdateChecker(UpdateCheckerSettings settings, Uri url)
     : base(settings, url)
 {
 }
Beispiel #5
0
 public UpdateChecker(UpdateCheckerSettings settings, Uri url)
 {
     Settings = settings;
     WebClient.DownloadStringCompleted += DownloadStringCompleted;
     ChangelogUrl = url;
 }
Beispiel #6
0
 public UpdateChecker(UpdateCheckerSettings settings, Uri url)
 {
     Settings     = settings;
     ChangelogUrl = url;
 }