Пример #1
0
        protected void HandleDoubleClick(object sender, MouseButtonEventArgs e)
        {
            var dataContext = ((FrameworkElement)e.OriginalSource).DataContext;

            if (dataContext != null)
            {
                Window parentWindow = Window.GetWindow(this);

                Model.KeyEntry OriginalKey = (Model.KeyEntry)dataContext;

                //Dialog mit Temporärem Key starten..
                View.dlgKeyEditor ke = new View.dlgKeyEditor(OriginalKey, parentWindow);

                if ((bool)ke.ShowDialog())
                {
                }
            }
        }
Пример #2
0
        private void EditKeyContextMenu_Click(object sender, RoutedEventArgs e)
        {
            var dataContext = ((FrameworkElement)e.OriginalSource).DataContext;

            if (dataContext != null)
            {
                Window parentWindow = Window.GetWindow(this);

                Model.KeyEntry OriginalKey = (Model.KeyEntry)dataContext;

                //Dialog mit Temporärem Key starten..
                View.dlgKeyEditor ke = new View.dlgKeyEditor(OriginalKey, parentWindow);

                if ((bool)ke.ShowDialog())
                {
                }
            }
        }