private void btnSua_Click(object sender, RoutedEventArgs e) { if (Danhsachloai.SelectedItem != null) { ThemSuaChucVu ts = new ThemSuaChucVu(Danhsachloai.SelectedItem as Chucvu); (this.Parent as StackPanel).Children.Add(ts); } }
private void btnThem_Click(object sender, RoutedEventArgs e) { ThemSuaChucVu ts = new ThemSuaChucVu(); (this.Parent as StackPanel).Children.Add(ts); }