Inheritance: System.Windows.Controls.Primitives.Selector
コード例 #1
0
ファイル: FlipView.cs プロジェクト: yunxuan0123/Piggy2
        private void ChangeBannerText(string value = null)
        {
            if (!this.IsBannerEnabled)
            {
                FlipView.ExecuteWhenLoaded(this, () => this.bannerLabel.Content = value ?? this.BannerText);
                return;
            }
            string str = value ?? this.BannerText;

            if (str == null)
            {
                return;
            }
            if (this.hideControlStoryboardCompletedHandler != null)
            {
                this.hideControlStoryboard.Completed -= this.hideControlStoryboardCompletedHandler;
            }
            this.hideControlStoryboardCompletedHandler = (object sender, EventArgs e) => {
                try
                {
                    this.hideControlStoryboard.Completed -= this.hideControlStoryboardCompletedHandler;
                    this.bannerLabel.Content              = str;
                    this.bannerLabel.BeginStoryboard(this.showControlStoryboard, HandoffBehavior.SnapshotAndReplace);
                }
                catch (Exception exception)
                {
                }
            };
            this.hideControlStoryboard.Completed += this.hideControlStoryboardCompletedHandler;
            this.bannerLabel.BeginStoryboard(this.hideControlStoryboard, HandoffBehavior.SnapshotAndReplace);
        }
コード例 #2
0
ファイル: FlipView.cs プロジェクト: yunxuan0123/Piggy2
        private static void OnIsBannerEnabledPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FlipView flipView = (FlipView)d;

            if (!flipView.IsLoaded)
            {
                FlipView.ExecuteWhenLoaded(flipView, () => {
                    flipView.ApplyTemplate();
                    if (!(bool)e.NewValue)
                    {
                        flipView.HideBanner();
                        return;
                    }
                    flipView.ChangeBannerText(flipView.BannerText);
                    flipView.ShowBanner();
                });
                return;
            }
            if (!(bool)e.NewValue)
            {
                flipView.HideBanner();
                return;
            }
            flipView.ChangeBannerText(flipView.BannerText);
            flipView.ShowBanner();
        }
コード例 #3
0
ファイル: FlipView.cs プロジェクト: yunxuan0123/Piggy2
 public void ShowControlButtons()
 {
     this.controlsVisibilityOverride = false;
     FlipView.ExecuteWhenLoaded(this, () => {
         this.backButton.Visibility    = System.Windows.Visibility.Visible;
         this.forwardButton.Visibility = System.Windows.Visibility.Visible;
     });
 }
コード例 #4
0
ファイル: FlipView.cs プロジェクト: yunxuan0123/Piggy2
 public void HideControlButtons()
 {
     this.controlsVisibilityOverride = true;
     FlipView.ExecuteWhenLoaded(this, () => {
         this.backButton.Visibility    = System.Windows.Visibility.Hidden;
         this.forwardButton.Visibility = System.Windows.Visibility.Hidden;
     });
 }
