예제 #1
0
 public SyringeInjectController(mr.view.MainForm form, String type)
 {
     total = 0;
     mainForm = form;
     syringeType = type;
     status.Reset();
 }
예제 #2
0
 public void Initialize(int t, mr.model.SyringeInjectStatus s)
 {
     total = t;
     status.Direction = s.Direction;
     status.Injected = s.Injected;
     this.InternalChange();
 }
예제 #3
0
 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;
 }
예제 #4
0
        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);
        }
예제 #5
0
 public void OnSyringeStatusChange(mr.model.SyringeInjectStatus s)
 {
     status.Direction = s.Direction;
     status.Injected = s.Injected;
     this.InternalChange();
 }
예제 #6
0
 public void OnSyringeDirectionChange(mr.model.SyringeInjectStatus.SyringeDirection dir)
 {
     status.Direction = dir;
     this.InternalChange();
 }
예제 #7
0
 public InjectProgramController(mr.view.MainForm f)
 {
     this.form = f;
     this.program = new mr.model.InjectProgram();
 }
예제 #8
0
 public void OnInjectStepPhaseChange(int index, mr.model.InjectParameter.InjectPhaseType p)
 {
     program.GetInjectParameter(index).PhaseType = p;
 }
예제 #9
0
 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;
 }