Exemple #1
0
 public SessionViewModel()
 {
     AllImages                = new List <string>();
     _viewerImages            = new ObservableCollection <string>();
     _uxImageViewerVisibility = System.Windows.Visibility.Collapsed;
     _numberOfPhotosTaken     = Properties.Settings.Default.NumberOfPhotosTaken;
 }
        public BRAFV600EKResultPage(YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder panelSetOrderBraf,
                                    YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                    YellowstonePathology.Business.User.SystemIdentity systemIdentity,
                                    YellowstonePathology.UI.Navigation.PageNavigator pageNavigator,
                                    System.Windows.Visibility backButtonVisibility) : base(panelSetOrderBraf, accessionOrder)
        {
            this.m_PanelSetOrder        = panelSetOrderBraf;
            this.m_AccessionOrder       = accessionOrder;
            this.m_SystemIdentity       = systemIdentity;
            this.m_PageNavigator        = pageNavigator;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_PageHeaderText = "BRAF V600E/K Mutation Analysis Results For: " + this.m_AccessionOrder.PatientDisplayName + " (" + panelSetOrderBraf.ReportNo + ")";
            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetByAliquotOrderId(this.m_PanelSetOrder.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(this.m_PanelSetOrder.OrderedOnId);
            this.m_OrderedOnDescription = specimenOrder.Description + ": " + aliquotOrder.Label;

            this.m_IndicationCollection = YellowstonePathology.Business.Test.IndicationCollection.GetAll();
            this.m_ResultCollection     = YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKResultCollection.GetUniqueResultChoices();

            InitializeComponent();

            this.m_ParentWindow = Window.GetWindow(this);
            DataContext         = this;

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack);
            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonNext);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
        public LynchSyndromeEvaluationResultPage(YellowstonePathology.Business.Test.LynchSyndrome.PanelSetOrderLynchSyndromeEvaluation panelSetOrderLynchSyndromeEvaluation,
			YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			YellowstonePathology.Business.User.SystemIdentity systemIdentity,
            System.Windows.Visibility backButtonVisibility)
            : base(panelSetOrderLynchSyndromeEvaluation, accessionOrder)
        {
            this.m_PanelSetOrderLynchSyndromeEvaluation = panelSetOrderLynchSyndromeEvaluation;
            this.m_AccessionOrder = accessionOrder;
            this.m_SystemIdentity = systemIdentity;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_LSETypeCollection = new Business.Test.LynchSyndrome.LSETypeCollection();
            this.m_PageHeaderText = "Lynch Syndrome Evaluation Results For: " + this.m_AccessionOrder.PatientDisplayName + " (" + this.m_PanelSetOrderLynchSyndromeEvaluation.ReportNo + ")";

            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(this.m_PanelSetOrderLynchSyndromeEvaluation.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(this.m_PanelSetOrderLynchSyndromeEvaluation.OrderedOnId);
            this.m_OrderedOnDescription = specimenOrder.Description;
            if (aliquotOrder != null) this.m_OrderedOnDescription += ": " + aliquotOrder.Label;

            InitializeComponent();
            DataContext = this;

            this.Loaded += new RoutedEventHandler(LynchSyndromeEvaluationResultPage_Loaded);

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack);
            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonNext);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
        public KRASStandardReflexResultPage(YellowstonePathology.Business.Test.KRASStandardReflex.KRASStandardReflexTestOrder krasStandardReflexTestOrder,
            YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			YellowstonePathology.Business.User.SystemIdentity systemIdentity,
			YellowstonePathology.UI.Navigation.PageNavigator pageNavigator,
			System.Windows.Visibility backButtonVisibility)
            : base(krasStandardReflexTestOrder, accessionOrder)
        {
            this.m_KRASStandardReflexTestOrder = krasStandardReflexTestOrder;
            this.m_AccessionOrder = accessionOrder;
            this.m_SystemIdentity = systemIdentity;
            this.m_PageNavigator = pageNavigator;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_IndicationCollection = YellowstonePathology.Business.Test.IndicationCollection.GetAll();
            this.m_KRASStandardReflexResult = YellowstonePathology.Business.Test.KRASStandardReflex.KRASStandardReflexResultFactory.GetResult(this.m_KRASStandardReflexTestOrder.ReportNo, this.m_AccessionOrder);

            this.m_PageHeaderText = "KRAS Standard Reflex Results For: " + this.m_AccessionOrder.PatientDisplayName + " (" + krasStandardReflexTestOrder.ReportNo + ")";
            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetByAliquotOrderId(this.m_KRASStandardReflexTestOrder.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(this.m_KRASStandardReflexTestOrder.OrderedOnId);
            this.m_OrderedOnDescription = specimenOrder.Description + ": " + aliquotOrder.Label;

            InitializeComponent();

            DataContext = this;

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack);
            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonNext);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