コード例 #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.yearButton = ((MahApps.Metro.Controls.SplitButton)(target));

            #line 19 "..\..\..\Box\Show3.xaml"
                this.yearButton.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.year_SelectionChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.monthButton = ((MahApps.Metro.Controls.SplitButton)(target));

            #line 21 "..\..\..\Box\Show3.xaml"
                this.monthButton.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.month_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.dayButton = ((MahApps.Metro.Controls.SplitButton)(target));

            #line 23 "..\..\..\Box\Show3.xaml"
                this.dayButton.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.day_SelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.report_FlipView = ((MahApps.Metro.Controls.FlipView)(target));

            #line 29 "..\..\..\Box\Show3.xaml"
                this.report_FlipView.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.report_FlipView_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:

            #line 35 "..\..\..\Box\Show3.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #6
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.yourMahAppFlyout = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 2:
                this.Array = ((System.Windows.Controls.ListView)(target));
                return;

            case 3:
                this.NewItemBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:

            #line 30 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddItemClick);

            #line default
            #line hidden
                return;

            case 5:

            #line 31 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DeleteItemClick);

            #line default
            #line hidden
                return;

            case 6:

            #line 32 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SortArrayClick);

            #line default
            #line hidden
                return;

            case 7:
                this.FlipView = ((MahApps.Metro.Controls.FlipView)(target));

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #7
0
ファイル: News.g.i.cs プロジェクト: Tester798/Great-Snooper
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 7 "..\..\News.xaml"
                ((MySnooper.News)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MetroWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:

            #line 10 "..\..\News.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.NextNews);

            #line default
            #line hidden

            #line 10 "..\..\News.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanExecuteCustomCommand);

            #line default
            #line hidden
                return;

            case 3:

            #line 11 "..\..\News.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.PrevNews);

            #line default
            #line hidden

            #line 11 "..\..\News.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanExecuteCustomCommand);

            #line default
            #line hidden
                return;

            case 4:
                this.NewsFlipView = ((MahApps.Metro.Controls.FlipView)(target));

            #line 23 "..\..\News.xaml"
                this.NewsFlipView.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.NewsFlipView_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #8
0
ファイル: FlipView.cs プロジェクト: yunxuan0123/Piggy2
        private static void ExecuteWhenLoaded(FlipView flipview, Action body)
        {
            if (flipview.IsLoaded)
            {
                System.Windows.Threading.Dispatcher.CurrentDispatcher.Invoke(body);
                return;
            }
            RoutedEventHandler cSu0024u003cu003e8_locals1 = null;

            cSu0024u003cu003e8_locals1 = (object sender, RoutedEventArgs e) => {
                this.CS$ < > 8__locals1.flipview.Loaded -= this.handler;
                System.Windows.Threading.Dispatcher.CurrentDispatcher.Invoke(this.CS$ < > 8__locals1.body);
            };
            flipview.Loaded += cSu0024u003cu003e8_locals1;
        }
コード例 #9
0
        private static void ExecuteWhenLoaded(FlipView flipview, Action body)
        {
            if (flipview.IsLoaded)
            {
                System.Windows.Threading.Dispatcher.CurrentDispatcher.Invoke(body);
            }
            else
            {
                RoutedEventHandler handler = null;
                handler = (o, a) => {
                    flipview.Loaded -= handler;
                    System.Windows.Threading.Dispatcher.CurrentDispatcher.Invoke(body);
                };

                flipview.Loaded += handler;
            }
        }
コード例 #10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.FlipViewTest = ((MahApps.Metro.Controls.FlipView)(target));

            #line 18 "..\..\Princi.xaml"
                this.FlipViewTest.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FlipView_SelectionChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.profesopciones = ((MahApps.Metro.Controls.Flyout)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #11
0
ファイル: Results.g.i.cs プロジェクト: iskenxan/FOCUSME
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.resultsWindow = ((FocusMe.View.Results)(target));
                return;

            case 2:
                this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.textBlock2 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.flipView = ((MahApps.Metro.Controls.FlipView)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #12
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.WidthTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 2:
                this.HeightTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.FlipView = ((MahApps.Metro.Controls.FlipView)(target));

            #line 52 "..\..\..\View\PointOfInterestTemplate.xaml"
                this.FlipView.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FlipView_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #13
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 13 "..\..\Menu.xaml"
                ((SoBasicEnglish.Menu)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MetroWindow_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.btnsetting = ((System.Windows.Controls.Button)(target));
                return;

            case 3:
                this.FlipViewTest = ((MahApps.Metro.Controls.FlipView)(target));

            #line 47 "..\..\Menu.xaml"
                this.FlipViewTest.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FlipView_SelectionChanged);

            #line default
            #line hidden
                return;

            case 4:

            #line 69 "..\..\Menu.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 87 "..\..\Menu.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_5);

            #line default
            #line hidden
                return;

            case 6:

            #line 95 "..\..\Menu.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_2);

            #line default
            #line hidden
                return;

            case 7:

            #line 104 "..\..\Menu.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_1);

            #line default
            #line hidden
                return;

            case 8:

            #line 118 "..\..\Menu.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_4);

            #line default
            #line hidden
                return;

            case 9:

            #line 126 "..\..\Menu.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_3);

            #line default
            #line hidden
                return;

            case 10:
                this.flUser = ((MahApps.Metro.Controls.Flyout)(target));
                return;

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

            case 12:
                this.lbUserLevel = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.pcLevel = ((System.Windows.Controls.Border)(target));
                return;

            case 14:
                this.lbUserLevelScore = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.gEdituserInfo = ((System.Windows.Controls.Grid)(target));

            #line 210 "..\..\Menu.xaml"
                this.gEdituserInfo.MouseEnter += new System.Windows.Input.MouseEventHandler(this.gEdituserInfo_MouseEnter);

            #line default
            #line hidden

            #line 211 "..\..\Menu.xaml"
                this.gEdituserInfo.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.gEdituserInfo_MouseDown);

            #line default
            #line hidden

            #line 212 "..\..\Menu.xaml"
                this.gEdituserInfo.MouseLeave += new System.Windows.Input.MouseEventHandler(this.gEdituserInfo_MouseLeave);

            #line default
            #line hidden
                return;

            case 16:
                this.lbEditIUserInfo = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.gChangePass = ((System.Windows.Controls.Grid)(target));

            #line 228 "..\..\Menu.xaml"
                this.gChangePass.AddHandler(System.Windows.Input.Mouse.MouseEnterEvent, new System.Windows.Input.MouseEventHandler(this.gChangePass_MouseEnter));

            #line default
            #line hidden

            #line 229 "..\..\Menu.xaml"
                this.gChangePass.MouseLeave += new System.Windows.Input.MouseEventHandler(this.gChangePass_MouseLeave);

            #line default
            #line hidden

            #line 230 "..\..\Menu.xaml"
                this.gChangePass.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.gChangePass_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

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

            case 19:
                this.gLogOut = ((System.Windows.Controls.Grid)(target));

            #line 243 "..\..\Menu.xaml"
                this.gLogOut.MouseEnter += new System.Windows.Input.MouseEventHandler(this.gLogOut_MouseEnter);

            #line default
            #line hidden

            #line 244 "..\..\Menu.xaml"
                this.gLogOut.MouseLeave += new System.Windows.Input.MouseEventHandler(this.gLogOut_MouseLeave);

            #line default
            #line hidden
                return;

            case 20:
                this.lbLogOut = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.flProccess = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 22:
                this.dataGroupedGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 266 "..\..\Menu.xaml"
                this.dataGroupedGrid.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.dataGroupedGrid_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 24:
                this.flChampions = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 25:
                this.btnCloseChampions = ((MahApps.Metro.Controls.Tile)(target));

            #line 317 "..\..\Menu.xaml"
                this.btnCloseChampions.Click += new System.Windows.RoutedEventHandler(this.btnCloseChampions_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #14
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.btnsetting = ((System.Windows.Controls.Button)(target));
                return;

            case 2:
                this.FlipViewTest = ((MahApps.Metro.Controls.FlipView)(target));
                return;

            case 3:
                this.flUser = ((MahApps.Metro.Controls.Flyout)(target));
                return;

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

            case 5:
                this.lbUserLevel = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.pcLevel = ((System.Windows.Controls.Border)(target));
                return;

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

            case 8:
                this.gEdituserInfo = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.lbEditIUserInfo = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.gChangePass = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.lbChangePassword = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.gLogOut = ((System.Windows.Controls.Grid)(target));
                return;

            case 13:
                this.lbLogOut = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.flProccess = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 15:
                this.gvDate = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 16:
                this.flChampions = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 17:
                this.lvChampion = ((System.Windows.Controls.ListView)(target));
                return;

            case 18:
                this.btnCloseChampions = ((MahApps.Metro.Controls.Tile)(target));
                return;

            case 19:
                this.child01 = ((MahApps.Metro.SimpleChildWindow.ChildWindow)(target));
                return;

            case 20:
                this.imgAVT = ((System.Windows.Media.ImageBrush)(target));
                return;

            case 21:
                this.btnAVT = ((MahApps.Metro.Controls.Tile)(target));
                return;

            case 22:
                this.txtUserFullName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 23:
                this.txtBasicInfo = ((System.Windows.Controls.TextBox)(target));
                return;

            case 24:
                this.stpChangPassword = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 25:
                this.txtOldPass = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 26:
                this.txtNewPass = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 27:
                this.txtConfiPass = ((System.Windows.Controls.PasswordBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #15
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\MainWindow.xaml"
                ((Spherification.MainWindow)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.keyUp);

            #line default
            #line hidden
                return;

            case 2:

            #line 36 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.Grid_MouseMove);

            #line default
            #line hidden

            #line 36 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseDown);

            #line default
            #line hidden

            #line 36 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Grid_MouseUp);

            #line default
            #line hidden
                return;

            case 3:
                this.details_viewport = ((System.Windows.Controls.Viewport3D)(target));
                return;

            case 4:
                this.details_camera = ((System.Windows.Media.Media3D.PerspectiveCamera)(target));
                return;

            case 5:
                this.details_group = ((System.Windows.Media.Media3D.Model3DGroup)(target));
                return;

            case 6:
                this.descriptionDatagr = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 7:
                this.FlipViewTest = ((MahApps.Metro.Controls.FlipView)(target));
                return;

            case 8:

            #line 118 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.Grid_MouseWheel);

            #line default
            #line hidden

            #line 118 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.Grid_MouseMove);

            #line default
            #line hidden
                return;

            case 9:
                this.viewport = ((System.Windows.Controls.Viewport3D)(target));
                return;

            case 10:
                this.camera = ((System.Windows.Media.Media3D.PerspectiveCamera)(target));
                return;

            case 11:
                this.model = ((System.Windows.Media.Media3D.ModelVisual3D)(target));
                return;

            case 12:
                this.group = ((System.Windows.Media.Media3D.Model3DGroup)(target));
                return;

            case 13:
                this.dataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #16
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\MainWindow.xaml"
                ((PS3_Game_Tool.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MetroWindow_Loaded);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                ((PS3_Game_Tool.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MetroWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.metroAnimatedTabControl = ((MahApps.Metro.Controls.MetroAnimatedSingleRowTabControl)(target));
                return;

            case 3:
                this.lbtest = ((System.Windows.Controls.ListBox)(target));

            #line 92 "..\..\MainWindow.xaml"
                this.lbtest.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lbtest_SelectionChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.groupBoxpkginfo = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 7:
                this.lvpkginfo = ((System.Windows.Controls.ListView)(target));
                return;

            case 8:
                this.groupBoxsfo = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 9:
                this.lvpkgsfo = ((System.Windows.Controls.ListView)(target));
                return;

            case 10:
                this.groupBoxpkgtools = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 11:
                this.button_Copy = ((System.Windows.Controls.Button)(target));
                return;

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

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

            #line 334 "..\..\MainWindow.xaml"
                this.button_Copy3.Click += new System.Windows.RoutedEventHandler(this.button_Copy3_Click);

            #line default
            #line hidden
                return;

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

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

            case 16:
                this.pkgwb = ((System.Windows.Controls.WebBrowser)(target));
                return;

            case 17:
                this.lbisotest = ((System.Windows.Controls.ListBox)(target));

            #line 568 "..\..\MainWindow.xaml"
                this.lbisotest.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lbtest_SelectionChanged);

            #line default
            #line hidden
                return;

            case 19:
                this.groupBoxisoinfo = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 20:
                this.lvisoinfo = ((System.Windows.Controls.ListView)(target));
                return;

            case 21:
                this.groupBoxisosfo = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 22:
                this.lvisosfo = ((System.Windows.Controls.ListView)(target));
                return;

            case 23:
                this.groupBoxisotools = ((System.Windows.Controls.GroupBox)(target));
                return;

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

            case 25:
                this.lbgametest = ((System.Windows.Controls.ListBox)(target));

            #line 891 "..\..\MainWindow.xaml"
                this.lbgametest.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lbtest_SelectionChanged);

            #line default
            #line hidden
                return;

            case 27:
                this.groupBoxgameinfo = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 28:
                this.lvgameinfo = ((System.Windows.Controls.ListView)(target));
                return;

            case 29:
                this.groupBoxgamesfo = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 30:
                this.lvgamesfo = ((System.Windows.Controls.ListView)(target));
                return;

            case 31:
                this.groupBoxgametools = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 32:
                this.buttongame = ((System.Windows.Controls.Button)(target));
                return;

            case 33:
                this.updtab = ((System.Windows.Controls.TabItem)(target));
                return;

            case 34:

            #line 1209 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);

            #line default
            #line hidden
                return;

            case 35:
                this.buttonud = ((System.Windows.Controls.Button)(target));

            #line 1210 "..\..\MainWindow.xaml"
                this.buttonud.Click += new System.Windows.RoutedEventHandler(this.buttonud_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.labelud = ((System.Windows.Controls.Label)(target));
                return;

            case 37:
                this.textBoxud = ((System.Windows.Controls.TextBox)(target));

            #line 1230 "..\..\MainWindow.xaml"
                this.textBoxud.PreviewDragOver += new System.Windows.DragEventHandler(this.textBox1_PreviewDragOver);

            #line default
            #line hidden

            #line 1230 "..\..\MainWindow.xaml"
                this.textBoxud.PreviewDrop += new System.Windows.DragEventHandler(this.textBox1_PreviewDrop);

            #line default
            #line hidden
                return;

            case 38:
                this.dataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 41:
                this.textBox3 = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 43:
                this.buttonud_Copy = ((System.Windows.Controls.Button)(target));

            #line 1416 "..\..\MainWindow.xaml"
                this.buttonud_Copy.Click += new System.Windows.RoutedEventHandler(this.dlbuttonud_Click);

            #line default
            #line hidden
                return;

            case 44:
                this.buttonud_Copy1 = ((System.Windows.Controls.Button)(target));

            #line 1433 "..\..\MainWindow.xaml"
                this.buttonud_Copy1.Click += new System.Windows.RoutedEventHandler(this.buttonud_Click);

            #line default
            #line hidden
                return;

            case 45:
                this.groupBox1 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 46:
                this.button1 = ((System.Windows.Controls.Button)(target));

            #line 1536 "..\..\MainWindow.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);

            #line default
            #line hidden
                return;

            case 47:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 48:
                this.textBox1 = ((System.Windows.Controls.TextBox)(target));

            #line 1538 "..\..\MainWindow.xaml"
                this.textBox1.PreviewDragOver += new System.Windows.DragEventHandler(this.textBox1_PreviewDragOver);

            #line default
            #line hidden

            #line 1538 "..\..\MainWindow.xaml"
                this.textBox1.PreviewDrop += new System.Windows.DragEventHandler(this.textBox1_PreviewDrop);

            #line default
            #line hidden
                return;

            case 49:
                this.groupBox2 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 50:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 51:
                this.button2 = ((System.Windows.Controls.Button)(target));

            #line 1544 "..\..\MainWindow.xaml"
                this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);

            #line default
            #line hidden
                return;

            case 52:
                this.textBox2 = ((System.Windows.Controls.TextBox)(target));

            #line 1545 "..\..\MainWindow.xaml"
                this.textBox2.PreviewDragOver += new System.Windows.DragEventHandler(this.textBox2_PreviewDragOver);

            #line default
            #line hidden

            #line 1545 "..\..\MainWindow.xaml"
                this.textBox2.PreviewDragEnter += new System.Windows.DragEventHandler(this.textBox2_PreviewDragOver);

            #line default
            #line hidden

            #line 1545 "..\..\MainWindow.xaml"
                this.textBox2.PreviewDrop += new System.Windows.DragEventHandler(this.textBox2_PreviewDrop);

            #line default
            #line hidden
                return;

            case 53:
                this.groupBox3 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 54:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 55:
                this.button3 = ((System.Windows.Controls.Button)(target));

            #line 1551 "..\..\MainWindow.xaml"
                this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click);

            #line default
            #line hidden
                return;

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

            #line 1552 "..\..\MainWindow.xaml"
                this.textBox.PreviewDragOver += new System.Windows.DragEventHandler(this.textBox_PreviewDragOver);

            #line default
            #line hidden

            #line 1552 "..\..\MainWindow.xaml"
                this.textBox.PreviewDragEnter += new System.Windows.DragEventHandler(this.textBox_PreviewDragOver);

            #line default
            #line hidden

            #line 1552 "..\..\MainWindow.xaml"
                this.textBox.PreviewDrop += new System.Windows.DragEventHandler(this.textBox_PreviewDrop);

            #line default
            #line hidden
                return;

            case 57:
                this.groupBoxtheme = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 58:
                this.listBox1 = ((System.Windows.Controls.ListBox)(target));

            #line 1577 "..\..\MainWindow.xaml"
                this.listBox1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListBoxItem_Selected);

            #line default
            #line hidden
                return;

            case 59:
                this.button7 = ((System.Windows.Controls.Button)(target));

            #line 1602 "..\..\MainWindow.xaml"
                this.button7.Click += new System.Windows.RoutedEventHandler(this.button7_Click);

            #line default
            #line hidden
                return;

            case 60:
                this.b7tb1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 61:
                this.trellowb = ((System.Windows.Controls.WebBrowser)(target));
                return;

            case 62:
                this.gridInfo2 = ((System.Windows.Controls.Grid)(target));
                return;

            case 63:
                this.fv1 = ((MahApps.Metro.Controls.FlipView)(target));
                return;

            case 64:
                this.fvi1 = ((MahApps.Metro.Controls.FlipViewItem)(target));
                return;

            case 65:
                this.VisitPlanScrollView = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 66:
                this.VisitPlanItems = ((System.Windows.Controls.ItemsControl)(target));
                return;

            case 68:
                this.fvidg = ((MahApps.Metro.Controls.FlipViewItem)(target));
                return;

            case 69:
                this.dataGrid1 = ((System.Windows.Controls.DataGrid)(target));

            #line 1756 "..\..\MainWindow.xaml"
                this.dataGrid1.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.dataGrid1_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 70:
                this.gridInfo3 = ((System.Windows.Controls.Grid)(target));
                return;

            case 71:

            #line 1804 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #17
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\Mainicecream.xaml"
                ((llegarytopar.Mainicecream)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

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

            case 3:
                this.Logodecristorey = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.Salir = ((MahApps.Metro.Controls.Tile)(target));

            #line 22 "..\..\Mainicecream.xaml"
                this.Salir.Click += new System.Windows.RoutedEventHandler(this.Salir_Click);

            #line default
            #line hidden
                return;

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

            case 6:
                this.flip = ((MahApps.Metro.Controls.FlipView)(target));

            #line 28 "..\..\Mainicecream.xaml"
                this.flip.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FlipView_SelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.Botones = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:

            #line 49 "..\..\Mainicecream.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_1);

            #line default
            #line hidden
                return;

            case 9:

            #line 53 "..\..\Mainicecream.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 57 "..\..\Mainicecream.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_2);

            #line default
            #line hidden
                return;

            case 11:

            #line 64 "..\..\Mainicecream.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_4);

            #line default
            #line hidden
                return;

            case 12:
                this.becas = ((MahApps.Metro.Controls.Tile)(target));

            #line 69 "..\..\Mainicecream.xaml"
                this.becas.Click += new System.Windows.RoutedEventHandler(this.becas_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.dudamascota = ((MahApps.Metro.Controls.Tile)(target));

            #line 72 "..\..\Mainicecream.xaml"
                this.dudamascota.Click += new System.Windows.RoutedEventHandler(this.dudamascota_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.imagenmint = ((System.Windows.Controls.Image)(target));
                return;

            case 15:
                this.FlyProfesor = ((System.Windows.Controls.Grid)(target));
                return;

            case 16:
                this.profesopciones = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 17:
                this.texto = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.menusito = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 19:
                this.Admin = ((MahApps.Metro.Controls.Tile)(target));

            #line 89 "..\..\Mainicecream.xaml"
                this.Admin.Click += new System.Windows.RoutedEventHandler(this.Admin_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.bat = ((MahApps.Metro.Controls.Tile)(target));

            #line 92 "..\..\Mainicecream.xaml"
                this.bat.Click += new System.Windows.RoutedEventHandler(this.bat_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.Eso = ((MahApps.Metro.Controls.Tile)(target));

            #line 95 "..\..\Mainicecream.xaml"
                this.Eso.Click += new System.Windows.RoutedEventHandler(this.Eso_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.cf = ((MahApps.Metro.Controls.Tile)(target));

            #line 98 "..\..\Mainicecream.xaml"
                this.cf.Click += new System.Windows.RoutedEventHandler(this.cf_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.Grid_Mascota = ((System.Windows.Controls.Grid)(target));
                return;

            case 24:
                this.flymascota = ((MahApps.Metro.Controls.Flyout)(target));

            #line 116 "..\..\Mainicecream.xaml"
                this.flymascota.ContextMenuOpening += new System.Windows.Controls.ContextMenuEventHandler(this.flymascota_ContextMenuOpening);

            #line default
            #line hidden

            #line 116 "..\..\Mainicecream.xaml"
                this.flymascota.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.flymascota_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 25:

            #line 129 "..\..\Mainicecream.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_3);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #18
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.settingTitleBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 2:
                this.settingFlipView = ((MahApps.Metro.Controls.FlipView)(target));
                return;

            case 3:
                this.text1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 4:
                this.lampBox1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.lampBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:

            #line 50 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 7:

            #line 51 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.setting = ((MahApps.Metro.Controls.FlipView)(target));
                return;

            case 9:

            #line 65 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);

            #line default
            #line hidden
                return;

            case 10:

            #line 66 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_3);

            #line default
            #line hidden
                return;

            case 11:

            #line 67 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_4);

            #line default
            #line hidden
                return;

            case 12:

            #line 68 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_5);

            #line default
            #line hidden
                return;

            case 13:

            #line 69 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_6);

            #line default
            #line hidden
                return;

            case 14:

            #line 70 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_7);

            #line default
            #line hidden
                return;

            case 15:

            #line 71 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_8);

            #line default
            #line hidden
                return;

            case 16:

            #line 75 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_9);

            #line default
            #line hidden
                return;

            case 17:

            #line 76 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_10);

            #line default
            #line hidden
                return;

            case 18:

            #line 77 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_11);

            #line default
            #line hidden
                return;

            case 19:

            #line 78 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_12);

            #line default
            #line hidden
                return;

            case 20:

            #line 79 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_13);

            #line default
            #line hidden
                return;

            case 21:

            #line 80 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_14);

            #line default
            #line hidden
                return;

            case 22:

            #line 81 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_15);

            #line default
            #line hidden
                return;

            case 23:

            #line 85 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_16);

            #line default
            #line hidden
                return;

            case 24:

            #line 86 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_17);

            #line default
            #line hidden
                return;

            case 25:

            #line 87 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_18);

            #line default
            #line hidden
                return;

            case 26:

            #line 88 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_19);

            #line default
            #line hidden
                return;

            case 27:

            #line 89 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_20);

            #line default
            #line hidden
                return;

            case 28:

            #line 90 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_21);

            #line default
            #line hidden
                return;

            case 29:

            #line 91 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_22);

            #line default
            #line hidden
                return;

            case 30:
                this.text_Copy = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 31:
                this.text = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 32:

            #line 103 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_23);

            #line default
            #line hidden
                return;

            case 33:

            #line 104 "..\..\..\Box\InformationInput.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_24);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #19
0
ファイル: FlipView.cs プロジェクト: yunxuan0123/Piggy2
 static FlipView()
 {
     Class6.yDnXvgqzyB5jw();
     FlipView.UpTransitionProperty         = DependencyProperty.Register("UpTransition", typeof(TransitionType), typeof(FlipView), new PropertyMetadata((object)TransitionType.Up));
     FlipView.DownTransitionProperty       = DependencyProperty.Register("DownTransition", typeof(TransitionType), typeof(FlipView), new PropertyMetadata((object)TransitionType.Down));
     FlipView.LeftTransitionProperty       = DependencyProperty.Register("LeftTransition", typeof(TransitionType), typeof(FlipView), new PropertyMetadata((object)TransitionType.LeftReplace));
     FlipView.RightTransitionProperty      = DependencyProperty.Register("RightTransition", typeof(TransitionType), typeof(FlipView), new PropertyMetadata((object)TransitionType.RightReplace));
     FlipView.MouseOverGlowEnabledProperty = DependencyProperty.Register("MouseOverGlowEnabled", typeof(bool), typeof(FlipView), new PropertyMetadata(true));
     FlipView.OrientationProperty          = DependencyProperty.Register("Orientation", typeof(System.Windows.Controls.Orientation), typeof(FlipView), new PropertyMetadata((object)System.Windows.Controls.Orientation.Horizontal));
     FlipView.IsBannerEnabledProperty      = DependencyProperty.Register("IsBannerEnabled", typeof(bool), typeof(FlipView), new UIPropertyMetadata(true, new PropertyChangedCallback(FlipView.OnIsBannerEnabledPropertyChangedCallback)));
     FlipView.BannerTextProperty           = DependencyProperty.Register("BannerText", typeof(string), typeof(FlipView), new FrameworkPropertyMetadata("Banner", FrameworkPropertyMetadataOptions.AffectsRender, (DependencyObject d, DependencyPropertyChangedEventArgs e) => FlipView.ExecuteWhenLoaded((FlipView)d, () => ((FlipView)d).ChangeBannerText((string)e.NewValue))));
     FrameworkElement.DefaultStyleKeyProperty.OverrideMetadata(typeof(FlipView), new FrameworkPropertyMetadata(typeof(FlipView)));
 }
コード例 #20
0
ファイル: FlipView.cs プロジェクト: spiritdead/MahApps.Metro
        private static void ExecuteWhenLoaded(FlipView flipview, Action body)
        {
            if (flipview.IsLoaded)
                System.Windows.Threading.Dispatcher.CurrentDispatcher.Invoke(new EmptyDelegate(() =>
                {
                    body();
                }));
            else
            {
                RoutedEventHandler handler = null;
                handler = new RoutedEventHandler((o, a) =>
                {
                    flipview.Loaded -= handler;
                    System.Windows.Threading.Dispatcher.CurrentDispatcher.Invoke(new EmptyDelegate(() =>
                        {
                            body();
                        }));
                });

                flipview.Loaded += handler;
            }
        }
コード例 #21
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\..\Fenetres\Prevision.xaml"
                ((ProjetWPF.Fenetres.Prevision)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.UserControl_SizeChanged);

            #line default
            #line hidden
                return;

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

            case 3:
                this.row1 = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 4:
                this.flipView1 = ((MahApps.Metro.Controls.FlipView)(target));
                return;

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

            case 6:
                this.TmpMin = ((MahApps.Metro.Controls.NumericUpDown)(target));

            #line 230 "..\..\..\Fenetres\Prevision.xaml"
                this.TmpMin.MouseEnter += new System.Windows.Input.MouseEventHandler(this.NumericUpDown_MouseEnter);

            #line default
            #line hidden

            #line 230 "..\..\..\Fenetres\Prevision.xaml"
                this.TmpMin.MouseLeave += new System.Windows.Input.MouseEventHandler(this.NumericUpDown_MouseLeave);

            #line default
            #line hidden
                return;

            case 7:
                this.TmpMax = ((MahApps.Metro.Controls.NumericUpDown)(target));

            #line 231 "..\..\..\Fenetres\Prevision.xaml"
                this.TmpMax.MouseEnter += new System.Windows.Input.MouseEventHandler(this.NumericUpDown_MouseEnter);

            #line default
            #line hidden

            #line 231 "..\..\..\Fenetres\Prevision.xaml"
                this.TmpMax.MouseLeave += new System.Windows.Input.MouseEventHandler(this.NumericUpDown_MouseLeave);

            #line default
            #line hidden
                return;

            case 8:
                this.Pression = ((MahApps.Metro.Controls.NumericUpDown)(target));

            #line 232 "..\..\..\Fenetres\Prevision.xaml"
                this.Pression.MouseEnter += new System.Windows.Input.MouseEventHandler(this.NumericUpDown_MouseEnter);

            #line default
            #line hidden

            #line 232 "..\..\..\Fenetres\Prevision.xaml"
                this.Pression.MouseLeave += new System.Windows.Input.MouseEventHandler(this.NumericUpDown_MouseLeave);

            #line default
            #line hidden
                return;

            case 9:
                this.Humidite = ((MahApps.Metro.Controls.NumericUpDown)(target));

            #line 233 "..\..\..\Fenetres\Prevision.xaml"
                this.Humidite.MouseEnter += new System.Windows.Input.MouseEventHandler(this.NumericUpDown_MouseEnter);

            #line default
            #line hidden

            #line 233 "..\..\..\Fenetres\Prevision.xaml"
                this.Humidite.MouseLeave += new System.Windows.Input.MouseEventHandler(this.NumericUpDown_MouseLeave);

            #line default
            #line hidden
                return;

            case 10:
                this.Vent = ((MahApps.Metro.Controls.NumericUpDown)(target));

            #line 234 "..\..\..\Fenetres\Prevision.xaml"
                this.Vent.MouseEnter += new System.Windows.Input.MouseEventHandler(this.NumericUpDown_MouseEnter);

            #line default
            #line hidden

            #line 234 "..\..\..\Fenetres\Prevision.xaml"
                this.Vent.MouseLeave += new System.Windows.Input.MouseEventHandler(this.NumericUpDown_MouseLeave);

            #line default
            #line hidden
                return;

            case 11:
                this.Visibilite = ((MahApps.Metro.Controls.NumericUpDown)(target));

            #line 235 "..\..\..\Fenetres\Prevision.xaml"
                this.Visibilite.MouseEnter += new System.Windows.Input.MouseEventHandler(this.NumericUpDown_MouseEnter);

            #line default
            #line hidden

            #line 235 "..\..\..\Fenetres\Prevision.xaml"
                this.Visibilite.MouseLeave += new System.Windows.Input.MouseEventHandler(this.NumericUpDown_MouseLeave);

            #line default
            #line hidden
                return;

            case 12:
                this.Precipitation = ((MahApps.Metro.Controls.NumericUpDown)(target));

            #line 236 "..\..\..\Fenetres\Prevision.xaml"
                this.Precipitation.MouseEnter += new System.Windows.Input.MouseEventHandler(this.NumericUpDown_MouseEnter);

            #line default
            #line hidden

            #line 236 "..\..\..\Fenetres\Prevision.xaml"
                this.Precipitation.MouseLeave += new System.Windows.Input.MouseEventHandler(this.NumericUpDown_MouseLeave);

            #line default
            #line hidden
                return;

            case 13:
                this.Nebulosite = ((MahApps.Metro.Controls.NumericUpDown)(target));

            #line 237 "..\..\..\Fenetres\Prevision.xaml"
                this.Nebulosite.MouseEnter += new System.Windows.Input.MouseEventHandler(this.NumericUpDown_MouseEnter);

            #line default
            #line hidden

            #line 237 "..\..\..\Fenetres\Prevision.xaml"
                this.Nebulosite.MouseLeave += new System.Windows.Input.MouseEventHandler(this.NumericUpDown_MouseLeave);

            #line default
            #line hidden
                return;

            case 14:
                this.ComboVent = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 15:
                this.ComboNeige = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 16:
                this.oui = ((System.Windows.Controls.ComboBoxItem)(target));
                return;

            case 17:
                this.TmpMinLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.TmpMaxLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 19:
                this.PressionLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:
                this.HumiditeLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.VentLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 22:
                this.VisibiliteLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 23:
                this.PrecipitationLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 24:
                this.NebulositeLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 25:
                this.BTm = ((System.Windows.Controls.Button)(target));

            #line 302 "..\..\..\Fenetres\Prevision.xaml"
                this.BTm.Click += new System.Windows.RoutedEventHandler(this.Button_Click_D);

            #line default
            #line hidden
                return;

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

            #line 307 "..\..\..\Fenetres\Prevision.xaml"
                this.BtnAnnuler.Click += new System.Windows.RoutedEventHandler(this.Annuler_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.ToggTempurature = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 28:
                this.ToggPression = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 29:
                this.ToggHumidite = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 30:
                this.ToggVent = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 31:
                this.ToggVisibilite = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 32:
                this.ToggPrecipitation = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 33:
                this.ToggNebulosite = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 34:
                this.ToggNeige = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 35:
                this.Appliquer = ((System.Windows.Controls.Button)(target));

            #line 350 "..\..\..\Fenetres\Prevision.xaml"
                this.Appliquer.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.Sauv = ((System.Windows.Controls.Button)(target));

            #line 353 "..\..\..\Fenetres\Prevision.xaml"
                this.Sauv.Click += new System.Windows.RoutedEventHandler(this.Sauv_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.BtmModifier = ((System.Windows.Controls.Button)(target));

            #line 358 "..\..\..\Fenetres\Prevision.xaml"
                this.BtmModifier.Click += new System.Windows.RoutedEventHandler(this.Modifier_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #22
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.myTab = ((System.Windows.Controls.TabControl)(target));

            #line 75 "..\..\MainWindow.xaml"
                this.myTab.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.myTab_SelectionChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.home_image = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.lightTile = ((MahApps.Metro.Controls.Tile)(target));

            #line 86 "..\..\MainWindow.xaml"
                this.lightTile.Click += new System.Windows.RoutedEventHandler(this.lihgtsTileClick);

            #line default
            #line hidden
                return;

            case 4:
                this.waterHeaterTile = ((MahApps.Metro.Controls.Tile)(target));

            #line 96 "..\..\MainWindow.xaml"
                this.waterHeaterTile.Click += new System.Windows.RoutedEventHandler(this.waterHeaterTileClick);

            #line default
            #line hidden
                return;

            case 5:
                this.acTile = ((MahApps.Metro.Controls.Tile)(target));

            #line 109 "..\..\MainWindow.xaml"
                this.acTile.Click += new System.Windows.RoutedEventHandler(this.acTileClick);

            #line default
            #line hidden
                return;

            case 6:
                this.heatingTile = ((MahApps.Metro.Controls.Tile)(target));

            #line 118 "..\..\MainWindow.xaml"
                this.heatingTile.Click += new System.Windows.RoutedEventHandler(this.heatingTileClick);

            #line default
            #line hidden
                return;

            case 7:
                this.oulteTitle = ((MahApps.Metro.Controls.Tile)(target));

            #line 127 "..\..\MainWindow.xaml"
                this.oulteTitle.Click += new System.Windows.RoutedEventHandler(this.oulteTitleClick);

            #line default
            #line hidden
                return;

            case 8:
                this.beatteryTile = ((MahApps.Metro.Controls.Tile)(target));

            #line 135 "..\..\MainWindow.xaml"
                this.beatteryTile.Click += new System.Windows.RoutedEventHandler(this.beatteryTileClick);

            #line default
            #line hidden
                return;

            case 9:
                this.report_image = ((System.Windows.Controls.Image)(target));
                return;

            case 10:
                this.yearButton = ((MahApps.Metro.Controls.SplitButton)(target));

            #line 164 "..\..\MainWindow.xaml"
                this.yearButton.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.year_SelectionChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.monthButton = ((MahApps.Metro.Controls.SplitButton)(target));

            #line 166 "..\..\MainWindow.xaml"
                this.monthButton.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.month_SelectionChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.dayButton = ((MahApps.Metro.Controls.SplitButton)(target));

            #line 168 "..\..\MainWindow.xaml"
                this.dayButton.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.day_SelectionChanged);

            #line default
            #line hidden
                return;

            case 13:
                this.report_FlipView = ((MahApps.Metro.Controls.FlipView)(target));

            #line 173 "..\..\MainWindow.xaml"
                this.report_FlipView.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.reportFlipView_SelectionChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.OK = ((System.Windows.Controls.Image)(target));
                return;

            case 15:
                this.settingTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 16:
                this.setting = ((MahApps.Metro.Controls.FlipView)(target));

            #line 201 "..\..\MainWindow.xaml"
                this.setting.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.settingFlipView_SelectionChanged);

            #line default
            #line hidden
                return;

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

            case 18:
                this.ok2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:
                this.setting_image = ((System.Windows.Controls.Image)(target));
                return;

            case 20:
                this.settingTitleBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.settingFlipView = ((MahApps.Metro.Controls.FlipView)(target));

            #line 246 "..\..\MainWindow.xaml"
                this.settingFlipView.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.settingFlipView_SelectionChanged);

            #line default
            #line hidden
                return;

            case 22:
                this.waterHaterOpenHourSBtn = ((MahApps.Metro.Controls.SplitButton)(target));

            #line 303 "..\..\MainWindow.xaml"
                this.waterHaterOpenHourSBtn.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.openHour_SelectionChanged);

            #line default
            #line hidden
                return;

            case 23:
                this.waterHaterOpenMinuteSBtn = ((MahApps.Metro.Controls.SplitButton)(target));

            #line 306 "..\..\MainWindow.xaml"
                this.waterHaterOpenMinuteSBtn.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.openMinute_SelectionChanged);

            #line default
            #line hidden
                return;

            case 24:
                this.waterHaterCloseHourSBtn = ((MahApps.Metro.Controls.SplitButton)(target));

            #line 311 "..\..\MainWindow.xaml"
                this.waterHaterCloseHourSBtn.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.closeHour_SelectionChanged);

            #line default
            #line hidden
                return;

            case 25:
                this.waterHaterCloseMinuteSBtn = ((MahApps.Metro.Controls.SplitButton)(target));

            #line 314 "..\..\MainWindow.xaml"
                this.waterHaterCloseMinuteSBtn.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.closeMinute_SelectionChanged);

            #line default
            #line hidden
                return;

            case 26:

            #line 329 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.exit_Click);

            #line default
            #line hidden
                return;

            case 27:

            #line 330 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 28:

            #line 331 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #23
0
 private void GridAdd(FlipView fvName, int whichTab, bool isSearch)
 {
     List<Grid> listg = new List<Grid>();
     GridAdd(fvName, whichTab, isSearch, listg);
 }
コード例 #24
0
 private void GridAdd(FlipView fvName, int whichTab, bool isSearch, List<Grid> listg) 
 {
     if (!isSearch)
     {
         if (whichTab == 1) { for (int i = 0; i < hsd.getHeadFoodNameCount(); i++) { listg.Add(ElementsAdd(whichTab, i)); } }
         if (whichTab == 2) { for (int i = 0; i < hsd.getHeadDeviceNameCount(); i++) { listg.Add(ElementsAdd(whichTab, i)); } }
         if (whichTab == 3) { for (int i = 0; i < hsd.getHeadMiscNameCount(); i++) { listg.Add(ElementsAdd(whichTab, i)); } }
         if (whichTab == 4) { for (int i = 0; i < hsd.getHeadAlphabetNameCount(); i++) { listg.Add(ElementsAdd(whichTab, i)); } }
         if (whichTab == 5) { for (int i = 0; i < hsd.getHeadInteriorNameCount(); i++) { listg.Add(ElementsAdd(whichTab, i)); } }
         if (whichTab == 6) { for (int i = 0; i < hsd.getHeadColorNameCount(); i++) { listg.Add(ElementsAdd(whichTab, i)); } }
         if (whichTab == 7) { for (int i = 0; i < hsd.getHeadBlockNameCount(); i++) { listg.Add(ElementsAdd(whichTab, i)); } }
         if (whichTab == 8) { for (int i = 0; i < hsd.getHeadMobNameCount(); i++) { listg.Add(ElementsAdd(whichTab, i)); } }
         if (whichTab == 9) { for (int i = 0; i < hsd.getHeadGameNameCount(); i++) { listg.Add(ElementsAdd(whichTab, i)); } }
         if (whichTab == 10) { for (int i = 0; i < hsd.getHeadCharacterNameCount(); i++) { listg.Add(ElementsAdd(whichTab, i)); } }
         if (whichTab == 11) { for (int i = 0; i < hsd.getHeadPokemonNameCount(); i++) { listg.Add(ElementsAdd(whichTab, i)); } }
         for (int i = 0; i < listg.Count(); i++)
         {
             if (i == 0 || i != 0 && i % 16 == 0) { listg[i].Margin = new Thickness(0, 0, 700, 330); };
             if (i == 1 || i != 0 && i % 16 == 1) { listg[i].Margin = new Thickness(237, 0, 466, 330); };
             if (i == 2 || i != 0 && i % 16 == 2) { listg[i].Margin = new Thickness(471, 0, 232, 330); };
             if (i == 3 || i != 0 && i % 16 == 3) { listg[i].Margin = new Thickness(705, 0, 0, 330); };
             if (i == 4 || i != 0 && i % 16 == 4) { listg[i].Margin = new Thickness(0, 97, 700, 229); };
             if (i == 5 || i != 0 && i % 16 == 5) { listg[i].Margin = new Thickness(237, 97, 466, 229); };
             if (i == 6 || i != 0 && i % 16 == 6) { listg[i].Margin = new Thickness(471, 97, 232, 229); };
             if (i == 7 || i != 0 && i % 16 == 7) { listg[i].Margin = new Thickness(705, 97, 0, 229); };
             if (i == 8 || i != 0 && i % 16 == 8) { listg[i].Margin = new Thickness(0, 198, 700, 131); };
             if (i == 9 || i != 0 && i % 16 == 9) { listg[i].Margin = new Thickness(237, 198, 466, 131); };
             if (i == 10 || i != 0 && i % 16 == 10) { listg[i].Margin = new Thickness(471, 198, 232, 131); };
             if (i == 11 || i != 0 && i % 16 == 11) { listg[i].Margin = new Thickness(705, 198, 0, 131); };
             if (i == 12 || i != 0 && i % 16 == 12) { listg[i].Margin = new Thickness(0, 296, 700, 30); };
             if (i == 13 || i != 0 && i % 16 == 13) { listg[i].Margin = new Thickness(237, 296, 466, 30); };
             if (i == 14 || i != 0 && i % 16 == 14) { listg[i].Margin = new Thickness(471, 296, 232, 30); };
             if (i == 15 || i != 0 && i % 16 == 15) { listg[i].Margin = new Thickness(705, 296, 0, 30); };
         }
     }
     else
     {
         for (int i = 0; i < listg.Count(); i++)
         {
             if (i == 0 || i != 0 && i % 16 == 0) { listg[i].Margin = new Thickness(0, 0, 700, 305); };
             if (i == 1 || i != 0 && i % 16 == 1) { listg[i].Margin = new Thickness(237, 0, 466, 305); };
             if (i == 2 || i != 0 && i % 16 == 2) { listg[i].Margin = new Thickness(471, 0, 232, 305); };
             if (i == 3 || i != 0 && i % 16 == 3) { listg[i].Margin = new Thickness(705, 0, 0, 305); };
             if (i == 4 || i != 0 && i % 16 == 4) { listg[i].Margin = new Thickness(0, 97, 700, 204); };
             if (i == 5 || i != 0 && i % 16 == 5) { listg[i].Margin = new Thickness(237, 97, 466, 204); };
             if (i == 6 || i != 0 && i % 16 == 6) { listg[i].Margin = new Thickness(471, 97, 232, 204); };
             if (i == 7 || i != 0 && i % 16 == 7) { listg[i].Margin = new Thickness(705, 97, 0, 204); };
             if (i == 8 || i != 0 && i % 16 == 8) { listg[i].Margin = new Thickness(0, 198, 700, 106); };
             if (i == 9 || i != 0 && i % 16 == 9) { listg[i].Margin = new Thickness(237, 198, 466, 106); };
             if (i == 10 || i != 0 && i % 16 == 10) { listg[i].Margin = new Thickness(471, 198, 232, 106); };
             if (i == 11 || i != 0 && i % 16 == 11) { listg[i].Margin = new Thickness(705, 198, 0, 106); };
             if (i == 12 || i != 0 && i % 16 == 12) { listg[i].Margin = new Thickness(0, 296, 700, 5); };
             if (i == 13 || i != 0 && i % 16 == 13) { listg[i].Margin = new Thickness(237, 296, 466, 5); };
             if (i == 14 || i != 0 && i % 16 == 14) { listg[i].Margin = new Thickness(471, 296, 232, 5); };
             if (i == 15 || i != 0 && i % 16 == 15) { listg[i].Margin = new Thickness(705, 296, 0, 5); };
         }
     }
     int c = (int)Math.Ceiling((double)listg.Count() / 16);
     for (int i = 0; i < c; i++)
     {
         if (i < c - 1)
         {
             Grid temp = new Grid();
             for (int d = 0; d < 16; d++)
             {
                 temp.Children.Add(listg[i * 16 + d]);
             }
             fvName.Items.Add(temp);
         }
         else
         {
             Grid temp = new Grid();
             for (int d = 0; d < 16 - (c * 16 - listg.Count()); d++)
             {
                 temp.Children.Add(listg[i * 16 + d]);
             }
             fvName.Items.Add(temp);
         }
     }
 }
コード例 #25
0
ファイル: FlipView.cs プロジェクト: gjhwssg/MahApps.Metro
        private static void ExecuteWhenLoaded(FlipView flipview, Action body)
        {
            if (flipview.IsLoaded)
            {
                System.Windows.Threading.Dispatcher.CurrentDispatcher.Invoke(body);
            }
            else
            {
                RoutedEventHandler handler = null;
                handler = (o, a) => {
                    flipview.Loaded -= handler;
                    System.Windows.Threading.Dispatcher.CurrentDispatcher.Invoke(body);
                };

                flipview.Loaded += handler;
            }
        }
コード例 #26
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.FlipViewTest = ((MahApps.Metro.Controls.FlipView)(target));

            #line 62 "..\..\..\Views\MainWindow.xaml"
                this.FlipViewTest.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FlipView_SelectionChanged);

            #line default
            #line hidden
                return;

            case 2:

            #line 89 "..\..\..\Views\MainWindow.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Map_Click);

            #line default
            #line hidden
                return;

            case 3:

            #line 95 "..\..\..\Views\MainWindow.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Stat_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 100 "..\..\..\Views\MainWindow.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.pic_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 105 "..\..\..\Views\MainWindow.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Click);

            #line default
            #line hidden
                return;

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

            #line 118 "..\..\..\Views\MainWindow.xaml"
                this.homeBtn.Click += new System.Windows.RoutedEventHandler(this.HomeBtn_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.ReportFormView = ((MvvmWpfApp.Views.NewReportFormView)(target));
                return;

            case 8:
                this.MapView = ((MvvmWpfApp.MapView)(target));
                return;

            case 9:

            #line 170 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.HomeBtn_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.ChooseExplosionsView = ((MvvmWpfApp.Views.ChooseExplosionsView)(target));
                return;

            case 11:
                this.GraphView = ((MvvmWpfApp.GraphView)(target));
                return;

            case 12:

            #line 194 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.HomeBtn_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 219 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.HomeBtn_Click);

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