Ejemplo n.º 1
0
 public static MeetingDB ConvertToMeetingDb(PrimaryMeeting meeting)
 {
     MeetingDB res = new MeetingDB();
     res.Id = meeting.Id;
     res.Subject = meeting.Subject;
     res.Attendees = meeting.Attendees;
     res.Description = meeting.Details;
     res.Duration = Int32.Parse(meeting.Duration);
     res.StartDate = meeting.Date.ToDateTime();
     return res;
 }
Ejemplo n.º 2
0
 public static PrimaryMeeting ConvertToPrimaryMeeting(MeetingDB meeting)
 {
     PrimaryMeeting res = new PrimaryMeeting();
     res.Id = meeting.Id;
     res.Subject = meeting.Subject;
     res.Attendees = meeting.Attendees;
     res.Details = meeting.Description;
     res.Duration = meeting.ToString();
     PersianDate date = new PersianDate(meeting.StartDate);
     res.Date = date;
     return res; 
 }
Ejemplo n.º 3
0
 private void init()
 {
     Meeting = new PrimaryMeeting();
     Date_Types = new ObservableCollection<string>();
     Fill_Combo();
     Date = new PersianDate(DateTime.Now);
 }
Ejemplo n.º 4
0
 public void DeleteMeeting(PrimaryMeeting meeting)
 {
     MeetingDB temp = Converter.ConvertToMeetingDb(meeting);
     repository.Delete(temp);
 }