Exemple #5
0
        public LynchSyndromeEvaluationResultPage(YellowstonePathology.Business.Test.LynchSyndrome.PanelSetOrderLynchSyndromeEvaluation panelSetOrderLynchSyndromeEvaluation,
                                                 YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                                 YellowstonePathology.Business.User.SystemIdentity systemIdentity,
                                                 System.Windows.Visibility backButtonVisibility)
        {
            this.m_PanelSetOrderLynchSyndromeEvaluation = panelSetOrderLynchSyndromeEvaluation;
            this.m_AccessionOrder       = accessionOrder;
            this.m_SystemIdentity       = systemIdentity;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_LSETypeCollection = new Business.Test.LynchSyndrome.LSETypeCollection();
            this.m_PageHeaderText    = "Lynch Syndrome Evaluation Results For: " + this.m_AccessionOrder.PatientDisplayName + " (" + this.m_PanelSetOrderLynchSyndromeEvaluation.ReportNo + ")";

            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(this.m_PanelSetOrderLynchSyndromeEvaluation.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(this.m_PanelSetOrderLynchSyndromeEvaluation.OrderedOnId);
            this.m_OrderedOnDescription = specimenOrder.Description;
            if (aliquotOrder != null)
            {
                this.m_OrderedOnDescription += ": " + aliquotOrder.Label;
            }

            InitializeComponent();
            DataContext = this;

            this.Loaded += new RoutedEventHandler(LynchSyndromeEvaluationResultPage_Loaded);
        }
Exemple #6
0
        public LynchSyndromeEvaluationResultPage(YellowstonePathology.Business.Test.LynchSyndrome.PanelSetOrderLynchSyndromeEvaluation panelSetOrderLynchSyndromeEvaluation,
                                                 YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                                 YellowstonePathology.Business.User.SystemIdentity systemIdentity,
                                                 System.Windows.Visibility backButtonVisibility) : base(panelSetOrderLynchSyndromeEvaluation, accessionOrder)
        {
            this.m_PanelSetOrderLynchSyndromeEvaluation = panelSetOrderLynchSyndromeEvaluation;
            this.m_AccessionOrder       = accessionOrder;
            this.m_SystemIdentity       = systemIdentity;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_LSETypeCollection = new Business.Test.LynchSyndrome.LSETypeCollection();
            this.m_PageHeaderText    = "Lynch Syndrome Evaluation Results For: " + this.m_AccessionOrder.PatientDisplayName + " (" + this.m_PanelSetOrderLynchSyndromeEvaluation.ReportNo + ")";

            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(this.m_PanelSetOrderLynchSyndromeEvaluation.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(this.m_PanelSetOrderLynchSyndromeEvaluation.OrderedOnId);
            this.m_OrderedOnDescription = specimenOrder.Description;
            if (aliquotOrder != null)
            {
                this.m_OrderedOnDescription += ": " + aliquotOrder.Label;
            }

            this.FillLSERuleCollection();

            InitializeComponent();
            DataContext = this;

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack);
            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonNext);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="e">A11yElement</param>
        /// <param name="rr">Scan result</param>
        public RuleResultViewModel(A11yElement e, RuleResult rr)
        {
            if (rr == null)
            {
                throw new ArgumentNullException(nameof(rr));
            }

            this.Element = e ?? throw new ArgumentNullException(nameof(e));

            var p = e.Properties.ById(rr.MetaInfo.PropertyId);

            if (p != null)
            {
                this.Properties = String.Format(CultureInfo.InvariantCulture, "{0}={1}", p.Name, p.TextValue);
            }

            if (StandardLinksHelper.GetDefaultInstance().HasStoredLink(rr.MetaInfo))
            {
                this.SnippetLink = StandardLinksHelper.GetDefaultInstance().GetSnippetQueryUrl(rr.MetaInfo);
            }
            this.LoadingVisibility = System.Windows.Visibility.Collapsed;
            this.Description       = rr.Description;
            this.URL               = rr.HelpUrl.Url;
            this.Source            = rr.Source;
            this.LoadingVisibility = System.Windows.Visibility.Collapsed;
            this.RuleResult        = rr;
            // show website icon for NotSupported case
            this.GlyphName = rr.Status == ScanStatus.ScanNotSupported ? FabricIcon.MapDirections : FabricIcon.AlertSolid;
        }
        private void ActivateRuleButtons(System.Windows.Visibility TurnOn)
        {
            btnRule1.Visibility = TurnOn;
            lblRule1.Visibility = TurnOn;
            btnRule2.Visibility = TurnOn;
            lblRule2.Visibility = TurnOn;

            if (RuleMode == RuleModes.Rule3)
            {
                btnRule3.IsEnabled  = TurnOn == System.Windows.Visibility.Visible;
                lblRule4.Visibility = TurnOn;
                btnRule4.Visibility = TurnOn;
            }
            else if (RuleMode == RuleModes.Rule4)
            {
                btnRule4.IsEnabled  = TurnOn == System.Windows.Visibility.Visible;
                lblRule3.Visibility = TurnOn;
                btnRule3.Visibility = TurnOn;
            }
            else
            {
                lblRule3.Visibility = TurnOn;
                btnRule3.Visibility = TurnOn;
                btnRule3.IsEnabled  = TurnOn == System.Windows.Visibility.Visible;
                lblRule4.Visibility = TurnOn;
                btnRule4.Visibility = TurnOn;
                btnRule4.IsEnabled  = TurnOn == System.Windows.Visibility.Visible;
            }
        }
Exemple #9
0
 private void SetVisibleValue(System.Windows.Visibility value)
 {
     passwordLabel1.Visibility          = password1.Visibility =
         passwordLabel2.Visibility      = password2.Visibility = phoneLabel.Visibility = phone.Visibility =
             mobileLabel.Visibility     = mobile.Visibility = administratorLabel.Visibility = isAdministrator.Visibility =
                 activeLabel.Visibility = isActive.Visibility = costCenterLabel.Visibility = costCenter.Visibility = idLabel.Visibility = employeeID.Visibility = supervisorLabel.Visibility = isSupervisor.Visibility = value;
 }
        public ComprehensiveColonCancerProfilePage(YellowstonePathology.Business.Test.ComprehensiveColonCancerProfile.ComprehensiveColonCancerProfile comprehensiveColonCancerProfile,
			YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			YellowstonePathology.Business.User.SystemIdentity systemIdentity,
            System.Windows.Visibility backButtonVisibility)
            : base(comprehensiveColonCancerProfile, accessionOrder)
        {
            this.m_ComprehensiveColonCancerProfile = comprehensiveColonCancerProfile;
            this.m_AccessionOrder = accessionOrder;
            this.m_SystemIdentity = systemIdentity;
            this.m_BackButtonVisibility = backButtonVisibility;

            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(comprehensiveColonCancerProfile.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(comprehensiveColonCancerProfile.OrderedOnId);
            this.m_OrderedOnDescription = specimenOrder.Description;
            if (aliquotOrder != null) this.m_OrderedOnDescription += ": " + aliquotOrder.Label;

            this.m_ComprehensiveColonCancerProfileResult = new Business.Test.ComprehensiveColonCancerProfile.ComprehensiveColonCancerProfileResult(this.m_AccessionOrder, this.m_ComprehensiveColonCancerProfile);

            this.m_PageHeaderText = "Comprehensive Colon Cancer Profile: " + this.m_AccessionOrder.PatientDisplayName + " (" + this.m_ComprehensiveColonCancerProfile.ReportNo + ")";

            InitializeComponent();

            DataContext = this;

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonNext);
            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
        public ReferentielControlVM()
        {
            this.IsLoading     = Visibility.Hidden;
            this.NoBlock       = true;
            this.FonctionAdd   = new RelayCommand(new Action <object>(this.FonctionAddDelegate), new Func <object, bool>(this.CanFonctionAddDelegate));
            this.FonctionErase = new RelayCommand(new Action <object>(this.FonctionEraseDelegate), new Func <object, bool>(this.CanFonctionEraseDelegate));
            this.Valid         = new RelayCommand(new Action <object>(this.ValidDelegate));
            this.Cancel        = new RelayCommand(new Action <object>(this.CancelDelegate));
            this.Close         = new RelayCommand(new Action <object>(this.CloseDelegate));
            this.ExportCSV     = new RelayCommand(new Action <object>(this.ExportCSVDelegate));
            this.ImportCSV     = new RelayCommand(new Action <object>(this.ImportCSVDelegate));

            ControlChamps = new ControlChamps();
            Binding bindingCurrentElement = new Binding("CurrentElement");

            bindingCurrentElement.UpdateSourceTrigger   = UpdateSourceTrigger.PropertyChanged;
            bindingCurrentElement.NotifyOnSourceUpdated = true;
            bindingCurrentElement.Mode   = BindingMode.TwoWay;
            bindingCurrentElement.Source = this;
            ControlChamps.SetBinding(ControlChamps.CurrentElementProperty, bindingCurrentElement);

            Binding bindingMode = new Binding("Mode");

            bindingMode.Source = this;
            bindingMode.UpdateSourceTrigger   = UpdateSourceTrigger.PropertyChanged;
            bindingMode.NotifyOnSourceUpdated = true;
            ControlChamps.SetBinding(ControlChamps.ModeProperty, bindingMode);
            ControlChamps.Event += ControlChamps_Event;

            Mode = MODE_COMPOSANT_REFERENTIIEL.CONSULT;
        }
        public ComprehensiveColonCancerProfilePage(YellowstonePathology.Business.Test.ComprehensiveColonCancerProfile.ComprehensiveColonCancerProfile comprehensiveColonCancerProfile,
                                                   YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                                   YellowstonePathology.Business.User.SystemIdentity systemIdentity,
                                                   System.Windows.Visibility backButtonVisibility) : base(comprehensiveColonCancerProfile, accessionOrder)
        {
            this.m_ComprehensiveColonCancerProfile = comprehensiveColonCancerProfile;
            this.m_AccessionOrder       = accessionOrder;
            this.m_SystemIdentity       = systemIdentity;
            this.m_BackButtonVisibility = backButtonVisibility;

            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(comprehensiveColonCancerProfile.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(comprehensiveColonCancerProfile.OrderedOnId);
            this.m_OrderedOnDescription = specimenOrder.Description;
            if (aliquotOrder != null)
            {
                this.m_OrderedOnDescription += ": " + aliquotOrder.Label;
            }

            this.m_ComprehensiveColonCancerProfileResult = new Business.Test.ComprehensiveColonCancerProfile.ComprehensiveColonCancerProfileResult(this.m_AccessionOrder, this.m_ComprehensiveColonCancerProfile);

            this.m_PageHeaderText = "Comprehensive Colon Cancer Profile: " + this.m_AccessionOrder.PatientDisplayName + " (" + this.m_ComprehensiveColonCancerProfile.ReportNo + ")";

            InitializeComponent();

            DataContext = this;

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonNext);
            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
        /// <summary>
        /// Annuler les modifications sur la grille de données.
        /// </summary>
        /// <param name="obj"></param>
        private void CancelDelegate(object obj)
        {
            if (IsLoading == Visibility.Visible)
            {
                ShowMessageBox.Show(TYPE_WINDOW_BOX.AVERTISSEMENT, messLoading, "");
            }
            else
            {
                ThreadPool.QueueUserWorkItem(async =>
                {
                    var dispatcher = Application.Current.Dispatcher;
                    dispatcher.Invoke(() =>
                    {
                        IsLoading = Visibility.Visible;
                    });

                    if (BLL != null)
                    {
                        BLL.RollBack();
                        ListSource = new ObservableCollection <IDTO>(BLL.SelectAllBusiness());
                    }

                    dispatcher.Invoke(() =>
                    {
                        IsLoading = Visibility.Hidden;
                    });
                });
            }
        }
        public StandingOrderPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;

            this.m_WomensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest();
            this.m_Physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId);
            this.m_StandingOrderCollection = this.m_Physician.GetStandingOrderCollection();

            this.m_HPVStandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPVStandingOrders();
            this.m_HPV1618StandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPV1618StandingOrders();

            if (accessionOrder.PanelSetOrderCollection.Exists(this.m_WomensHealthProfileTest.PanelSetId) == true)
            {
                this.m_WomensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_WomensHealthProfileTest.PanelSetId);
                this.m_WomensHealthProfileVisibility = System.Windows.Visibility.Visible;
                this.UpdateWomensHealthProfile();
            }
            else
            {
                this.m_WomensHealthProfileVisibility = System.Windows.Visibility.Collapsed;
            }

            this.m_AccessionOrderList = new List<Business.Test.AccessionOrder>();
            this.m_AccessionOrderList.Add(this.m_AccessionOrder);

            InitializeComponent();

            DataContext = this;
        }
