public ImageUserControl(MainWindow mainInstance, Image mainImage)
 {
     InitializeComponent();
     this.mainInstance = mainInstance;
     this.tempImage = mainImage;
     ShowImage();
 }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Gallery = ((Gallery.MainWindow)(target));
                return;

            case 2:

            #line 28 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_Remove);

            #line default
            #line hidden
                return;

            case 3:
                this.ComboBoxShow = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 4:
                this.Name = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.Create = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.LastWriteTime = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.Lenght = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.ComboBoxSearch = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 9:
                this.day = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.month = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.year = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.LoadButton = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\MainWindow.xaml"
                this.LoadButton.Click += new System.Windows.RoutedEventHandler(this.LoadButton_Click);

            #line default
            #line hidden
                return;

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

            #line 48 "..\..\MainWindow.xaml"
                this.listbox.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.OnPhotoClick);

            #line default
            #line hidden

            #line 48 "..\..\MainWindow.xaml"
                this.listbox.Drop += new System.Windows.DragEventHandler(this.Listbox_Drop);

            #line default
            #line hidden

            #line 48 "..\..\MainWindow.xaml"
                this.listbox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Listbox_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

            #line 57 "..\..\MainWindow.xaml"
                this.LoadButton_Folder.Click += new System.Windows.RoutedEventHandler(this.Open_Folder_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.StartSlideShowButton = ((System.Windows.Controls.Button)(target));

            #line 58 "..\..\MainWindow.xaml"
                this.StartSlideShowButton.Click += new System.Windows.RoutedEventHandler(this.StartSlideShowButton_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.textBox_interval = ((System.Windows.Controls.TextBox)(target));
                return;

            case 18:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.pbInterminate = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 20:
                this.button_create = ((System.Windows.Controls.Button)(target));

            #line 62 "..\..\MainWindow.xaml"
                this.button_create.Click += new System.Windows.RoutedEventHandler(this.Button_create_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.labelLoad = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.checkBoxDescending = ((System.Windows.Controls.CheckBox)(target));

            #line 64 "..\..\MainWindow.xaml"
                this.checkBoxDescending.Checked += new System.Windows.RoutedEventHandler(this.CheckBoxDescending_Checked);

            #line default
            #line hidden

            #line 64 "..\..\MainWindow.xaml"
                this.checkBoxDescending.Unchecked += new System.Windows.RoutedEventHandler(this.CheckBoxDescending_Unchecked);

            #line default
            #line hidden
                return;

            case 23:
                this.label_date = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.buttonSearch = ((System.Windows.Controls.Button)(target));

            #line 66 "..\..\MainWindow.xaml"
                this.buttonSearch.Click += new System.Windows.RoutedEventHandler(this.ButtonSearch_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.textBoxSearch = ((System.Windows.Controls.TextBox)(target));

            #line 67 "..\..\MainWindow.xaml"
                this.textBoxSearch.GotFocus += new System.Windows.RoutedEventHandler(this.TextBoxSearch_MouseUp);

            #line default
            #line hidden
                return;

            case 26:
                this.button_update = ((System.Windows.Controls.Button)(target));

            #line 68 "..\..\MainWindow.xaml"
                this.button_update.Click += new System.Windows.RoutedEventHandler(this.Button_update);

            #line default
            #line hidden
                return;

            case 27:
                this.button_back = ((System.Windows.Controls.Button)(target));

            #line 69 "..\..\MainWindow.xaml"
                this.button_back.Click += new System.Windows.RoutedEventHandler(this.Button_back);

            #line default
            #line hidden
                return;

            case 28:
                this.AddButton = ((System.Windows.Controls.Button)(target));

            #line 70 "..\..\MainWindow.xaml"
                this.AddButton.Click += new System.Windows.RoutedEventHandler(this.AddButton_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.SortDate = ((System.Windows.Controls.Button)(target));

            #line 71 "..\..\MainWindow.xaml"
                this.SortDate.Click += new System.Windows.RoutedEventHandler(this.SortDate_Click);

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