private void buttonLogin_Click(object sender, EventArgs e) { bool isAuthenicate = logObj.ValidateLoginDetails(textBoxUserName.Text, textBoxPassword.Text); ConsignmentShop conObj = new ConsignmentShop(); try { if (isAuthenicate) { log.LogWrite("\n Authentication Successfull"); this.Hide(); conObj.Show(); } else { MessageBox.Show("Please Enter Correct Username and Password"); textBoxUserName.Clear(); textBoxPassword.Clear(); } } catch (Exception ex) { log.LogWrite(ex.ToString()); } }
public FormEdit(ConsignmentShop prShop) { _parentShop = prShop; InitializeComponent(); var selectedItem = (Item)_parentShop.ItemsListBox.SelectedItem; textBox1.Text = selectedItem.Type; textBox2.Text = selectedItem.Title; textBox3.Text = selectedItem.Price + ""; }
public FormAdd(ConsignmentShop prShop) { _parentShop = prShop; InitializeComponent(); }