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);
        }
Exemple #2
0
 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);
     }
 }