Mono.Addins.Gui.AddinManagerDialog.OnUpdateAll C# (CSharp) Method

OnUpdateAll() protected method

protected OnUpdateAll ( object sender, System e ) : void
sender object
e System
return void
        protected virtual void OnUpdateAll(object sender, System.EventArgs e)
        {
            object[] data = updatesTree.AddinsData;
            AddinRepositoryEntry[] entries = new AddinRepositoryEntry [data.Length];
            Array.Copy (data, entries, data.Length);
            InstallDialog dlg = new InstallDialog (this, service);
            try {
                dlg.InitForInstall (entries);
                if (dlg.Run () == (int) Gtk.ResponseType.Ok)
                    LoadAll ();
            } finally {
                dlg.Destroy ();
            }
        }