Exemple #15
0
 private void setAllToSomething(TextBox[] boxes, System.Windows.Visibility a)
 {
     for (int i = 0; i < boxes.Length; i++)
     {
         boxes[i].Visibility = a;
     }
 }
Exemple #16
0
 private void ocultarMensaje()
 {
     visibilidadMensaje = Visibility.Collapsed;
     mensajeMostrar     = "";
     this.OnPropertyChanged("VisibilidadMensaje");
     this.OnPropertyChanged("MensajeMostrar");
 }
        public BRAFV600EKResultPage(YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKTestOrder panelSetOrderBraf,
			YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			YellowstonePathology.Business.User.SystemIdentity systemIdentity,
			YellowstonePathology.UI.Navigation.PageNavigator pageNavigator,
			System.Windows.Visibility backButtonVisibility)
            : base(panelSetOrderBraf, accessionOrder)
        {
            this.m_PanelSetOrder = panelSetOrderBraf;
            this.m_AccessionOrder = accessionOrder;
            this.m_SystemIdentity = systemIdentity;
            this.m_PageNavigator = pageNavigator;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_PageHeaderText = "BRAF V600E/K Mutation Analysis Results For: " + this.m_AccessionOrder.PatientDisplayName + " (" + panelSetOrderBraf.ReportNo + ")";
            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetByAliquotOrderId(this.m_PanelSetOrder.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(this.m_PanelSetOrder.OrderedOnId);
            this.m_OrderedOnDescription = specimenOrder.Description + ": " + aliquotOrder.Label;

            this.m_IndicationCollection = YellowstonePathology.Business.Test.IndicationCollection.GetAll();
            this.m_ResultCollection = YellowstonePathology.Business.Test.BRAFV600EK.BRAFV600EKResultCollection.GetUniqueResultChoices();

            InitializeComponent();

            this.m_ParentWindow = Window.GetWindow(this);
            DataContext = this;

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack);
            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonNext);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
