Ejemplo n.º 1
0
 private void cmdHotkeys_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var dhk = new WndHotkeys { Owner = this };
         dhk.ShowDialog();
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DlgHotkeys = ((PNotes.NET.WndHotkeys)(target));

            #line 18 "..\..\WndHotkeys.xaml"
                this.DlgHotkeys.Loaded += new System.Windows.RoutedEventHandler(this.DlgHotkeys_Loaded);

            #line default
            #line hidden

            #line 19 "..\..\WndHotkeys.xaml"
                this.DlgHotkeys.SourceInitialized += new System.EventHandler(this.DlgHotkeys_SourceInitialized);

            #line default
            #line hidden

            #line 20 "..\..\WndHotkeys.xaml"
                this.DlgHotkeys.Closed += new System.EventHandler(this.DlgHotkeys_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.tabHK = ((System.Windows.Controls.TabControl)(target));

            #line 28 "..\..\WndHotkeys.xaml"
                this.tabHK.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tabHK_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.tbpHKMain = ((System.Windows.Controls.TabItem)(target));
                return;

            case 4:
                this.tvwHKMain = ((System.Windows.Controls.TreeView)(target));

            #line 30 "..\..\WndHotkeys.xaml"
                this.tvwHKMain.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.tvwHKMain_SelectedItemChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.tbpHKNote = ((System.Windows.Controls.TabItem)(target));
                return;

            case 6:
                this.tvwHKNote = ((System.Windows.Controls.TreeView)(target));

            #line 33 "..\..\WndHotkeys.xaml"
                this.tvwHKNote.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.tvwHKNote_SelectedItemChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.tbpHKEdit = ((System.Windows.Controls.TabItem)(target));
                return;

            case 8:
                this.tvwHKEdit = ((System.Windows.Controls.TreeView)(target));

            #line 36 "..\..\WndHotkeys.xaml"
                this.tvwHKEdit.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.tvwHKEdit_SelectedItemChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.tbpHKGroups = ((System.Windows.Controls.TabItem)(target));
                return;

            case 10:
                this.tvwHKGroups = ((System.Windows.Controls.TreeView)(target));

            #line 39 "..\..\WndHotkeys.xaml"
                this.tvwHKGroups.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.tvwHKGroups_SelectedItemChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.txtHotKey = ((System.Windows.Controls.TextBox)(target));

            #line 49 "..\..\WndHotkeys.xaml"
                this.txtHotKey.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.txtHotKey_PreviewKeyDown);

            #line default
            #line hidden

            #line 49 "..\..\WndHotkeys.xaml"
                this.txtHotKey.LostFocus += new System.Windows.RoutedEventHandler(this.txtHotKey_LostFocus);

            #line default
            #line hidden

            #line 49 "..\..\WndHotkeys.xaml"
                this.txtHotKey.GotFocus += new System.Windows.RoutedEventHandler(this.txtHotKey_GotFocus);

            #line default
            #line hidden

            #line 49 "..\..\WndHotkeys.xaml"
                this.txtHotKey.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtHotKey_TextChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.txbWatermark = ((System.Windows.Controls.TextBlock)(target));

            #line 50 "..\..\WndHotkeys.xaml"
                this.txbWatermark.GotFocus += new System.Windows.RoutedEventHandler(this.txbWatermark_GotFocus);

            #line default
            #line hidden

            #line 50 "..\..\WndHotkeys.xaml"
                this.txbWatermark.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.txbWatermark_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 13:
                this.cmdDeleteHK = ((PNotes.NET.SmallButton)(target));
                return;

            case 14:
                this.cmdOK = ((System.Windows.Controls.Button)(target));

            #line 52 "..\..\WndHotkeys.xaml"
                this.cmdOK.Click += new System.Windows.RoutedEventHandler(this.cmdOK_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.cmdCancel = ((System.Windows.Controls.Button)(target));
                return;

            case 16:
                this.lblRestrictedHotkeys = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.expDeterminated = ((System.Windows.Controls.Expander)(target));
                return;

            case 18:
                this.grdDefHotkeys = ((System.Windows.Controls.ListView)(target));

            #line 57 "..\..\WndHotkeys.xaml"
                this.grdDefHotkeys.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.grdDefHotkeys_MouseDoubleClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 3
0
 private void mnuHotkeys_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (PNStatic.FormHotkeys == null)
         {
             var d = new WndHotkeys { Owner = this };
             d.ShowDialog();
         }
         else
         {
             PNStatic.FormHotkeys.Activate();
         }
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
Ejemplo n.º 4
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.DlgHotkeys = ((PNotes.NET.WndHotkeys)(target));
     
     #line 18 "..\..\WndHotkeys.xaml"
     this.DlgHotkeys.Loaded += new System.Windows.RoutedEventHandler(this.DlgHotkeys_Loaded);
     
     #line default
     #line hidden
     
     #line 19 "..\..\WndHotkeys.xaml"
     this.DlgHotkeys.SourceInitialized += new System.EventHandler(this.DlgHotkeys_SourceInitialized);
     
     #line default
     #line hidden
     
     #line 20 "..\..\WndHotkeys.xaml"
     this.DlgHotkeys.Closed += new System.EventHandler(this.DlgHotkeys_Closed);
     
     #line default
     #line hidden
     return;
     case 2:
     this.tabHK = ((System.Windows.Controls.TabControl)(target));
     
     #line 28 "..\..\WndHotkeys.xaml"
     this.tabHK.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tabHK_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.tbpHKMain = ((System.Windows.Controls.TabItem)(target));
     return;
     case 4:
     this.tvwHKMain = ((System.Windows.Controls.TreeView)(target));
     
     #line 30 "..\..\WndHotkeys.xaml"
     this.tvwHKMain.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler<object>(this.tvwHKMain_SelectedItemChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     this.tbpHKNote = ((System.Windows.Controls.TabItem)(target));
     return;
     case 6:
     this.tvwHKNote = ((System.Windows.Controls.TreeView)(target));
     
     #line 33 "..\..\WndHotkeys.xaml"
     this.tvwHKNote.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler<object>(this.tvwHKNote_SelectedItemChanged);
     
     #line default
     #line hidden
     return;
     case 7:
     this.tbpHKEdit = ((System.Windows.Controls.TabItem)(target));
     return;
     case 8:
     this.tvwHKEdit = ((System.Windows.Controls.TreeView)(target));
     
     #line 36 "..\..\WndHotkeys.xaml"
     this.tvwHKEdit.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler<object>(this.tvwHKEdit_SelectedItemChanged);
     
     #line default
     #line hidden
     return;
     case 9:
     this.tbpHKGroups = ((System.Windows.Controls.TabItem)(target));
     return;
     case 10:
     this.tvwHKGroups = ((System.Windows.Controls.TreeView)(target));
     
     #line 39 "..\..\WndHotkeys.xaml"
     this.tvwHKGroups.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler<object>(this.tvwHKGroups_SelectedItemChanged);
     
     #line default
     #line hidden
     return;
     case 11:
     this.txtHotKey = ((System.Windows.Controls.TextBox)(target));
     
     #line 49 "..\..\WndHotkeys.xaml"
     this.txtHotKey.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.txtHotKey_PreviewKeyDown);
     
     #line default
     #line hidden
     
     #line 49 "..\..\WndHotkeys.xaml"
     this.txtHotKey.LostFocus += new System.Windows.RoutedEventHandler(this.txtHotKey_LostFocus);
     
     #line default
     #line hidden
     
     #line 49 "..\..\WndHotkeys.xaml"
     this.txtHotKey.GotFocus += new System.Windows.RoutedEventHandler(this.txtHotKey_GotFocus);
     
     #line default
     #line hidden
     
     #line 49 "..\..\WndHotkeys.xaml"
     this.txtHotKey.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtHotKey_TextChanged);
     
     #line default
     #line hidden
     return;
     case 12:
     this.txbWatermark = ((System.Windows.Controls.TextBlock)(target));
     
     #line 50 "..\..\WndHotkeys.xaml"
     this.txbWatermark.GotFocus += new System.Windows.RoutedEventHandler(this.txbWatermark_GotFocus);
     
     #line default
     #line hidden
     
     #line 50 "..\..\WndHotkeys.xaml"
     this.txbWatermark.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.txbWatermark_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 13:
     this.cmdDeleteHK = ((PNotes.NET.SmallButton)(target));
     return;
     case 14:
     this.cmdOK = ((System.Windows.Controls.Button)(target));
     
     #line 52 "..\..\WndHotkeys.xaml"
     this.cmdOK.Click += new System.Windows.RoutedEventHandler(this.cmdOK_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.cmdCancel = ((System.Windows.Controls.Button)(target));
     return;
     case 16:
     this.lblRestrictedHotkeys = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 17:
     this.expDeterminated = ((System.Windows.Controls.Expander)(target));
     return;
     case 18:
     this.grdDefHotkeys = ((System.Windows.Controls.ListView)(target));
     
     #line 57 "..\..\WndHotkeys.xaml"
     this.grdDefHotkeys.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.grdDefHotkeys_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }