Esempio n. 1
0
        private void button29_Click(object sender, EventArgs e)
        {
            CustomerMessageForm edittCustomerMessage = new CustomerMessageForm();

            edittCustomerMessage.MdiParent = this;
            edittCustomerMessage.Show();
            ClosePanelVisible();
        }
Esempio n. 2
0
        private void button4_Click(object sender, EventArgs e)
        {
            CustomerMessageForm customerMessageListForm = new CustomerMessageForm();

            customerMessageListForm.MdiParent = this;
            customerMessageListForm.Show();
            ClosePanelVisible();
        }
        private void miUpdate_Click(object sender, EventArgs e)
        {
            if (dtgCustomerMessage.SelectedRows.Count > 0)
            {
                object cellValue  = dtgCustomerMessage.SelectedRows[0].Cells["ID"].Value;
                int    customerID = (int)cellValue;

                CustomerMessageForm messageForm = new CustomerMessageForm(customerID);
                messageForm.MdiParent = this.MdiParent;
                messageForm.Show();
            }
        }