public Interfaces.Plugin.IToolResult ShowDialog(ref SimPe.Interfaces.Files.IPackedFileDescriptor pfd, ref SimPe.Interfaces.Files.IPackageFile package) { if (!IsReallyEnabled(pfd, package)) { System.Windows.Forms.MessageBox.Show(SimPe.Localization.GetString("This is not an appropriate context in which to use this tool"), Localization.Manager.GetString("simsbrowser")); return(new Plugin.ToolResult(false, false)); } Sims sims = new Sims(); sims.Text = Localization.Manager.GetString("simsbrowser"); return(sims.Execute(ref pfd, ref package, prov)); }
public SimsRegistry(Sims form) { this.form = form; xrk = Helper.WindowsRegistry.PluginRegistryKey; form.ckbPlayable.Checked = this.ShowPlayable; form.ckbPlayable.CheckedChanged += new EventHandler(ckbPlayable_CheckedChanged); form.cbTownie.Checked = this.ShowTownies; form.cbTownie.CheckedChanged += new EventHandler(cbTownie_CheckedChanged); form.cbNpc.Checked = this.ShowNPCs; form.cbNpc.CheckedChanged += new EventHandler(cbNpc_CheckedChanged); form.ckbUnEditable.Checked = this.ShowUnEditable; form.ckbUnEditable.CheckedChanged += new EventHandler(ckbUnEditable_CheckedChanged); form.cbdetail.Checked = this.ShowDetails; form.cbdetail.CheckedChanged += new EventHandler(cbdetail_CheckedChanged); form.sorter.CurrentColumn = this.SortedColumn; form.sorter.Sorting = this.SortOrder; form.sorter.Changed += new EventHandler(sorter_Changed); }
public void Dispose() { form = null; xrk = null; }