示例#1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.lbDrop = ((System.Windows.Controls.ListBox)(target));

            #line 9 "..\..\TestWindow.xaml"
                this.lbDrop.Drop += new System.Windows.DragEventHandler(this.lbDrop_Drop);

            #line default
            #line hidden
                return;

            case 2:
                this.lbDrag = ((System.Windows.Controls.ListBox)(target));

            #line 13 "..\..\TestWindow.xaml"
                this.lbDrag.MouseMove += new System.Windows.Input.MouseEventHandler(this.lbDrag_MouseMove);

            #line default
            #line hidden

            #line 13 "..\..\TestWindow.xaml"
                this.lbDrag.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lbDrag_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.lbTest = ((TestExerciser.Diary.Controls.LoadingButton)(target));
                return;

            case 4:
                this.ncTest = ((TestExerciser.Diary.Controls.NotifyControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((TestExerciser.Diary.Shell)(target));
                return;

            case 2:
                this.miConfig = ((System.Windows.Controls.MenuItem)(target));

            #line 103 "..\..\Shell.xaml"
                this.miConfig.Click += new System.Windows.RoutedEventHandler(this.miConfig_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.miExit = ((System.Windows.Controls.MenuItem)(target));

            #line 106 "..\..\Shell.xaml"
                this.miExit.Click += new System.Windows.RoutedEventHandler(this.miExit_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.miTotal = ((TestExerciser.Diary.Controls.TopMenuItem)(target));
                return;

            case 5:
                this.grdMain = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.grdLeft = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:
                this.tvNotebookList = ((System.Windows.Controls.TreeView)(target));

            #line 178 "..\..\Shell.xaml"
                this.tvNotebookList.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.tvNotebookList_SelectedItemChanged);

            #line default
            #line hidden
                return;

            case 8:

            #line 179 "..\..\Shell.xaml"
                ((System.Windows.Controls.TreeViewItem)(target)).PreviewMouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TreeViewItem_PreviewMouseRightButtonDown);

            #line default
            #line hidden
                return;

            case 10:
                this.tviCustomCreateDate = ((System.Windows.Controls.TreeViewItem)(target));
                return;

            case 11:
                this.tvRecycle = ((System.Windows.Controls.TreeView)(target));

            #line 233 "..\..\Shell.xaml"
                this.tvRecycle.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.tvRecycle_SelectedItemChanged);

            #line default
            #line hidden
                return;

            case 12:

            #line 234 "..\..\Shell.xaml"
                ((System.Windows.Controls.TreeViewItem)(target)).PreviewMouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TreeViewItem_PreviewMouseRightButtonDown);

            #line default
            #line hidden
                return;

            case 13:
                this.grdMiddle = ((System.Windows.Controls.Grid)(target));
                return;

            case 14:
                this.tbSearchKeywords = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.lbNote = ((System.Windows.Controls.ListBox)(target));

            #line 280 "..\..\Shell.xaml"
                this.lbNote.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.lbNote_PreviewKeyDown);

            #line default
            #line hidden
                return;

            case 16:
                this.grdRight = ((System.Windows.Controls.Grid)(target));
                return;

            case 17:
                this.notifyControl = ((TestExerciser.Diary.Controls.NotifyControl)(target));
                return;

            case 18:
                this.taskbarIcon = ((Hardcodet.Wpf.TaskbarNotification.TaskbarIcon)(target));

            #line 327 "..\..\Shell.xaml"
                this.taskbarIcon.TrayMouseDoubleClick += new System.Windows.RoutedEventHandler(this.miShowWindow_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.miShowWindow = ((System.Windows.Controls.MenuItem)(target));

            #line 330 "..\..\Shell.xaml"
                this.miShowWindow.Click += new System.Windows.RoutedEventHandler(this.miShowWindow_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.miTopMost = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 21:

            #line 332 "..\..\Shell.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.miConfig_Click);

            #line default
            #line hidden
                return;

            case 22:

            #line 335 "..\..\Shell.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.miExit_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }