public static EMS CreateEMS(Rage.Ped patient, string[] dialog, EMSData ed) { var e = new EMS(patient, ed.DispatchTo, dialog, ed.TransportToHospital, ed.SpawnAtScene, ed.DispatchFromHospital); ApplyServiceProperties(e, ed); return(e); }
public ViewTaskForm(EMS.Execution.Task t) { InitializeComponent(); attachmentPanel1.ViewMode = true; if (t != null) { name_label.Text = t.Title; fromDate_label.Text = t.getStartDateString(); toDate_label.Text = t.getDueDateString(); manager_label.Text = t.department.Name; progress_label.Text = t.Progress.ToString(); dscp_box.Text = t.Description; attachmentPanel1.populate(t.attachments); } }