public UpdateCheckerNewVersionForm(UpdateChecker.Version version, UpdateCheckerSettings settings)
 {
     InitializeComponent();
     m_settings        = settings;
     Text             += ": " + version;
     changelogBox.Text = version.Changelog;
 }
Beispiel #2
0
        public UpdateCheckerNewExtensionForm(ExtensionUpdateChecker.ExtensionVersion version, UpdateCheckerSettings settings)
        {
            InitializeComponent();
            Icon = PlayerControl.ApplicationIcon;
            downloadButton.ContextMenuStrip = new ContextMenuStrip();
            _files = version.Files;
            foreach (var file in _files)
            {
                downloadButton.ContextMenuStrip.Items.Add(file.name);
            }

            downloadButton.ContextMenuStrip.ItemClicked +=
                delegate(object sender, ToolStripItemClickedEventArgs args)
            {
                _chosenDownload = args.ClickedItem.Text;
                downloadButton_Click(sender, args);
            };
            CancelButton = CloseButton;

            _settings         = settings;
            Text             += ": " + version;
            changelogBox.Text = version.Changelog;
        }
 public ExtensionUpdateChecker(UpdateCheckerSettings settings, Uri url) : base(settings, url)
 {
 }
 public UpdateChecker(UpdateCheckerSettings settings, Uri url)
 {
     m_settings = settings;
     m_WebClient.DownloadStringCompleted += DownloadStringCompleted;
     ChangelogUrl = url;
 }