public override string ToString() { string texte = ""; texte = $"jour:{Jour.ToShortDateString()},"; texte += $"sens:{Sens.ToString()},"; texte += $"départ de {IdDépart} a {Départ.ToString()},"; texte += $"arrivé a {IdArrivée} a {Arrivée.ToString()},"; return(texte); }
public override string ToString() { string texte = ""; texte = $"jour:{Jour.ToShortDateString()},"; texte += $"sens:{Sens.ToString()},"; texte += $"départ:{Départ.ToString()},"; texte += $"arrivé:{Arrivée.ToString()},"; texte += $"effectif:{Effectif.ToString()}"; return(texte); }
public string ToFiche() { string RN = "\r\n"; string texte = "---- Course -----" + RN; texte += $"Jour : {Jour.ToShortDateString()}{RN}"; texte += $"Sens : {Enum.GetName(typeof(EnumSens),Sens)}{RN}"; texte += $"Départ : {Départ.ToStringFormat()}{RN}"; texte += $"Arrivé : {Arrivée.ToStringFormat()}{RN}"; // texte += $"Effectif : {Effectif}{RN}"; texte += "Détail " + RN; foreach (var item in Etapes) { texte += "\t" + item.ToFiche() + RN; } return(texte); }
private void ArrivageNew_Click(object sender, RoutedEventArgs e) { try { if (PatientDataGrid.SelectedItem != null && memberuser.CréationSalleAttente == true) { SVC.Patient SelectPatient = PatientDataGrid.SelectedItem as SVC.Patient; Arrivée cl = new Arrivée(proxy, memberuser, callback, null, null, DateTime.Now, 2, SelectPatient, null); cl.Show(); } else { MessageBoxResult result = Xceed.Wpf.Toolkit.MessageBox.Show(Medicus.Properties.Resources.Opérationéchouée, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Stop); } }catch (Exception ex) { MessageBoxResult result = Xceed.Wpf.Toolkit.MessageBox.Show(ex.Message, Medicus.Properties.Resources.SiteWeb, MessageBoxButton.OK, MessageBoxImage.Stop); } }