Esempio n. 1
0
        //private void Button_Click_1(object sender, RoutedEventArgs e)
        //{

        //}

        private void btnAddIns_Click(object sender, RoutedEventArgs e)
        {
            AddIns add = new AddIns();

            add.Name = "frmAdd";
            add.ShowDialog();
        }
Esempio n. 2
0
 private void btnUpdateIns_Click(object sender, RoutedEventArgs e)
 {
     if (lboxinstructor.SelectedIndex < 0)
     {
         return;
     }
     else if (lboxinstructor.SelectedIndex > 0)
     {
         int    ID  = int.Parse(lboxinstructor.SelectedValue.ToString());
         AddIns add = new AddIns(ID);
         add.Name = "frmUpdate";
         add.ShowDialog();
     }
 }