public SyringeInjectController(mr.view.MainForm form, String type) { total = 0; mainForm = form; syringeType = type; status.Reset(); }
public void Initialize(int t, mr.model.SyringeInjectStatus s) { total = t; status.Direction = s.Direction; status.Injected = s.Injected; this.InternalChange(); }
public TimingController(mr.view.MainForm form) { mainForm = form; timingModel = new mr.model.Timing(0); timer = new System.Timers.Timer(1000); timer.Elapsed += new System.Timers.ElapsedEventHandler(OnTimeOut); timer.AutoReset = true; }
public Imr Create( ImmutableList <ImrCrossJoinElement> value) { Imr crossJoin = null; try { crossJoin = new mr( value); } catch (Exception exception) { this.Log.Error( exception.Message, exception); } return(crossJoin); }
public void OnSyringeStatusChange(mr.model.SyringeInjectStatus s) { status.Direction = s.Direction; status.Injected = s.Injected; this.InternalChange(); }
public void OnSyringeDirectionChange(mr.model.SyringeInjectStatus.SyringeDirection dir) { status.Direction = dir; this.InternalChange(); }
public InjectProgramController(mr.view.MainForm f) { this.form = f; this.program = new mr.model.InjectProgram(); }
public void OnInjectStepPhaseChange(int index, mr.model.InjectParameter.InjectPhaseType p) { program.GetInjectParameter(index).PhaseType = p; }
private String PhaseTypeToString(mr.model.InjectParameter.InjectPhaseType phase, int index) { String result = (index + 1).ToString(); if (mr.model.InjectParameter.InjectPhaseType.CONTRAST == phase) { result += "C"; } else if (mr.model.InjectParameter.InjectPhaseType.SALINE == phase) { result += "S"; } else if (mr.model.InjectParameter.InjectPhaseType.PAUSE == phase) { result += "P"; } else if (mr.model.InjectParameter.InjectPhaseType.TIMED_PAUSE == phase) { result += "TP"; } else { result = "----"; } return result; }