Exemple #18
0
        public void setBytePointer(int position, bool visible)
        {
            System.Windows.Visibility vis = System.Windows.Visibility.Hidden;
            if (visible)
            {
                vis = System.Windows.Visibility.Visible;
            }

            int pos;

            if (position < 0)
            {
                this.bytePointer.Width = 3;
                pos = 0;
            }
            else if (position > 7)
            {
                this.bytePointer.Width = 3;
                pos = 8;
            }
            else
            {
                this.bytePointer.Width = 24;
                pos = position;
            }

            this.bytePointer.Visibility = vis;
            this.bytePointer.Margin     = new System.Windows.Thickness(attDecBlock.Margin.Left - 2 + (230 * pos) / 8, bytePointer.Margin.Top, 0, 0);
        }
Exemple #19
0
        public KRASStandardReflexResultPage(YellowstonePathology.Business.Test.KRASStandardReflex.KRASStandardReflexTestOrder krasStandardReflexTestOrder,
                                            YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
                                            YellowstonePathology.Business.User.SystemIdentity systemIdentity,
                                            YellowstonePathology.UI.Navigation.PageNavigator pageNavigator,
                                            System.Windows.Visibility backButtonVisibility) : base(krasStandardReflexTestOrder, accessionOrder)
        {
            this.m_KRASStandardReflexTestOrder = krasStandardReflexTestOrder;
            this.m_AccessionOrder       = accessionOrder;
            this.m_SystemIdentity       = systemIdentity;
            this.m_PageNavigator        = pageNavigator;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_IndicationCollection     = YellowstonePathology.Business.Test.IndicationCollection.GetAll();
            this.m_KRASStandardReflexResult = YellowstonePathology.Business.Test.KRASStandardReflex.KRASStandardReflexResultFactory.GetResult(this.m_KRASStandardReflexTestOrder.ReportNo, this.m_AccessionOrder);

            this.m_PageHeaderText = "KRAS Standard Reflex Results For: " + this.m_AccessionOrder.PatientDisplayName + " (" + krasStandardReflexTestOrder.ReportNo + ")";
            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetByAliquotOrderId(this.m_KRASStandardReflexTestOrder.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder            aliquotOrder  = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(this.m_KRASStandardReflexTestOrder.OrderedOnId);
            this.m_OrderedOnDescription = specimenOrder.Description + ": " + aliquotOrder.Label;

            InitializeComponent();

            DataContext = this;

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack);
            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonNext);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
Exemple #20
0
        public StandingOrderPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;

            this.m_WomensHealthProfileTest = new YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTest();
            this.m_Physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId);
            this.m_StandingOrderCollection = this.m_Physician.GetStandingOrderCollection();

            this.m_HPVStandingOrderCollection     = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPVStandingOrders();
            this.m_HPV1618StandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPV1618StandingOrders();

            if (accessionOrder.PanelSetOrderCollection.Exists(this.m_WomensHealthProfileTest.PanelSetId) == true)
            {
                this.m_WomensHealthProfileTestOrder  = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(this.m_WomensHealthProfileTest.PanelSetId);
                this.m_WomensHealthProfileVisibility = System.Windows.Visibility.Visible;
                this.UpdateWomensHealthProfile();
            }
            else
            {
                this.m_WomensHealthProfileVisibility = System.Windows.Visibility.Collapsed;
            }

            this.m_AccessionOrderList = new List <Business.Test.AccessionOrder>();
            this.m_AccessionOrderList.Add(this.m_AccessionOrder);

            InitializeComponent();

            DataContext = this;
        }
Exemple #21
0
        public void PauseCaretTimer(bool pauseTimer)
        {
            if (false != pauseTimer)
            {
                if ((null != caretTimer) && caretTimer.IsEnabled)
                {
                    caretTimer.Stop();
                }
            }
            else
            {
                if (null == caretTimer)
                {
                    caretTimer          = new System.Windows.Threading.DispatcherTimer();
                    caretTimer.Interval = new TimeSpan(0, 0, 0, 0, 500);
                    caretTimer.Tick    += new EventHandler(OnCaretTimerTick);
                }

                if (caretTimer.IsEnabled == false)
                {
                    caretTimer.Start();
                }
            }

            caretVisibility = System.Windows.Visibility.Visible;
        }
Exemple #22
0
 private void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     System.Windows.Visibility visiblity = _ShowVersion ? System.Windows.Visibility.Visible : System.Windows.Visibility.Hidden;
     lbVersionArgLabel.Visibility   = visiblity;
     lbVersionArgExample.Visibility = visiblity;
     tbVersionArg.Visibility        = visiblity;
 }
Exemple #23
0
 private void SetProgressUIElementsVisibility(System.Windows.Visibility visibility)
 {
     progress.Visibility    = visibility;
     btnCancel.Visibility   = visibility;
     lblProgress.Visibility = visibility;
     outputLink.Visibility  = visibility;
 }
 private void setCodeBreakerVisibility(System.Windows.Visibility pbValue)
 {
     // Change the visibility of the controls related to the CodeBreaking procedure.
     imgSkull.Visibility       = pbValue;
     imgAgent.Visibility       = pbValue;
     txtcodebreaker.Visibility = pbValue;
     txtnumber1.Visibility     = pbValue;
     txtnumber2.Visibility     = pbValue;
     txtnumber3.Visibility     = pbValue;
     txtnumber4.Visibility     = pbValue;
     txtoutput1.Visibility     = pbValue;
     txtoutput2.Visibility     = pbValue;
     txtoutput3.Visibility     = pbValue;
     txtoutput4.Visibility     = pbValue;
     btnStart.Visibility       = pbValue;
     btnHide.Visibility        = pbValue;
     // Change the visibility of the controls related to the
     // progress of the CodeBreaking procedure
     pgb1.Visibility = pbValue;
     pgb2.Visibility = pbValue;
     pgb3.Visibility = pbValue;
     pgb4.Visibility = pbValue;
     // Change the visibility of the new stop button
     btnStop.Visibility = pbValue;
 }
