Esempio n. 1
0
        public Interfaces.Plugin.IToolResult Execute(ref SimPe.Interfaces.Files.IPackedFileDescriptor pfd, ref SimPe.Interfaces.Files.IPackageFile package, Interfaces.IProviderRegistry prov)
        {
            this.package = package;

            lv.ListViewItemSorter = sorter;
            this.Cursor           = Cursors.WaitCursor;

            SimPe.Plugin.Idno idno = SimPe.Plugin.Idno.FromPackage(package);
            if (idno != null)
            {
                this.lbUbi.Visible = (idno.Type != NeighborhoodType.Normal);
            }
            this.pfd = null;


            lv.Sorting           = SortOrder.Ascending;
            sorter.CurrentColumn = 3;

            FillList();

            this.Cursor = Cursors.Default;

            RemoteControl.ShowSubForm(this);

            this.package = null;

            if (this.pfd != null)
            {
                pfd = this.pfd;
            }
            return(new Plugin.ToolResult((this.pfd != null), false));
        }
Esempio n. 2
0
 protected void ShowVersion()
 {
     SimPe.Plugin.Idno idno = SimPe.Plugin.Idno.FromPackage(pkg);
     if (idno != null)
     {
         this.lbVer.Text  = idno.Version.ToString().Replace("_", " ");
         this.lbType.Text = idno.Type.ToString().Replace("_", " ");
     }
     else
     {
         this.lbVer.Text  = SimPe.Plugin.NeighborhoodVersion.Unknown.ToString();
         this.lbType.Text = SimPe.Plugin.NeighborhoodType.Unknown.ToString();
     }
 }