Пример #1
0
 // Opens the check in/out log
 private void checkLogButton_Click(object sender, EventArgs e)
 {
     // If there's something selected
     if (instrumentList.SelectedItem != null)
     {
         checkOutInLog check = new checkOutInLog((Instrument)instrumentList.SelectedItem);
         check.ShowDialog();
     }
 }
        // Open student data if the student is double-clicked
        private void studentList_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            string name = studentList.SelectedItem.ToString();

            name = name.Remove(name.LastIndexOf(":"));

            // Open new student log
            checkOutInLog log = new checkOutInLog(name);

            log.Show();
        }