Exemple #25
0
 public void SetCursorVisibility(System.Windows.Visibility visibility)
 {
     // Make sure we don't get "Collapsed", only "Visible" or "Hidden".
     caretVisibility = visibility;
     if (caretVisibility != System.Windows.Visibility.Visible)
         caretVisibility = System.Windows.Visibility.Hidden;
 }
        public ModernLoginViewModel(ICore core) : this()
        {
            this.Core = core;

            try
            {
                if (this.Core.GetAttribute("EnableJoin") != null && this.Core.GetAttribute("EnableJoin").Equals("Y"))
                {
                    this.joinVisibility = System.Windows.Visibility.Visible;
                }
                else
                {
                    this.joinVisibility = System.Windows.Visibility.Hidden;
                }

                this.GetBackgroundImage();
                this.SetLanguageList();
                this.ReadSSO();

                this.isEnabledIsEmailSaveControl = true;
            }
            catch (Exception ex)
            {
                DiagnosticsTool.MyTrace(ex);
                //this.WindowsMessageBoxShow(Application.Current.Windows[0], ex);
            }
        }
        private void EvaulateVisibility()
        {
            System.Windows.Visibility vis = System.Windows.Visibility.Collapsed;
            if (JMMServerVM.Instance.Trakt_IsEnabled)
            {
                vis = System.Windows.Visibility.Visible;
            }

            spPINLabel.Visibility = vis;
            spPINData.Visibility  = vis;
            spPINLink.Visibility  = vis;

            btnTest.Visibility    = vis;
            spValidity.Visibility = vis;

            spUpdatesLabel.Visibility = vis;
            spUpdatesData.Visibility  = vis;

            spFanartLabel.Visibility = vis;
            spFanartData.Visibility  = vis;

            spPostersLabel.Visibility = vis;
            spPostersData.Visibility  = vis;

            spEpisodeLabel.Visibility = vis;
            spEpisodeData.Visibility  = vis;


            bool validToken = false;

            if (!string.IsNullOrEmpty(JMMServerVM.Instance.Trakt_AuthToken))
            {
                long validUntil = 0;
                long.TryParse(JMMServerVM.Instance.Trakt_TokenExpirationDate, out validUntil);
                if (validUntil > 0)
                {
                    DateTime?validDate = Utils.GetUTCDate(validUntil);
                    if (validDate.HasValue && DateTime.Now < validDate.Value)
                    {
                        tbValidity.Text = string.Format(Properties.Resources.Trakt_TokenValid, validDate.ToString());
                        validToken      = true;
                    }
                    else
                    {
                        tbValidity.Text = Properties.Resources.Trakt_TokenExpired;
                    }
                }
            }
            else
            {
                tbValidity.Text = Properties.Resources.Trakt_JMMNotAuth;
            }

            /*
             * if (validToken)
             *  tbValidity.Visibility = System.Windows.Visibility.Visible;
             * else
             *  tbValidity.Visibility = System.Windows.Visibility.Collapsed;*/
        }
        private void EvaulateVisibility()
        {
            System.Windows.Visibility vis = System.Windows.Visibility.Collapsed;
            if (JMMServerVM.Instance.Trakt_IsEnabled)
            {
                vis = System.Windows.Visibility.Visible;
            }

            spPINLabel.Visibility = vis;
            spPINData.Visibility  = vis;
            spPINLink.Visibility  = vis;

            btnTest.Visibility    = vis;
            spValidity.Visibility = vis;

            spUpdatesLabel.Visibility = vis;
            spUpdatesData.Visibility  = vis;

            spFanartLabel.Visibility = vis;
            spFanartData.Visibility  = vis;

            spPostersLabel.Visibility = vis;
            spPostersData.Visibility  = vis;

            spEpisodeLabel.Visibility = vis;
            spEpisodeData.Visibility  = vis;


            bool validToken = false;

            if (!string.IsNullOrEmpty(JMMServerVM.Instance.Trakt_AuthToken))
            {
                long validUntil = 0;
                long.TryParse(JMMServerVM.Instance.Trakt_TokenExpirationDate, out validUntil);
                if (validUntil > 0)
                {
                    DateTime?validDate = Utils.GetUTCDate(validUntil);
                    if (validDate.HasValue && DateTime.Now < validDate.Value)
                    {
                        tbValidity.Text = string.Format("Current token is valid until: {0}", validDate.ToString());
                        validToken      = true;
                    }
                    else
                    {
                        tbValidity.Text = "Your token has expired, please get a new one.";
                    }
                }
            }
            else
            {
                tbValidity.Text = "You have not authorized JMM to access your Trakt account!";
            }

            /*
             * if (validToken)
             *  tbValidity.Visibility = System.Windows.Visibility.Visible;
             * else
             *  tbValidity.Visibility = System.Windows.Visibility.Collapsed;*/
        }
 private void setCustomOptionCheckBoxes(bool customOptionVisibility)
 {
     System.Windows.Visibility visibility = customOptionVisibility
         ? System.Windows.Visibility.Visible : System.Windows.Visibility.Hidden;
     chbLegendGroups.Visibility      = visibility;
     chbLegendNames.Visibility       = visibility;
     chbLegendCustomIcons.Visibility = visibility;
 }
Exemple #30
0
 public AuxiliaryLayer(TextEditorCanvas textEditorCanvas)
     : base(textEditorCanvas)
 {
     caretRect        = new System.Windows.Rect();
     caretRect.Width  = 1.3;
     caretRect.Height = Configurations.FontDisplayHeight;
     caretVisibility  = System.Windows.Visibility.Visible;
 }
        private bool ConvertToBool(Visibility visibility)
        {
            var result = _converter.ConvertBack(visibility, typeof(bool), null, CultureInfo.CurrentCulture);

            Assert.IsType <bool>(result);

            return((bool)result);
        }
Exemple #32
0
 public AuxiliaryLayer(TextEditorCanvas textEditorCanvas)
     : base(textEditorCanvas)
 {
     caretRect = new System.Windows.Rect();
     caretRect.Width = 1.3;
     caretRect.Height = Configurations.FontDisplayHeight;
     caretVisibility = System.Windows.Visibility.Visible;
 }
        public PathologistSignoutAuditMessagePage(List <string> auditMessages, System.Windows.Visibility backButtonVisibility, System.Windows.Visibility nextButtonVisibility)
        {
            this.m_AuditMessages        = auditMessages;
            this.m_BackButtonVisibility = backButtonVisibility;
            this.m_NextButtonVisibility = nextButtonVisibility;

            InitializeComponent();
            DataContext = this;
        }
 public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 {
     try {
         System.Windows.Visibility val = (System.Windows.Visibility)value;
         return(val == System.Windows.Visibility.Collapsed);
     } catch {
         return(false);
     }
 }
