private void lstLoaded_SelectedIndexChanged(object sender, EventArgs e) { GrimoirePlugin p = (GrimoirePlugin)lstLoaded.SelectedItem; if (p != null) { lblAuthor.Text = $"Plugin created by: {p.Author}"; txtDesc.Text = p.Description; } }
// Token: 0x060000A3 RID: 163 RVA: 0x0000A5A8 File Offset: 0x000087A8 private void lstLoaded_SelectedIndexChanged(object sender, EventArgs e) { GrimoirePlugin grimoirePlugin = (GrimoirePlugin)this.lstLoaded.SelectedItem; if (grimoirePlugin != null) { this.lblAuthor.Text = string.Format("Plugin created by: {0}", grimoirePlugin.Author); this.txtDesc.Text = grimoirePlugin.Description; } }
private void lstLoaded_SelectedIndexChanged(object sender, EventArgs e) { int index; if ((index = lstLoaded.SelectedIndex) > -1) { GrimoirePlugin p = GrimoirePlugin.LoadedPlugins[index]; lblAuthor.Text = $"Plugin created by: {p.Author}"; txtDesc.Text = p.Description; } }
// Token: 0x060000A2 RID: 162 RVA: 0x0000A538 File Offset: 0x00008738 private void btnUnload_Click(object sender, EventArgs e) { GrimoirePlugin grimoirePlugin = (GrimoirePlugin)this.lstLoaded.SelectedItem; if (grimoirePlugin != null) { if (Program.PluginsManager.Unload(grimoirePlugin)) { this.lstLoaded.Items.Remove(grimoirePlugin); this.lblAuthor.Text = "Plugin created by:"; this.txtDesc.Clear(); return; } MessageBox.Show(grimoirePlugin.LastError, "Grimoire", MessageBoxButtons.OK, MessageBoxIcon.Hand); } }
private void btnUnload_Click(object sender, EventArgs e) { GrimoirePlugin p = (GrimoirePlugin)lstLoaded.SelectedItem; if (p != null) { if (Program.PluginsManager.Unload(p)) { lstLoaded.Items.Remove(p); lblAuthor.Text = "Plugin created by:"; txtDesc.Clear(); } else { MessageBox.Show(p.LastError, "Grimoire", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }
private void btnUnload_Click(object sender, EventArgs e) { int index; if ((index = lstLoaded.SelectedIndex) > -1) { GrimoirePlugin p = GrimoirePlugin.LoadedPlugins[index]; if (p.Unload()) { lstLoaded.Items.RemoveAt(index); lblAuthor.Text = "Plugin created by:"; txtDesc.Clear(); } else { MessageBox.Show(p.LastError, "Grimoire", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }
private void btnLoad_Click(object sender, EventArgs e) { string dll; if (File.Exists(dll = txtPlugin.Text)) { GrimoirePlugin p = new GrimoirePlugin(dll); if (p.Load()) { txtPlugin.Clear(); lstLoaded.Items.Clear(); lstLoaded.Items.AddRange(GrimoirePlugin.LoadedPlugins.ToArray()); lstLoaded.SelectedItem = p; } else { MessageBox.Show(p.LastError, "Grimoire", MessageBoxButtons.OK, MessageBoxIcon.Error); } } }