private void btn_save_Click(object sender, EventArgs e) { if (MetroFramework.MetroMessageBox.Show(this, "Do you want to add this information?", "System", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { eCode = txt_employeeID.Text; lastName = txt_ln.Text; firstName = txt_fn.Text; middleName = txt_mi.Text; street = txt_street.Text; barangay = txt_brgy.Text; city = txt_city.Text; province = txt_province.Text; contactNumber = txt_contact.Text; userName = txt_un.Text; passWord = txt_pw.Text; role = cBoxRole.Text; Cls_cmd.AddStaff(); Cls_cmd.AddUser(); MetroFramework.MetroMessageBox.Show(this, "Registration complete!", "System", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { //TODO: NOTHING } }
private void btn_saveVAT_Click(object sender, EventArgs e) { if (MetroMessageBox.Show(this, "Do you want to save this information?", "System", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { vat = txt_percent.Text; Cls_cmd.AddVat(); MetroMessageBox.Show(this, "Saved successfully!", "System", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { //TODO:IF NO, DO NOTHING. } }
private void btn_save_Click_1(object sender, EventArgs e) { if (MetroMessageBox.Show(this, "Do you want to save this information?", "System", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { nameCompany = txt_name.Text; Address = txt_address.Text; phoneNumber = txt_phoneNo.Text; eAddress = txt_email.Text; Website = txt_website.Text; tinNumber = txt_TINNumber.Text; Cls_cmd.AddCompany(); MetroMessageBox.Show(this, "Saved successfully!", "System", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { //TODO:NOTHING } }
private void btn_save_Click(object sender, EventArgs e) { if (MetroFramework.MetroMessageBox.Show(this, "Do you want to add this category?", "System", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { categoryNumber = txt_categoryNo.Text; categoryName = txt_categoryName.Text; description = txt_description.Text; Cls_cmd.AddCategory(); txt_categoryNo.Text = null; txt_categoryName.Text = null; txt_description.Text = null; MetroFramework.MetroMessageBox.Show(this, "Successfully added this category to the database.", "System", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { //TODO: NOTHING } }
private void btn_addStock_Click(object sender, EventArgs e) { if (MetroMessageBox.Show(this, "Do you want to add this stock?", "System", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { Stock = txt_TotalStocks.Text; productCodeStock = lbl_ProductCode.Text; Cls_cmd.AddStock(); MetroMessageBox.Show(this, "Successfully added this information to the database!", "System", MessageBoxButtons.OK, MessageBoxIcon.Information); lbl_ProductCode.Text = null; lbl_Description.Text = null; lbl_Price.Text = null; lbl_CurrentStocks.Text = null; txt_TotalStocks.Text = null; txt_searchReorder.Text = null; } else { //TODO: NOTHING } }
private void btn_Add_Click_1(object sender, EventArgs e) { if (MetroMessageBox.Show(this, "Do you want to add this information?", "System", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { productNo = lbl_productNo.Text; productCode = txt_productCode.Text; description = txt_description.Text; barcode = txt_barCode.Text; category = cBoxCategory.Text; unitPrice = txt_unitPrice.Text; quantityStock = txt_stocksOnHand.Text; reorderLevel = txt_reorderLevel.Text; Cls_cmd.AddProduct(); MetroMessageBox.Show(this, "Registration complete!", "System", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { //TODO: NOTHING } }