Ejemplo n.º 1
0
        /// <summary>
        /// Interact with menu option
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void ListViewItemFolder_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            FolderWindow folderWindow = new FolderWindow();

            folderWindow.Closing += FolderWindow_ClosingAsync;
            folderWindow.ShowDialog();
        }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Window = ((PhotoManager.FolderWindow)(target));

            #line 12 "..\..\FolderWindow.xaml"
                this.Window.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDown);

            #line default
            #line hidden

            #line 12 "..\..\FolderWindow.xaml"
                this.Window.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.TopPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.ButtonMinimizeWindow = ((System.Windows.Controls.Button)(target));

            #line 56 "..\..\FolderWindow.xaml"
                this.ButtonMinimizeWindow.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ButtonMinimizeWindow_Click);

            #line default
            #line hidden

            #line 57 "..\..\FolderWindow.xaml"
                this.ButtonMinimizeWindow.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ButtonMinimizeWindow_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.ButtonCloseWindow = ((System.Windows.Controls.Button)(target));

            #line 62 "..\..\FolderWindow.xaml"
                this.ButtonCloseWindow.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ButtonCloseWindow_Click);

            #line default
            #line hidden

            #line 63 "..\..\FolderWindow.xaml"
                this.ButtonCloseWindow.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ButtonCloseWindow_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.FolderView = ((System.Windows.Controls.TreeView)(target));
                return;

            case 6:
                this.ButtonRefresh = ((System.Windows.Controls.Button)(target));

            #line 92 "..\..\FolderWindow.xaml"
                this.ButtonRefresh.Click += new System.Windows.RoutedEventHandler(this.ButtonRefresh_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.ButtonAddFolder = ((System.Windows.Controls.Button)(target));

            #line 98 "..\..\FolderWindow.xaml"
                this.ButtonAddFolder.Click += new System.Windows.RoutedEventHandler(this.ButtonAddFolder_MouseClick);

            #line default
            #line hidden
                return;

            case 8:
                this.ButtonDeleteFolder = ((System.Windows.Controls.Button)(target));

            #line 101 "..\..\FolderWindow.xaml"
                this.ButtonDeleteFolder.Click += new System.Windows.RoutedEventHandler(this.ButtonDeleteFolder_MouseClickAsync);

            #line default
            #line hidden
                return;

            case 9:
                this.TextBoxFolderName = ((System.Windows.Controls.TextBox)(target));

            #line 131 "..\..\FolderWindow.xaml"
                this.TextBoxFolderName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBoxFolderName_TextChanged);

            #line default
            #line hidden
                return;

            case 10:
                this.ComboBoxParentFolder = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 11:
                this.RichTextBoxFolderDescription = ((System.Windows.Controls.RichTextBox)(target));

            #line 141 "..\..\FolderWindow.xaml"
                this.RichTextBoxFolderDescription.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.RichTextBoxFolderDescription_TextChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.CheckBoxCanEdit = ((System.Windows.Controls.CheckBox)(target));

            #line 153 "..\..\FolderWindow.xaml"
                this.CheckBoxCanEdit.Checked += new System.Windows.RoutedEventHandler(this.CheckBoxCanEdit_Checked);

            #line default
            #line hidden

            #line 154 "..\..\FolderWindow.xaml"
                this.CheckBoxCanEdit.Unchecked += new System.Windows.RoutedEventHandler(this.CheckBoxCanEdit_Unchecked);

            #line default
            #line hidden
                return;

            case 13:
                this.ButtonSaveChanges = ((System.Windows.Controls.Button)(target));
                return;

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

            #line 162 "..\..\FolderWindow.xaml"
                this.ButtonCancelChanges.Click += new System.Windows.RoutedEventHandler(this.ButtonCancelChanges_MouseClick);

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