Esempio n. 1
0
        private void frmCompanyRecord_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Hide();
            frmSubCategory frm = new frmSubCategory();

            frm.Show();
        }
Esempio n. 2
0
        private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            DataGridViewRow dr = dataGridView1.SelectedRows[0];

            this.Hide();
            frmSubCategory frm = new frmSubCategory();

            // or simply use column name instead of index
            //dr.Cells["id"].Value.ToString();
            frm.Show();
            frm.txtSubCategoryID.Text = dr.Cells[0].Value.ToString();
            frm.txtSubCategory.Text   = dr.Cells[1].Value.ToString();
            frm.txtCategoryID.Text    = dr.Cells[2].Value.ToString();
            frm.cmbCategory.Text      = dr.Cells[3].Value.ToString();
            frm.btnDelete.Enabled     = true;
            frm.btnUpdate.Enabled     = true;
            frm.txtSubCategory.Focus();
            frm.btnSave.Enabled = false;
        }
Esempio n. 3
0
        private void logOutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmCategory o1 = new frmCategory();

            o1.Hide();
            frmSubCategory o2 = new frmSubCategory();

            o2.Hide();
            frmProduct o3 = new frmProduct();

            o3.Hide();
            frmRegisteredUsersDetails o4 = new frmRegisteredUsersDetails();

            o4.Hide();
            frmRegistration o5 = new frmRegistration();

            o5.Hide();
            frmStockRecord o6 = new frmStockRecord();

            o6.Hide();
            frmCustomersRecord o7 = new frmCustomersRecord();

            o7.Hide();
            frmSuppliersRecord o8 = new frmSuppliersRecord();

            o8.Hide();
            frmProductsRecord2 o9 = new frmProductsRecord2();

            o9.Hide();
            frmSalesRecord2 o10 = new frmSalesRecord2();

            o10.Hide();
            frmLogin frm = new frmLogin();

            frm.Show();
            frm.txtUserName.Text     = "";
            frm.txtPassword.Text     = "";
            frm.ProgressBar1.Visible = false;
            frm.txtUserName.Focus();
        }
Esempio n. 4
0
        private void companyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmSubCategory frm = new frmSubCategory();

            frm.Show();
        }