Exemple #35
0
 public override void ShowAdvancedOptions(bool show)
 {
     base.ShowAdvancedOptions(show);
     System.Windows.Visibility visibleSetting = System.Windows.Visibility.Collapsed;
     if (show)
     {
         visibleSetting = System.Windows.Visibility.Visible;
     }
 }
 public void ShowAllButton(System.Windows.Visibility vis)
 {
     for (int i = 0; i <= 5; i++)
     {
         SelectionButtonEnum index = (SelectionButtonEnum)i;
         Button btn = GetButton(index);
         btn.Visibility = vis;
     }
 }
Exemple #37
0
 public void SetCursorVisibility(System.Windows.Visibility visibility)
 {
     // Make sure we don't get "Collapsed", only "Visible" or "Hidden".
     caretVisibility = visibility;
     if (caretVisibility != System.Windows.Visibility.Visible)
     {
         caretVisibility = System.Windows.Visibility.Hidden;
     }
 }
        public PathologistSignoutAuditMessagePage(List<string> auditMessages, System.Windows.Visibility backButtonVisibility, System.Windows.Visibility nextButtonVisibility)
        {
            this.m_AuditMessages = auditMessages;
            this.m_BackButtonVisibility = backButtonVisibility;
            this.m_NextButtonVisibility = nextButtonVisibility;

            InitializeComponent();
            DataContext = this;
        }
        public SuggestedAdditionalTestingPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
            List<string> messages,
            System.Windows.Visibility backButtonVisibility,
            System.Windows.Visibility nextButtonVisibility)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_Messages = messages;
            this.m_BackButtonVisibility = backButtonVisibility;
            this.m_NextButtonVisibility = nextButtonVisibility;

            InitializeComponent();
            DataContext = this;
        }
        public NonASCIICharacterCorrectionPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
            YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder surgicalTestOrder,
        System.Windows.Visibility backButtonVisibility,
            System.Windows.Visibility nextButtonVisibility)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_SurgicalTestOrder = surgicalTestOrder;
            this.m_BackButtonVisibility = backButtonVisibility;
            this.m_NextButtonVisibility = nextButtonVisibility;

            InitializeComponent();
            DataContext = this;
        }
        public WomensHealthProfilePage(YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder,
            YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
            YellowstonePathology.Business.ClientOrder.Model.ClientOrder clientOrder, 
            System.Windows.Visibility backButtonVisibility)
            : base(womensHealthProfileTestOrder, accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;

            this.m_HPVReflexOrderCollection = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPVRequisitionReflexOrders();
            this.m_HPVStandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPVStandingOrders();
            this.m_HPV1618ReflexOrderCollection = YellowstonePathology.Business.Client.Model.ReflexOrderCollection.GetHPV1618ReflexOrders();
            this.m_HPV1618StandingOrderCollection = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetHPV1618StandingOrders();

            this.m_ClientOrder = clientOrder;
            this.m_WomensHealthProfileTestOrder = womensHealthProfileTestOrder;
            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_Physician = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetPhysicianByPhysicianId(this.m_AccessionOrder.PhysicianId);

            this.m_PanelSetOrderCytology = (YellowstonePathology.Business.Test.ThinPrepPap.PanelSetOrderCytology)accessionOrder.PanelSetOrderCollection.GetPanelSetOrder(15);

            this.m_AuditCollection = new Business.Audit.Model.IsWHPAllDoneAuditCollection(this.m_AccessionOrder);
            this.m_AuditCollection.Run();

            if (string.IsNullOrEmpty(accessionOrder.PatientId) == false)
            {
                YellowstonePathology.Business.Domain.PatientHistory patientHistory = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetPatientHistory(accessionOrder.PatientId);
                this.m_DateOfLastHPV = patientHistory.GetDateOfPreviousHpv(this.m_AccessionOrder.AccessionDate.Value);
            }

            YellowstonePathology.Business.Client.Model.StandingOrder standingOrder = YellowstonePathology.Business.Client.Model.StandingOrderCollection.GetByStandingOrderCode(this.m_WomensHealthProfileTestOrder.HPVStandingOrderCode);
            this.m_HPVStandingOrderDescription = standingOrder.ToString();

            InitializeComponent();

            this.DataContext = this;

            this.m_ParentWindow = Window.GetWindow(this);

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonClose);
            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalize);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockNext);
        }
        public EGFRToALKReflexPage(YellowstonePathology.Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisTestOrder testOrder,
			YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
			YellowstonePathology.Business.User.SystemIdentity systemIdentity,
            System.Windows.Visibility backButtonVisibility)
            : base(testOrder, accessionOrder)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_SystemIdentity = systemIdentity;
            this.m_BackButtonVisibility = backButtonVisibility;

            this.m_EGFRToALKReflexAnalysisTestOrder = testOrder;
            this.m_EGFRToALKReflexAnalysisTestOrder.SetStatus(this.m_AccessionOrder.PanelSetOrderCollection);

            this.m_EGFRMutationAnalysisTestOrder = (YellowstonePathology.Business.Test.EGFRMutationAnalysis.EGFRMutationAnalysisTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(60);
            if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(131) == true)
            {
                this.m_ALKForNSCLCByFISHTestOrder = (YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder)this.m_AccessionOrder.PanelSetOrderCollection.GetPanelSetOrder(131);

            }
            else if(this.m_AccessionOrder.PanelSetOrderCollection.Exists(68) == true)
            {
                this.m_ALKForNSCLCByFISHTestOrder = new YellowstonePathology.Business.Test.ALKForNSCLCByFISH.ALKForNSCLCByFISHTestOrder();
            }

            this.m_PageHeaderText = this.m_EGFRToALKReflexAnalysisTestOrder.PanelSetName + " for: " + this.m_AccessionOrder.PatientDisplayName;

            YellowstonePathology.Business.Specimen.Model.SpecimenOrder specimenOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetSpecimenOrderByOrderTarget(this.m_EGFRToALKReflexAnalysisTestOrder.OrderedOnId);
            YellowstonePathology.Business.Test.AliquotOrder aliquotOrder = this.m_AccessionOrder.SpecimenOrderCollection.GetAliquotOrder(this.m_EGFRToALKReflexAnalysisTestOrder.OrderedOnId);
            this.m_OrderedOnDescription = specimenOrder.Description;
            if (aliquotOrder != null) this.m_OrderedOnDescription += ": " + aliquotOrder.Label;

            this.m_EGFRToALKReflexAnalysisResult = new Business.Test.EGFRToALKReflexAnalysis.EGFRToALKReflexAnalysisResult(this.m_AccessionOrder, this.m_EGFRToALKReflexAnalysisTestOrder);

            InitializeComponent();

            this.DataContext = this;

            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonBack);
            this.m_ControlsNotDisabledOnFinal.Add(this.ButtonFinish);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockShowDocument);
            this.m_ControlsNotDisabledOnFinal.Add(this.TextBlockUnfinalResults);
        }
        public PQRSSignoutPage(YellowstonePathology.Business.Surgical.PQRSMeasure pqrsMeasure,
            YellowstonePathology.Business.Test.Surgical.SurgicalSpecimen surgicalSpecimen,
            YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder surgicalTestOrder,
            YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
            System.Windows.Visibility backButtonVisibility,
            System.Windows.Visibility nextButtonVisibility)
        {
            this.m_PQRSMeasure = pqrsMeasure;
            this.m_SurgicalSpecimen = surgicalSpecimen;
            this.m_SurgicalTestOrder = surgicalTestOrder;
            this.m_AccessionOrder = accessionOrder;
            this.m_BackButtonVisibility = backButtonVisibility;
            this.m_NextButtonVisibility = nextButtonVisibility;

            this.m_SurgicalTestOrder.PQRSIsIndicated = true;

            InitializeComponent();
            this.DataContext = this;
            this.Loaded += PQRSSignoutPage_Loaded;
            Unloaded += PQRSSignoutPage_Unloaded;
        }
        public PapCorrelationPage(YellowstonePathology.Business.Test.AccessionOrder accessionOrder,
            YellowstonePathology.Business.Test.Surgical.SurgicalTestOrder surgicalTestOrder,
            System.Windows.Visibility backButtonVisibility,
            System.Windows.Visibility nextButtonVisibility)
        {
            this.m_AccessionOrder = accessionOrder;
            this.m_SurgicalTestOrder = surgicalTestOrder;
            this.m_BackButtonVisibility = backButtonVisibility;
            this.m_NextButtonVisibility = nextButtonVisibility;
            this.m_PageHeaderText = "Pap Correlation Page";
            this.m_PatientHistoryList = new YellowstonePathology.Business.Patient.Model.PatientHistoryList();
            this.m_PatientHistoryList.SetFillCommandByAccessionNo(m_SurgicalTestOrder.ReportNo);
            this.m_PatientHistoryList.Fill();

            InitializeComponent();

            this.DataContext = this;

            Loaded += PapCorrelationPage_Loaded;
            Unloaded += PapCorrelationPage_Unloaded;
        }
