private void passwordResetToolStripMenuItem_Click(object sender, EventArgs e) { AccountStartUp resetPassword = new AccountStartUp(); resetPassword.ShowDialog(); }
private void Order_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'kitchenDataSet.ProductLot' table. You can move, or remove it, as needed. //this.productLotTableAdapter.Fill(this.kitchenDataSet.ProductLot); // TODO: This line of code loads data into the 'kitchenDataSet.Lot' table. You can move, or remove it, as needed. // this.lotTableAdapter.Fill(this.kitchenDataSet.Lot); // TODO: This line of code loads data into the 'kitchenDataSet.Staff' table. You can move, or remove it, as needed. this.staffTableAdapter.Fill(this.kitchenDataSet.Staff); // TODO: This line of code loads data into the 'kitchenDataSet.Packaging' table. You can move, or remove it, as needed. this.packagingTableAdapter.Fill(this.kitchenDataSet.Packaging); //This line reads the passwordTableAdapter to see if there is an Admin account and sets the variable to checkFirstRun int checkFirstRun = Convert.ToInt32(this.passwordTableAdapter.CheckFirstTime()); //Laucnhes the create Admin account which stores a user name and password that is used later to access specific parts of the program if (checkFirstRun == 0) { AccountStartUp myAccountStartUp = new AccountStartUp(); myAccountStartUp.ShowDialog(); } else { // TODO: This line of code loads data into the 'kitchenDataSet.Ingredients' table. You can move, or remove it, as needed. this.ingredientsTableAdapter.Fill(this.kitchenDataSet.Ingredients); // TODO: This line of code loads data into the 'kitchenDataSet.Ingredients' table. You can move, or remove it, as needed. this.ingredientsTableAdapter.Fill(this.kitchenDataSet.Ingredients); } }