//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(); }
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(); } }