private void CreateClick(object sender, RoutedEventArgs e)
        {
            EditReader op = new EditReader();

            op.Show();
            this.Close();
        }
Exemple #2
0
        private void toolStripButton6_Click(object sender, EventArgs e)
        {
            int        n    = StudentGrid.SelectedCells[0].RowIndex;
            EditReader Edit = new EditReader();

            Edit.MdiParent       = this.MdiParent;
            Edit.TicketBox.Text  = globals.StudentList[n].ticket;
            Edit.FNameBox.Text   = globals.StudentList[n].fname;
            Edit.NameBox.Text    = globals.StudentList[n].name;
            Edit.LNameBox.Text   = globals.StudentList[n].lname;
            Edit.BithdayBox.Text = globals.StudentList[n].bith.ToShortDateString();
            Edit.PhoneBox.Text   = globals.StudentList[n].phone;
            Edit.AddressBox.Text = globals.StudentList[n].adress;
            Edit.Show();
        }