Пример #1
0
        private void ViewOrderDetails(int orderId)
        {
            Hide();
            FormOrderDetails frm = new FormOrderDetails(orderId);

            frm.ShowDialog();
        }
Пример #2
0
        void dgOrderList_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                if (dgOrderList.Rows[e.RowIndex].Cells[e.ColumnIndex] is DataGridViewLinkCell)
                {
                    int orderId = Convert.ToInt32(dgOrderList.Rows[e.RowIndex].Cells["dcOrderId"].Value);

                    FormOrderDetails frm = new FormOrderDetails(orderId);
                    Hide();
                    frm.ShowDialog();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }