Esempio n. 1
0
 private void createLootButtonItem_Click(object sender, EventArgs e)
 {
     using (var lCreator = new LootCreator())
     {
         lCreator.ShowDialog();
     }
 }
Esempio n. 2
0
        private void editLootButtonItem_Click(object sender, EventArgs e)
        {
            string lootID = String.Empty;

            if (Methods.InputBox("Entry ID", "What is the entry ID of the loot?", ref lootID) == DialogResult.OK)
            {
                int id = 0;

                if (int.TryParse(lootID, out id))
                {
                    using (var lEditor = new LootCreator() { editor = true, editLootID = id })
                    {
                        lEditor.ShowDialog();
                    }
                }
                else
                {
                    TaskDialog.Show(new TaskDialogInfo("Error", eTaskDialogIcon.Stop, "Error!",
                    "The entry id must be a number", eTaskDialogButton.Ok));
                }
            }
        }