예제 #1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            this.oldTreeViewSize = this.packageList.Size;

            // Retrieve the package manager and clear its remote package cache, so we'll
            // get fresh data every time we re-open the package view dialog.
            this.packageManager = DualityEditorApp.PackageManager;
            this.packageManager.ClearCache();
            this.nodeTextBoxVersion.PackageManager = this.packageManager;

            this.modelOnline = new OnlinePackagesTreeModel(this.packageManager);
            this.modelOnline.SortComparer  = new PackageListItemComparer(PackageListItemComparer.SortMode.CombinedScore, SortOrder.Ascending);
            this.modelOnline.NodesChanged += this.modelOnline_NodesChanged;

            this.modelInstalled = new InstalledPackagesTreeModel(this.packageManager);
            this.modelInstalled.NodesChanged += this.modelInstalled_NodesChanged;

            this.OnDisplayModeChanged(DisplayMode.None, this.display);
            this.toolStripSearchBox_TextChanged(this.toolStripSearchBox, EventArgs.Empty);

            this.UpdateBottomButtons();
            this.UpdateInfoArea();
        }
예제 #2
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            this.oldTreeViewSize = this.packageList.Size;

            this.packageManager = DualityEditorApp.PackageManager;
            this.modelInstalled = new InstalledPackagesTreeModel(this.packageManager);
            this.modelOnline    = new OnlinePackagesTreeModel(this.packageManager);

            this.Display = DisplayMode.Installed;
        }
예제 #3
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            this.oldTreeViewSize = this.packageList.Size;

            this.packageManager = DualityEditorApp.PackageManager;
            this.nodeTextBoxVersion.PackageManager = this.packageManager;

            this.modelInstalled = new InstalledPackagesTreeModel(this.packageManager);
            this.modelOnline    = new OnlinePackagesTreeModel(this.packageManager);

            this.modelInstalled.NodesChanged += this.modelInstalled_NodesChanged;
            this.modelOnline.NodesChanged    += this.modelOnline_NodesChanged;

            this.Display = DisplayMode.Installed;

            this.UpdateBottomButtons();
            this.UpdateInfoArea();
        }
예제 #4
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            this.oldTreeViewSize = this.packageList.Size;

            this.packageManager = DualityEditorApp.PackageManager;
            this.nodeTextBoxVersion.PackageManager = this.packageManager;

            this.modelOnline = new OnlinePackagesTreeModel(this.packageManager);
            this.modelOnline.SortComparer  = new PackageListItemComparer(PackageListItemComparer.SortMode.CombinedScore, SortOrder.Ascending);
            this.modelOnline.NodesChanged += this.modelOnline_NodesChanged;

            this.modelInstalled = new InstalledPackagesTreeModel(this.packageManager);
            this.modelInstalled.NodesChanged += this.modelInstalled_NodesChanged;

            this.OnDisplayModeChanged(DisplayMode.None, this.display);
            this.toolStripSearchBox_TextChanged(this.toolStripSearchBox, EventArgs.Empty);

            this.UpdateBottomButtons();
            this.UpdateInfoArea();
        }