public TypingShortcutUserControl(YellowstonePathology.Business.User.SystemIdentity systemIdentity, object writer)
        {
            this.m_SystemIdentity = systemIdentity;
            this.m_TypingShortcutCollection = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetTypingShortcutCollectionByUser(this.m_SystemIdentity.User.UserId);
            this.m_Writer = writer;
            InitializeComponent();

            this.DataContext = this;
        }
        public TypingShortcutUserControl(YellowstonePathology.Business.User.SystemIdentity systemIdentity, object writer)
        {
            this.m_SystemIdentity                  = systemIdentity;
            this.m_TypingShortcutCollection        = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetTypingShortcutCollectionByUser(this.m_SystemIdentity.User.UserId);
            this.m_LimitedTypingShortcutCollection = this.m_TypingShortcutCollection;
            this.m_Writer = writer;
            InitializeComponent();

            this.DataContext = this;
        }
Exemple #3
0
        public TypingShortcutUserControl(YellowstonePathology.Business.User.SystemIdentity systemIdentity)
        {
            this.m_SystemIdentity           = systemIdentity;
            this.m_TypingShortcutCollection = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetTypingShortcutCollectionByUser(this.m_SystemIdentity.User.UserId);

            InitializeComponent();

            this.m_ParentWindow = Window.GetWindow(this);
            this.DataContext    = this;
        }
 private void TextBoxSearch_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         if (this.TextBoxSearch.Text.Length > 0)
         {
             this.m_LimitedTypingShortcutCollection = this.m_TypingShortcutCollection.GetWithMatchingText(this.TextBoxSearch.Text);
             this.NotifyPropertyChanged("LimitedTypingShortcutCollection");
         }
     }
 }
 private void TypingShortcutDialogAdd_Finished(object sender, CustomEventArgs.TypingShortcutReturnEventArgs e)
 {
     this.m_TypingShortcutCollection        = YellowstonePathology.Business.Gateway.AccessionOrderGateway.GetTypingShortcutCollectionByUser(this.m_SystemIdentity.User.UserId);
     this.m_LimitedTypingShortcutCollection = this.m_TypingShortcutCollection;
     this.NotifyPropertyChanged("LimitedTypingShortcutCollection");
 }
 private void RefreshLimitedTypingShortcutCollection()
 {
     this.m_LimitedTypingShortcutCollection = this.m_TypingShortcutCollection;
     this.NotifyPropertyChanged("LimitedTypingShortcutCollection");
 }
 public void GetTypingShortcutCollectionByUserTest()
 {
     YellowstonePathology.Business.Typing.TypingShortcutCollection result = YellowstonePathology.Business.Gateway.AccessionOrderGatewayMongo.GetTypingShortcutCollectionByUser(5013);
     Assert.IsTrue(result.Count > 0);
 }