Ejemplo n.º 1
0
        public void RemovePlanSetup(ESAPIX.Facade.API.PlanSetup planSetup)
        {
            if ((XC.Instance) != (null))
            {
                XC.Instance.Invoke(() =>
                {
                    _client.RemovePlanSetup(planSetup._client);
                }

                                   );
            }
            else
            {
                _client.RemovePlanSetup(planSetup);
            }
        }
Ejemplo n.º 2
0
        public ESAPIX.Facade.API.PlanSetup CopyPlanSetup(ESAPIX.Facade.API.PlanSetup sourcePlan)
        {
            if ((XC.Instance) != (null))
            {
                var vmsResult = (XC.Instance.GetValue(sc =>
                {
                    var fromClient = (_client.CopyPlanSetup(sourcePlan._client));
                    if ((fromClient) == (null))
                    {
                        return(null);
                    }

                    return(new ESAPIX.Facade.API.PlanSetup(fromClient));
                }

                                                      ));
                return(vmsResult);
            }
            else
            {
                return((ESAPIX.Facade.API.PlanSetup)(_client.CopyPlanSetup(sourcePlan)));
            }
        }
Ejemplo n.º 3
0
        public ESAPIX.Facade.API.PlanSetup CopyPlanSetup(ESAPIX.Facade.API.PlanSetup sourcePlan, ESAPIX.Facade.API.StructureSet structureset, System.Text.StringBuilder outputDiagnostics)
        {
            if ((XC.Instance) != (null))
            {
                var vmsResult = (XC.Instance.GetValue(sc =>
                {
                    var fromClient = (_client.CopyPlanSetup(sourcePlan._client, structureset._client, outputDiagnostics));
                    if ((fromClient) == (null))
                    {
                        return(null);
                    }

                    return(new ESAPIX.Facade.API.PlanSetup(fromClient));
                }

                                                      ));
                return(vmsResult);
            }
            else
            {
                return((ESAPIX.Facade.API.PlanSetup)(_client.CopyPlanSetup(sourcePlan, structureset, outputDiagnostics)));
            }
        }
Ejemplo n.º 4
0
        public System.Boolean CanRemovePlanSetup(ESAPIX.Facade.API.PlanSetup planSetup)
        {
            if ((XC.Instance) != (null))
            {
                var vmsResult = (XC.Instance.GetValue(sc =>
                {
                    var fromClient = (_client.CanRemovePlanSetup(planSetup._client));
                    if (fromClient.Equals(default(System.Boolean)))
                    {
                        return(default(System.Boolean));
                    }

                    return((System.Boolean)(fromClient));
                }

                                                      ));
                return(vmsResult);
            }
            else
            {
                return((System.Boolean)(_client.CanRemovePlanSetup(planSetup)));
            }
        }
Ejemplo n.º 5
0
        public System.Double GetPlanWeight(ESAPIX.Facade.API.PlanSetup planSetupInPlanSum)
        {
            if ((XC.Instance) != (null))
            {
                var vmsResult = (XC.Instance.GetValue(sc =>
                {
                    var fromClient = (_client.GetPlanWeight(planSetupInPlanSum._client));
                    if (fromClient.Equals(default(System.Double)))
                    {
                        return(default(System.Double));
                    }

                    return((System.Double)(fromClient));
                }

                                                      ));
                return(vmsResult);
            }
            else
            {
                return((System.Double)(_client.GetPlanWeight(planSetupInPlanSum)));
            }
        }
Ejemplo n.º 6
0
        public VMS.TPS.Common.Model.Types.PlanSumOperation GetPlanSumOperation(ESAPIX.Facade.API.PlanSetup planSetupInPlanSum)
        {
            if ((XC.Instance) != (null))
            {
                var vmsResult = (XC.Instance.GetValue(sc =>
                {
                    var fromClient = (_client.GetPlanSumOperation(planSetupInPlanSum._client));
                    if (fromClient.Equals(default(VMS.TPS.Common.Model.Types.PlanSumOperation)))
                    {
                        return(default(VMS.TPS.Common.Model.Types.PlanSumOperation));
                    }

                    return((VMS.TPS.Common.Model.Types.PlanSumOperation)(fromClient));
                }

                                                      ));
                return(vmsResult);
            }
            else
            {
                return((VMS.TPS.Common.Model.Types.PlanSumOperation)(_client.GetPlanSumOperation(planSetupInPlanSum)));
            }
        }
Ejemplo n.º 7
0
        public System.Boolean HasLocation(ESAPIX.Facade.API.PlanSetup planSetup)
        {
            if ((XC.Instance.CurrentContext) != (null))
            {
                var vmsResult = (XC.Instance.CurrentContext.GetValue(sc =>
                {
                    var fromClient = (_client.HasLocation(planSetup._client));
                    if (fromClient.Equals(default(System.Boolean)))
                    {
                        return(default(System.Boolean));
                    }

                    return((System.Boolean)(fromClient));
                }

                                                                     ));
                return(vmsResult);
            }
            else
            {
                return((System.Boolean)(_client.HasLocation(planSetup)));
            }
        }
Ejemplo n.º 8
0
        public VMS.TPS.Common.Model.Types.VVector GetReferencePointLocation(ESAPIX.Facade.API.PlanSetup planSetup)
        {
            if ((XC.Instance.CurrentContext) != (null))
            {
                var vmsResult = (XC.Instance.CurrentContext.GetValue(sc =>
                {
                    var fromClient = (_client.GetReferencePointLocation(planSetup._client));
                    if (fromClient.Equals(default(VMS.TPS.Common.Model.Types.VVector)))
                    {
                        return(default(VMS.TPS.Common.Model.Types.VVector));
                    }

                    return((VMS.TPS.Common.Model.Types.VVector)(fromClient));
                }

                                                                     ));
                return(vmsResult);
            }
            else
            {
                return((VMS.TPS.Common.Model.Types.VVector)(_client.GetReferencePointLocation(planSetup)));
            }
        }
Ejemplo n.º 9
0
        public VMS.TPS.Common.Model.Types.VVector UserToDicom(VMS.TPS.Common.Model.Types.VVector user, ESAPIX.Facade.API.PlanSetup planSetup)
        {
            if ((XC.Instance) != (null))
            {
                var vmsResult = (XC.Instance.GetValue(sc =>
                {
                    var fromClient = (_client.UserToDicom(user, planSetup._client));
                    if (fromClient.Equals(default(VMS.TPS.Common.Model.Types.VVector)))
                    {
                        return(default(VMS.TPS.Common.Model.Types.VVector));
                    }

                    return((VMS.TPS.Common.Model.Types.VVector)(fromClient));
                }

                                                      ));
                return(vmsResult);
            }
            else
            {
                return((VMS.TPS.Common.Model.Types.VVector)(_client.UserToDicom(user, planSetup)));
            }
        }