예제 #1
0
파일: StaffForm.cs 프로젝트: cxxxxxxd/SWA
        private void dataGridViewStaff_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                var sId = dataGridViewStaff.SelectedCells[0].Value.ToString();
                if (String.IsNullOrEmpty(sId))
                {
                    throw new Exception("Не выбран студент");
                }

                var Form = new StaffDocumentsForm();
                Form.StaffId = Int32.Parse(sId);
                Form.Show();
            }
            catch (Exception gg)
            {
                MessageBox.Show(gg.Message, "SWA", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
예제 #2
0
파일: StaffForm.cs 프로젝트: cxxxxxxd/SWA
        private void buttonDocuments_Click(object sender, EventArgs e)
        {
            var Form = new StaffDocumentsForm();

            Form.Show();
        }