private void createVendorButtonItem_Click(object sender, EventArgs e)
 {
     using (var vCreator = new VendorCreator())
     {
         vCreator.ShowDialog();
     }
 }
        private void editVendorButtonItem_Click(object sender, EventArgs e)
        {
            string vendorID = String.Empty;

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

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