예제 #1
0
 public void ContextMenuTypingShortcutEdit_Click(object sender, RoutedEventArgs args)
 {
     YellowstonePathology.Business.Typing.TypingShortcut typingShortcut       = (YellowstonePathology.Business.Typing.TypingShortcut) this.ListViewTypingShortcut.SelectedItem;
     YellowstonePathology.UI.TypingShorcutDialog         typingShortcutDialog = new TypingShorcutDialog(typingShortcut, false);
     typingShortcutDialog.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     typingShortcutDialog.ShowDialog();
 }
        public void ContextMenuTypingShortcutAdd_Click(object sender, RoutedEventArgs args)
        {
            string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();
            YellowstonePathology.Business.Typing.TypingShortcut typingShortcut = new YellowstonePathology.Business.Typing.TypingShortcut(objectId);
            typingShortcut.ObjectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            YellowstonePathology.UI.TypingShorcutDialog typingShorcutDialog = new TypingShorcutDialog(typingShortcut, true);
            typingShorcutDialog.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            typingShorcutDialog.ShowDialog();

            if(typingShorcutDialog.DialogResult == true)
            {
                this.m_TypingShortcutCollection.Add(typingShortcut);
            }

            this.NotifyPropertyChanged("");
        }
예제 #3
0
        public void ContextMenuTypingShortcutAdd_Click(object sender, RoutedEventArgs args)
        {
            string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            YellowstonePathology.Business.Typing.TypingShortcut typingShortcut = new YellowstonePathology.Business.Typing.TypingShortcut(objectId);
            typingShortcut.ObjectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString();

            YellowstonePathology.UI.TypingShorcutDialog typingShorcutDialog = new TypingShorcutDialog(typingShortcut, true);
            typingShorcutDialog.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            typingShorcutDialog.ShowDialog();

            if (typingShorcutDialog.DialogResult == true)
            {
                this.m_TypingShortcutCollection.Add(typingShortcut);
            }

            this.NotifyPropertyChanged("");
        }
 public void ContextMenuTypingShortcutEdit_Click(object sender, RoutedEventArgs args)
 {
     YellowstonePathology.Business.Typing.TypingShortcut typingShortcut = (YellowstonePathology.Business.Typing.TypingShortcut)this.ListViewTypingShortcut.SelectedItem;
     YellowstonePathology.UI.TypingShorcutDialog typingShortcutDialog = new TypingShorcutDialog(typingShortcut, false);
     typingShortcutDialog.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     typingShortcutDialog.ShowDialog();
 }