private void Editare_Click(object sender, RoutedEventArgs e) { DataRow row = getSelectedRow(); switch (currentCase) { case "Candidati": Candidat candidat = new Candidat(false, row,this); candidat.ShowDialog(); break; case "Firme": Firma firma = new Firma(false, row, this); firma.ShowDialog(); break; case "Programe acreditate": Programe program = new Programe(false, row, this); program.ShowDialog(); break; case "Contracte": Contract contract = new Contract(false, row, this); contract.ShowDialog(); break; default: break; } }
private void CandidateAdauga_Click(object sender, RoutedEventArgs e) { switch (currentCase) { case "Candidati": Candidat candidat = new Candidat(false,null,this); candidat.ShowDialog(); break; case "Firme": Firma firma = new Firma(false,null,this); firma.ShowDialog(); break; case "Programe acreditate": Programe program = new Programe(false,null,this); program.ShowDialog(); break; case "Contracte": Contract contract = new Contract(false, null, this); contract.ShowDialog(); break; default: break; } // RefreshCandidati(); }