Exemple #45
0
        public void PauseCaretTimer(bool pauseTimer)
        {
            if (false != pauseTimer)
            {
                if ((null != caretTimer) && caretTimer.IsEnabled)
                    caretTimer.Stop();
            }
            else
            {
                if (null == caretTimer)
                {
                    caretTimer = new System.Windows.Threading.DispatcherTimer();
                    caretTimer.Interval = new TimeSpan(0, 0, 0, 0, 500);
                    caretTimer.Tick += new EventHandler(OnCaretTimerTick);
                }

                if (caretTimer.IsEnabled == false)
                    caretTimer.Start();
            }

            caretVisibility = System.Windows.Visibility.Visible;
        }
Exemple #46
0
        void StartSearchInternal()
        {
            VirtualObservatoryResponseBase result = null;
            _request = _searchBarViewModel.GetRequest();
            TaskScheduler scheduler = TaskScheduler.FromCurrentSynchronizationContext();
            cancelTokenSource = new System.Threading.CancellationTokenSource();
            System.Threading.CancellationToken cancelationToken = cancelTokenSource.Token;

            Task.Factory.StartNew(() =>
                {
                    if (cancelTokenSource.Token.IsCancellationRequested)
                        return;

                    result = _proxy.Search(_request, _searchBarViewModel.SearchType);
                }).
                ContinueWith(w =>
                {
                    this.ProgressVisible = System.Windows.Visibility.Hidden;
                    this.SearchResultVisible = System.Windows.Visibility.Visible;

                    this.ResultContent = SearchHelper.PrepareView(result, _request, _searchBarViewModel.SearchType);
                },
                cancelationToken,
                TaskContinuationOptions.None, scheduler);
        }
        private void ShowSettings()
        {
            logonVisBefore = logon.Visibility;
            gameSelectorVisBefore = gameSelector.Visibility;

            logon.Visibility = gameSelector.Visibility = System.Windows.Visibility.Collapsed;

            settings_tbAPIKey.Text = Properties.Settings.Default.SteamAPIKey;
            settings_checkOnlyInstalled.IsChecked = Properties.Settings.Default.InstalledOnly;

            settings.Visibility = System.Windows.Visibility.Visible;
        }
Exemple #48
0
        void OnCaretTimerTick(object sender, EventArgs e)
        {
            if (caretVisibility == System.Windows.Visibility.Visible)
                caretVisibility = System.Windows.Visibility.Hidden;
            else
                caretVisibility = System.Windows.Visibility.Visible;

            if (null != drawingVisual)
                this.Render();
        }
 private void ButtonAddWHP_Click(object sender, RoutedEventArgs e)
 {
     if (this.m_AccessionOrder.PanelSetOrderCollection.Exists(this.m_WomensHealthProfileTest.PanelSetId) == false)
     {
         YellowstonePathology.Business.Interface.IOrderTarget orderTarget = (YellowstonePathology.Business.Interface.IOrderTarget)this.m_AccessionOrder.SpecimenOrderCollection.GetThinPrep();
         string reportNo = YellowstonePathology.Business.OrderIdParser.GetNextReportNo(this.m_AccessionOrder.PanelSetOrderCollection, this.m_WomensHealthProfileTest, this.m_AccessionOrder.MasterAccessionNo);
         string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
         string masterAccessionNo = this.m_AccessionOrder.MasterAccessionNo;
         YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder womensHealthProfileTestOrder = (YellowstonePathology.Business.Test.WomensHealthProfile.WomensHealthProfileTestOrder)YellowstonePathology.Business.Test.PanelSetOrderFactory.CreatePanelSetOrder(masterAccessionNo, reportNo, objectId, this.m_WomensHealthProfileTest, orderTarget, false);
         womensHealthProfileTestOrder.AssignedToId = 5051;
         this.m_AccessionOrder.PanelSetOrderCollection.Add(womensHealthProfileTestOrder);
         this.m_WomensHealthProfileTestOrder = womensHealthProfileTestOrder;
         this.m_WomensHealthProfileVisibility = System.Windows.Visibility.Visible;
         this.UpdateWomensHealthProfile();
         //this.Save(false);
         this.NotifyPropertyChanged(string.Empty);
     }
     else
     {
         MessageBox.Show("A " + this.m_WomensHealthProfileTest.PanelSetName + " already exists.");
     }
 }
 public void ClearProgress()
 {
     this.Header = string.Empty;
     this.SubHeader = string.Empty;
     this.Caption = string.Empty;
     this.SetProgress(0f, 100f);
     this.Visibility = System.Windows.Visibility.Hidden;
 }
        private void ButtonSettings_Click(object sender, RoutedEventArgs e)
        {            
            if(logon.Visibility == System.Windows.Visibility.Visible || gameSelector.Visibility == System.Windows.Visibility.Visible)
            {
                logonVisBefore = logon.Visibility;
                gameSelectorVisBefore = gameSelector.Visibility;

                logon.Visibility = gameSelector.Visibility = System.Windows.Visibility.Collapsed;
                //TODO: SHOW SETTINGS
            }
            else
            {
                logon.Visibility = logonVisBefore;
                gameSelector.Visibility = gameSelectorVisBefore;
            }      
        }
 public static void SetVisibilityForDesign(FeedbackOverlay element, Visibility value)
 {
     element.SetValue(VisibilityForDesignProperty, value);
 }
