Exemple #1
0
        private void Minus_person_Btn_Click(object sender, EventArgs e)
        {
            try
            {
                int p = int.Parse(For_No_of_Persons_Txt.Text);

                if (p > 1)
                {
                    int newp = p - 1;
                    For_No_of_Persons_Txt.Text = newp.ToString();
                }
                else if (p == 1)
                {
                    Glob_Veriables.Show_NotiFiCation("STOP!", "MINIMUM ONE PERSON REQUIRED");
                }

                Calculations();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Exemple #2
0
        private void SAVE_Edit_Btn_Click(object sender, EventArgs e)
        {
            try
            {
                WARPRO.Glob.CustomersAndAgents.Glob_OurCompanyProfile.UpdateOurCompany_Info(CompanyName_Txt.Text, Owner_NAME_Txt.Text, Address_Txt.Text, Company_Mobile_Txt.Text, Owner_Mobile_Txt.Text, Extra_Mobile_Txt.Text, EmailTxt.Text, Extra_Email_Txt.Text, Extra_Details_Txt.Text, Glob_Veriables.ImageToByte(ImageR.Image));
                this.Close();
                WARPRO.Glob.CacheData.Glob_Veriables.Show_NotiFiCation("UPDATED", "INFORMATION HAS BEEN SUCCESSFULLY UPDATED");
            }

            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }