Initialize() public method

public Initialize ( ) : void
return void
示例#1
0
        public frmUpdate(string version, string url)
        {
            InitializeComponent();
            pictureInfo.Image = SystemIcons.Information.ToBitmap();

            labelInfo.Text = string.Format("An update was found!\nUpdating to version {0}", version);

            Updater updater = new Updater(url);
            updater.ProgressChanged += percentage => progressUpdateBar.Value = percentage;
            updater.Initialize();
        }