Exemple #53
0
        protected override DrawingVisual RenderCore(RenderParameters renderParams)
        {
            caretRect.Height = Configurations.FontDisplayHeight;
            if (null == drawingVisual)
            {
                drawingVisual = new DrawingVisual();
                PauseCaretTimer(false); // Get timer going!
            }

            // There's no script yet.
            if (null == this.currentScript)
                return drawingVisual;

            DrawingContext context = drawingVisual.RenderOpen();
            CodeFragment[] crossHighlight = textEditorCanvas.TextEditorCore.GetCrossHighlightArray();

            if (crossHighlight != null)
            {
                if (crossHighlight.Length != 0)
                {
                    List<Rect> rectList = new List<Rect>();
                    foreach (CodeFragment codeFragment in crossHighlight)
                    {
                        CharPosition start = currentScript.CreateCharPosition();
                        start.SetCharacterPosition(codeFragment.ColStart, codeFragment.Line);
                        CharPosition end = currentScript.CreateCharPosition();
                        end.SetCharacterPosition(codeFragment.ColEnd + 1, codeFragment.Line);
                        List<Rect> tempList = CalculateRectangles(start, end, renderParams.firstVisibleLine);
                        if (tempList != null)
                            rectList.AddRange(tempList);
                    }
                    //SolidColorBrush crossHighlightBrush = new SolidColorBrush(Color.FromRgb(226, 230, 214));
                    RenderRectangles(context, rectList, UIColors.CrossHighlightColor);
                }
            }

            // We don't care about keyboard focus when in playback mode.
            if (false == TextEditorControl.Instance.IsInPlaybackMode)
            {
                // If the focus is not within the canvas, or on any extension popup,
                // then there's no need to show the caret (focus is probably other app).
                if (false == TextEditorControl.Instance.ShouldDisplayCaret())
                    caretVisibility = System.Windows.Visibility.Hidden;
            }

            // Cursor rendering pass...
            if (caretVisibility == System.Windows.Visibility.Visible)
            {
                System.Windows.Rect displayRect = caretRect;
                double firstVisibleColumn = textEditorCanvas.FirstVisibleColumn * Configurations.FormatFontWidth;
                displayRect.Offset(-firstVisibleColumn, -renderParams.firstVisibleLine * Configurations.FontDisplayHeight);
                context.DrawRectangle(Brushes.Black, null, displayRect);
            }

            context.Close();
            return drawingVisual;
        }
 private void ResetModelState()
 {
     ISyncPartnership currentSyncPartnership = this.controller.CurrentSyncPartnership;
     if ((currentSyncPartnership != null) && ((((currentSyncPartnership.CurrentState == PartnershipState.Syncing) || (currentSyncPartnership.CurrentState == PartnershipState.CancelingSync)) || ((currentSyncPartnership.CurrentState == PartnershipState.PreparingSync) || (currentSyncPartnership.CurrentState == PartnershipState.LoadingSources))) || (currentSyncPartnership.CurrentState == PartnershipState.VerifyingSources)))
     {
         this.Visibility = System.Windows.Visibility.Visible;
     }
     else
     {
         this.Visibility = System.Windows.Visibility.Hidden;
         this.ClearProgress();
     }
     CommandManager.InvalidateRequerySuggested();
 }
Exemple #55
0
        private void _searchBarViewModel_SearchStarted(object sender, EventArgs e)
        {
            this.ProgressVisible = System.Windows.Visibility.Visible;
            this.SearchResultVisible = System.Windows.Visibility.Hidden;

            Application.Current.Dispatcher.BeginInvoke(
                        DispatcherPriority.Background, new Action(StartSearchInternal));
        }
Exemple #56
0
        private void _searchBarViewModel_SearchCancelled(object sender, EventArgs e)
        {
            if (cancelTokenSource != null)
                cancelTokenSource.Cancel();

            this.ProgressVisible = System.Windows.Visibility.Hidden;
            this.SearchResultVisible = System.Windows.Visibility.Visible;
        }
        private void ShowSettings()
        {
            logonVisBefore = logon.Visibility;
            gameSelectorVisBefore = gameSelector.Visibility;

            logon.Visibility = gameSelector.Visibility = System.Windows.Visibility.Collapsed;

            settings_tbAPIKey.Text = Properties.Settings.Default.SteamAPIKey;
            settings_checkOnlyInstalled.IsChecked = Properties.Settings.Default.InstalledOnly;

            if(Properties.Settings.Default.SteamDirectories != null)
            {
                settings_lbDirList.Items.Clear();
                settings_lbDirList.Items.Add(Properties.Settings.Default.SteamLocation);                
                foreach (string str in Properties.Settings.Default.SteamDirectories)
                {
                    settings_lbDirList.Items.Add(str);
                } 
            }
                      
           

            settings.Visibility = System.Windows.Visibility.Visible;
        }
        void _SetAccessingServer(bool value)
        {
            _accessingServer = value;

              if( _accessingServer ) {

            cbServers.IsEnabled = false;
            imgServerLoading.Visibility = System.Windows.Visibility.Visible;

            _prevServerActionVisibility = btnServerAction.Visibility;
            btnServerAction.Visibility = System.Windows.Visibility.Hidden;

              } else {
            cbServers.IsEnabled = true;

            imgServerLoading.Visibility = System.Windows.Visibility.Hidden;
            btnServerAction.Visibility = _prevServerActionVisibility;
              }

              UpdateConfigWindowUIState();
        }