Example #1
0
        private void ListViewItemPhoto_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            PhotoWindow photoWindow = new PhotoWindow();

            photoWindow.ShowDialog();
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Window = ((PhotoManager.PhotoWindow)(target));

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

            #line default
            #line hidden

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

            #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 57 "..\..\PhotoWindow.xaml"
                this.ButtonMinimizeWindow.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ButtonMinimizeWindow_Click);

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

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

            #line 63 "..\..\PhotoWindow.xaml"
                this.ButtonMaximize.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ButtonMaximizeWindow_Click);

            #line default
            #line hidden

            #line 64 "..\..\PhotoWindow.xaml"
                this.ButtonMaximize.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ButtonMaximizeWindow_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 6:
                this.ListBoxPhoto = ((System.Windows.Controls.ListBox)(target));
                return;

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

            #line 108 "..\..\PhotoWindow.xaml"
                this.ButtonAddPhoto.Click += new System.Windows.RoutedEventHandler(this.ButtonAddPhoto_OnClick);

            #line default
            #line hidden
                return;

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

            #line 111 "..\..\PhotoWindow.xaml"
                this.ButtonDeletePhoto.Click += new System.Windows.RoutedEventHandler(this.ButtonDeletePhoto_OnClickAsync);

            #line default
            #line hidden
                return;

            case 9:
                this.GridInformaction = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.TextBoxPhotoName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.ImageHandler = ((System.Windows.Controls.Image)(target));
                return;

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

            case 13:
                this.ListBoxTag = ((System.Windows.Controls.ListBox)(target));
                return;

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

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

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

            #line 193 "..\..\PhotoWindow.xaml"
                this.CheckBoxCanEdit.Checked += new System.Windows.RoutedEventHandler(this.CheckBoxCanEdit_OnChecked);

            #line default
            #line hidden

            #line 194 "..\..\PhotoWindow.xaml"
                this.CheckBoxCanEdit.Unchecked += new System.Windows.RoutedEventHandler(this.CheckBoxCanEdit_OnUnchecked);

            #line default
            #line hidden
                return;

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

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

            #line 202 "..\..\PhotoWindow.xaml"
                this.ButtonCancelChanges.Click += new System.Windows.RoutedEventHandler(this.ButtonCancelChanges_OnMouseClick);

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