private void materialFlatButton1_Click_1(object sender, EventArgs e)
        {
            this.Hide();
            frmcreatecustomer customer = new frmcreatecustomer();

            customer.Show();
        }
        private void metroTile8_Click_1(object sender, EventArgs e)
        {
            frmcreatecustomer customer = new frmcreatecustomer();

            customer.Show();
            this.Hide();
        }
Example #3
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            frmcreatecustomer frm = new frmcreatecustomer();

            frm.Show();
            this.Hide();
        }
        private void kenable()
        {
            frmcreatecustomer select = new frmcreatecustomer();

            select.txtid.Enabled            = true;
            select.txtcustomername.Enabled  = true;
            select.txtcomemail.Enabled      = true;
            select.txtmobileno.Enabled      = true;
            select.txtCdate.Enabled         = true;
            select.cmbxcreatedby.Enabled    = true;
            select.cmbxtown.Enabled         = true;
            select.txtcity.Enabled          = true;
            select.txtstreet.Enabled        = true;
            select.txtbuilding.Enabled      = true;
            select.txtpostaladdress.Enabled = true;
            select.cmbxcontact.Enabled      = true;
        }
Example #5
0
        private void kdvcustomer_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            frmcreatecustomer select = new frmcreatecustomer();

            select.txtid.Text            = kdvcustomer.CurrentRow.Cells [0].Value.ToString();
            select.txtcustomername.Text  = kdvcustomer.CurrentRow.Cells [1].Value.ToString();
            select.txtcomemail.Text      = kdvcustomer.CurrentRow.Cells [2].Value.ToString();
            select.txtmobileno.Text      = kdvcustomer.CurrentRow.Cells [3].Value.ToString();
            select.txtCdate.Text         = kdvcustomer.CurrentRow.Cells [4].Value.ToString();
            select.cmbxcreatedby.Text    = kdvcustomer.CurrentRow.Cells [5].Value.ToString();
            select.cmbxtown.Text         = kdvcustomer.CurrentRow.Cells [6].Value.ToString();
            select.txtcity.Text          = kdvcustomer.CurrentRow.Cells [7].Value.ToString();
            select.txtstreet.Text        = kdvcustomer.CurrentRow.Cells [8].Value.ToString();
            select.txtbuilding.Text      = kdvcustomer.CurrentRow.Cells [9].Value.ToString();
            select.txtpostaladdress.Text = kdvcustomer.CurrentRow.Cells [10].Value.ToString();
            select.cmbxcontact.Text      = kdvcustomer.CurrentRow.Cells [11].Value.ToString();

            select.ShowDialog();
            keen();

            select.txtid.Enabled            = false;
            select.txtcustomername.Enabled  = false;
            select.txtcomemail.Enabled      = false;
            select.txtmobileno.Enabled      = false;
            select.txtCdate.Enabled         = false;
            select.cmbxcreatedby.Enabled    = false;
            select.cmbxtown.Enabled         = false;
            select.txtcity.Enabled          = false;
            select.txtstreet.Enabled        = false;
            select.txtbuilding.Enabled      = false;
            select.txtpostaladdress.Enabled = false;
            select.cmbxcontact.Enabled      = false;

            //select.ShowDialog ();
            this.Close();
        }