A metrofied ProgressBar. ProgressBar
Inheritance: System.Windows.Controls.ProgressBar
Ejemplo n.º 1
0
 private static void ToggleIndeterminate(MetroProgressBar bar, bool oldValue, bool newValue)
 {
     if (bar != null && newValue != oldValue)
     {
         var indeterminateState = bar.GetIndeterminate();
         var containingObject = bar.GetTemplateChild("ContainingGrid") as FrameworkElement;
         if (indeterminateState != null && containingObject != null)
         {
             if (oldValue && indeterminateState.Storyboard != null)
             {
                 // remove the previous storyboard from the Grid #1855
                 indeterminateState.Storyboard.Stop(containingObject);
                 indeterminateState.Storyboard.Remove(containingObject);
             }
             if (newValue)
             {
                 var resetAction = new Action(() => {
                                                  bar.InvalidateMeasure();
                                                  bar.InvalidateArrange();
                                                  bar.ResetStoryboard(bar.ActualWidth, false);
                                              });
                 bar.Dispatcher.BeginInvoke(DispatcherPriority.Background, resetAction);
             }
         }
     }
 }
Ejemplo n.º 2
0
 private void VisibleChangedHandler(object sender, DependencyPropertyChangedEventArgs e)
 {
     if (base.IsIndeterminate)
     {
         MetroProgressBar.ToggleIndeterminate(this, (bool)e.OldValue, (bool)e.NewValue);
     }
 }
Ejemplo n.º 3
0
 private static void ToggleIndeterminate(MetroProgressBar bar, bool oldValue, bool newValue)
 {
     if (bar != null && newValue != oldValue)
     {
         VisualState      indeterminate = bar.GetIndeterminate();
         FrameworkElement templateChild = bar.GetTemplateChild("ContainingGrid") as FrameworkElement;
         if (indeterminate != null && templateChild != null)
         {
             if (oldValue && indeterminate.Storyboard != null)
             {
                 indeterminate.Storyboard.Stop(templateChild);
                 indeterminate.Storyboard.Remove(templateChild);
             }
             if (newValue)
             {
                 Action action = () => {
                     bar.InvalidateMeasure();
                     bar.InvalidateArrange();
                     bar.ResetStoryboard(bar.ActualWidth, false);
                 };
                 bar.Dispatcher.BeginInvoke(DispatcherPriority.Background, action);
             }
         }
     }
 }
        private static void ToggleIndeterminate(MetroProgressBar bar, bool oldValue, bool newValue)
        {
            if (newValue == oldValue)
            {
                return;
            }

            var indeterminateState = bar.GetIndeterminate();
            var containingObject   = bar.GetTemplateChild("ContainingGrid") as FrameworkElement;

            if (indeterminateState != null && containingObject != null)
            {
                var resetAction = new Action(() =>
                {
                    if (oldValue && indeterminateState.Storyboard != null)
                    {
                        // remove the previous storyboard from the Grid #1855
                        indeterminateState.Storyboard.Stop(containingObject);
                        indeterminateState.Storyboard.Remove(containingObject);
                    }

                    if (newValue)
                    {
                        bar.ResetStoryboard(bar.ActualSize(true), false);
                    }
                });
                bar.Invoke(resetAction);
            }
        }
Ejemplo n.º 5
0
        private void SizeChangedHandler(object sender, SizeChangedEventArgs e)
        {
            double           actualWidth = ActualWidth;
            MetroProgressBar bar         = this;

            bar.ResetStoryboard(actualWidth);
        }
Ejemplo n.º 6
0
 private static void ToggleIndeterminate(MetroProgressBar bar, bool oldValue, bool newValue)
 {
     if (bar != null && newValue != oldValue)
     {
         var indeterminateState = bar.GetIndeterminate();
         var containingObject   = bar.GetTemplateChild("ContainingGrid") as FrameworkElement;
         if (indeterminateState != null && containingObject != null)
         {
             if (oldValue && indeterminateState.Storyboard != null)
             {
                 // remove the previous storyboard from the Grid #1855
                 indeterminateState.Storyboard.Stop(containingObject);
                 indeterminateState.Storyboard.Remove(containingObject);
             }
             if (newValue)
             {
                 var resetAction = new Action(() => {
                     bar.InvalidateMeasure();
                     bar.InvalidateArrange();
                     bar.ResetStoryboard(bar.ActualWidth, false);
                 });
                 bar.Dispatcher.BeginInvoke(DispatcherPriority.Background, resetAction);
             }
         }
     }
 }
Ejemplo n.º 7
0
 private static void ToggleIndeterminate(MetroProgressBar bar, bool oldValue, bool newValue)
 {
     if (newValue == oldValue)
     {
         return;
     }
     var indeterminateState = bar.GetIndeterminate();
     var containingObject = bar.GetTemplateChild("ContainingGrid") as FrameworkElement;
     if (indeterminateState != null && containingObject != null)
     {
         var resetAction = new Action(() =>
             {
                 if (oldValue && indeterminateState.Storyboard != null)
                 {
                     // remove the previous storyboard from the Grid #1855
                     indeterminateState.Storyboard.Stop(containingObject);
                     indeterminateState.Storyboard.Remove(containingObject);
                 }
                 if (newValue)
                 {
                     bar.ResetStoryboard(bar.ActualSize(true), false);
                 }
             });
         bar.Invoke(resetAction);
     }
 }
Ejemplo n.º 8
0
 public GUIAnimator(GFXContainer gfx, LevelSet lvl, TimingSource.Sources timingSrc, MetroProgressBar pgJumpRes)
 {
     this.Gfx = gfx;
     this.Lvl = lvl;
     this.pgJumpRes = pgJumpRes;
     IsActive = true;
     SetTimingSource(timingSrc);
 }
Ejemplo n.º 9
0
        private void SizeChangedHandler(object sender, SizeChangedEventArgs e)
        {
            double           actualWidth      = base.ActualWidth;
            MetroProgressBar metroProgressBar = this;

            if (base.Visibility == System.Windows.Visibility.Visible && base.IsIndeterminate)
            {
                metroProgressBar.ResetStoryboard(actualWidth, true);
            }
        }
Ejemplo n.º 10
0
        private void SizeChangedHandler(object sender, SizeChangedEventArgs e)
        {
            double           actualWidth = ActualWidth;
            MetroProgressBar bar         = this;

            if (this.Visibility == System.Windows.Visibility.Visible)
            {
                bar.ResetStoryboard(actualWidth);
            }
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.bar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 2:
                this.progressLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.titleLabel = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 12
0
 private static void ToggleIndeterminate(MetroProgressBar bar, bool oldValue, bool newValue)
 {
     if (bar != null && newValue != oldValue)
     {
         var indeterminateState = bar.GetIndeterminate();
         var containingObject   = bar.GetTemplateChild("ContainingGrid") as FrameworkElement;
         if (indeterminateState != null && containingObject != null)
         {
             if (oldValue && indeterminateState.Storyboard != null)
             {
                 // remove the previous storyboard from the Grid #1855
                 indeterminateState.Storyboard.Stop(containingObject);
                 indeterminateState.Storyboard.Remove(containingObject);
             }
             if (newValue)
             {
                 bar.ResetStoryboard(bar.ActualWidth, false);
             }
         }
     }
 }
Ejemplo n.º 13
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.serverPeopleTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

            case 4:
                this.serverLoadingBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControl = ((Orange.ConvertingProgress)(target));
                return;

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

            case 3:
                this.ConvertProgressBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

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

            #line 17 "..\..\..\..\Main\DialogUserControls\ConvertingProgress.xaml"
                this.state_rate.Unloaded += new System.Windows.RoutedEventHandler(this.state_rate_Unloaded);

            #line default
            #line hidden
                return;

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

            #line 18 "..\..\..\..\Main\DialogUserControls\ConvertingProgress.xaml"
                this.confirmBtn.Click += new System.Windows.RoutedEventHandler(this.confirmBtn_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 15
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\..\MainWindow.xaml"
                ((MahApps.Metro.Controls.ToggleSwitch)(target)).Toggled += new System.Windows.RoutedEventHandler(this.ToggleSwitch_Toggled1);

            #line default
            #line hidden
                return;

            case 2:

            #line 13 "..\..\..\MainWindow.xaml"
                ((MahApps.Metro.Controls.ToggleSwitch)(target)).Toggled += new System.Windows.RoutedEventHandler(this.ToggleSwitch_Toggled);

            #line default
            #line hidden
                return;

            case 3:
                this.Label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.ProgressBar1 = ((MahApps.Metro.Controls.MetroProgressBar)(target));

            #line 17 "..\..\..\MainWindow.xaml"
                this.ProgressBar1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.MetroProgressBar_ValueChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 16
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DandDwindow = ((DandD.MainWindow)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.DandDwindow.KeyDown += new System.Windows.Input.KeyEventHandler(this.KeyDownHandler);

            #line default
            #line hidden

            #line 22 "..\..\MainWindow.xaml"
                this.DandDwindow.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.handleMouseWheel);

            #line default
            #line hidden
                return;

            case 2:

            #line 24 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.TabControl)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TabChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.inc = ((System.Windows.Controls.TabItem)(target));
                return;

            case 4:
                this.introl_label1 = ((System.Windows.Controls.Label)(target));
                return;

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

            case 6:
                this.intro_label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.newName = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 41 "..\..\MainWindow.xaml"
                this.setName.Click += new System.Windows.RoutedEventHandler(this.nameChosen);

            #line default
            #line hidden
                return;

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

            #line 43 "..\..\MainWindow.xaml"
                this.man.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.man_chosen);

            #line default
            #line hidden
                return;

            case 10:
                this.man2 = ((System.Windows.Controls.Image)(target));

            #line 44 "..\..\MainWindow.xaml"
                this.man2.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.man2_chosen);

            #line default
            #line hidden
                return;

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

            #line 45 "..\..\MainWindow.xaml"
                this.bear.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.bear_chosen);

            #line default
            #line hidden
                return;

            case 12:
                this.story = ((System.Windows.Controls.TabItem)(target));
                return;

            case 13:
                this.storyText = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

            #line default
            #line hidden
                return;

            case 15:
                this.stats = ((System.Windows.Controls.TabItem)(target));
                return;

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

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

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

            #line 94 "..\..\MainWindow.xaml"
                this.hpPlus.Click += new System.Windows.RoutedEventHandler(this.hpAdd);

            #line default
            #line hidden
                return;

            case 19:
                this.hpMinus = ((System.Windows.Controls.Button)(target));

            #line 95 "..\..\MainWindow.xaml"
                this.hpMinus.Click += new System.Windows.RoutedEventHandler(this.hpSub);

            #line default
            #line hidden
                return;

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

            case 21:
                this.critPlus = ((System.Windows.Controls.Button)(target));

            #line 101 "..\..\MainWindow.xaml"
                this.critPlus.Click += new System.Windows.RoutedEventHandler(this.critAdd);

            #line default
            #line hidden
                return;

            case 22:
                this.critMinus = ((System.Windows.Controls.Button)(target));

            #line 102 "..\..\MainWindow.xaml"
                this.critMinus.Click += new System.Windows.RoutedEventHandler(this.critSub);

            #line default
            #line hidden
                return;

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

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

            #line 108 "..\..\MainWindow.xaml"
                this.strenghtPlus.Click += new System.Windows.RoutedEventHandler(this.strenghtAdd);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 26:
                this.closeIc = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 27:
                this.shieldIc = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 28:
                this.rangedIc = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 29:
                this.fight = ((System.Windows.Controls.TabItem)(target));
                return;

            case 30:
                this.bars = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 31:
                this.en_hp = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 32:
                this.hp_b = ((System.Windows.Controls.Border)(target));
                return;

            case 33:
                this.hp = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 34:
                this.endurance = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 35:
                this.mana = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 36:
                this.fight_area = ((System.Windows.Controls.Grid)(target));

            #line 191 "..\..\MainWindow.xaml"
                this.fight_area.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.MouseButtonDown);

            #line default
            #line hidden

            #line 192 "..\..\MainWindow.xaml"
                this.fight_area.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.MouseButtonUp);

            #line default
            #line hidden

            #line 193 "..\..\MainWindow.xaml"
                this.fight_area.MouseMove += new System.Windows.Input.MouseEventHandler(this.MouseMoveHandler);

            #line default
            #line hidden

            #line 194 "..\..\MainWindow.xaml"
                this.fight_area.MouseEnter += new System.Windows.Input.MouseEventHandler(this.enterEv);

            #line default
            #line hidden

            #line 195 "..\..\MainWindow.xaml"
                this.fight_area.MouseLeave += new System.Windows.Input.MouseEventHandler(this.leaveEv);

            #line default
            #line hidden
                return;

            case 37:
                this.plWpnMirror = ((System.Windows.Media.ImageBrush)(target));
                return;

            case 38:
                this.fight_canvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 39:
                this.enemyControl = ((System.Windows.Controls.Image)(target));
                return;

            case 40:
                this.enTakenDmg = ((System.Windows.Controls.Image)(target));
                return;

            case 41:
                this.playerControl = ((System.Windows.Controls.Image)(target));
                return;

            case 42:
                this.plTakenDmg = ((System.Windows.Controls.Image)(target));
                return;

            case 43:
                this.playerWeapon = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 44:
                this.plWpImg = ((System.Windows.Media.ImageBrush)(target));
                return;

            case 45:
                this.hitBox = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 46:
                this.consumptionBox = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 47:
                this.textureBrush = ((System.Windows.Media.ImageBrush)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 17
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\Apps\MainControl.xaml"
                ((C3D_2016_Anno.Apps.MainControl)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.groupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

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

            #line 26 "..\..\..\Apps\MainControl.xaml"
                this.cBox_Mapper.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cBox_Mapper_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 36 "..\..\..\Apps\MainControl.xaml"
                this.btn_open_mapperFile.Click += new System.Windows.RoutedEventHandler(this.btn_open_mapperFile_Click);

            #line default
            #line hidden
                return;

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

            #line 46 "..\..\..\Apps\MainControl.xaml"
                this.btn_fetchSelectedmapperFiles.Click += new System.Windows.RoutedEventHandler(this.btn_fetchSelectedmapperFiles_Click);

            #line default
            #line hidden
                return;

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

            #line 56 "..\..\..\Apps\MainControl.xaml"
                this.btn_browse_mapperFile.Click += new System.Windows.RoutedEventHandler(this.btn_browse_mapperFile_Click);

            #line default
            #line hidden
                return;

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

            #line 66 "..\..\..\Apps\MainControl.xaml"
                this.btn_browse_mapperFile_Copy.Click += new System.Windows.RoutedEventHandler(this.btn_fetchmapperFiles_Click);

            #line default
            #line hidden
                return;

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

            #line 76 "..\..\..\Apps\MainControl.xaml"
                this.cBox_template.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cBox_template_SelectionChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.btn_open_templateFile = ((System.Windows.Controls.Button)(target));

            #line 86 "..\..\..\Apps\MainControl.xaml"
                this.btn_open_templateFile.Click += new System.Windows.RoutedEventHandler(this.btn_open_templateFile_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.btn_fetchSelectedtamplateFile = ((System.Windows.Controls.Button)(target));

            #line 96 "..\..\..\Apps\MainControl.xaml"
                this.btn_fetchSelectedtamplateFile.Click += new System.Windows.RoutedEventHandler(this.btn_fetchSelectedtamplateFile_Click);

            #line default
            #line hidden
                return;

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

            #line 106 "..\..\..\Apps\MainControl.xaml"
                this.btn_browse_templateFile.Click += new System.Windows.RoutedEventHandler(this.btn_browse_templateFile_Click);

            #line default
            #line hidden
                return;

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

            #line 116 "..\..\..\Apps\MainControl.xaml"
                this.btn_browse_templateFile_Copy.Click += new System.Windows.RoutedEventHandler(this.btn_fetchtamplateFile_Click);

            #line default
            #line hidden
                return;

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

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

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

            #line 131 "..\..\..\Apps\MainControl.xaml"
                this.btn_selectLabels.Click += new System.Windows.RoutedEventHandler(this.btn_selectLabels_Click);

            #line default
            #line hidden
                return;

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

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

            #line 142 "..\..\..\Apps\MainControl.xaml"
                this.btn_selectViewport.Click += new System.Windows.RoutedEventHandler(this.btn_selectViewport_Click);

            #line default
            #line hidden
                return;

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

            case 19:
                this.proBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

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

            case 21:
                this.tBox_Heading = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:
                this.btn_HeadingBold = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 163 "..\..\..\Apps\MainControl.xaml"
                this.btn_HeadingBold.Click += new System.Windows.RoutedEventHandler(this.btn_fetchmapperFiles_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.btn_HeadingUnderline = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 164 "..\..\..\Apps\MainControl.xaml"
                this.btn_HeadingUnderline.Click += new System.Windows.RoutedEventHandler(this.btn_fetchmapperFiles_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.tBox_textHeight = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 166 "..\..\..\Apps\MainControl.xaml"
                this.btn_CreateKeyNote.Click += new System.Windows.RoutedEventHandler(this.btn_CreateKeyNote_Click);

            #line default
            #line hidden
                return;

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

            case 27:
                this.cBox_objectType = ((System.Windows.Controls.ComboBox)(target));

            #line 169 "..\..\..\Apps\MainControl.xaml"
                this.cBox_objectType.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cBox_objectType_SelectionChanged);

            #line default
            #line hidden
                return;

            case 28:
                this.tabControl = ((System.Windows.Controls.TabControl)(target));
                return;

            case 29:
                this.lBox_CurrentNotes = ((System.Windows.Controls.ListView)(target));
                return;

            case 30:

            #line 178 "..\..\..\Apps\MainControl.xaml"
                ((System.Windows.Controls.GridViewColumnHeader)(target)).Click += new System.Windows.RoutedEventHandler(this.notelistColumnHeader_Click);

            #line default
            #line hidden
                return;

            case 31:

            #line 183 "..\..\..\Apps\MainControl.xaml"
                ((System.Windows.Controls.GridViewColumnHeader)(target)).Click += new System.Windows.RoutedEventHandler(this.notelistColumnHeader_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.lBox_missingNotes = ((System.Windows.Controls.ListView)(target));
                return;

            case 33:

            #line 198 "..\..\..\Apps\MainControl.xaml"
                ((System.Windows.Controls.GridViewColumnHeader)(target)).Click += new System.Windows.RoutedEventHandler(this.notelistColumnHeader_Click);

            #line default
            #line hidden
                return;

            case 34:

            #line 203 "..\..\..\Apps\MainControl.xaml"
                ((System.Windows.Controls.GridViewColumnHeader)(target)).Click += new System.Windows.RoutedEventHandler(this.notelistColumnHeader_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.groupBox4 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 36:
                this.lBox_labels = ((System.Windows.Controls.ListView)(target));

            #line 216 "..\..\..\Apps\MainControl.xaml"
                this.lBox_labels.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lBox_labels_SelectionChanged);

            #line default
            #line hidden
                return;

            case 37:

            #line 219 "..\..\..\Apps\MainControl.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.lBox_labels_zoomto_Click);

            #line default
            #line hidden
                return;

            case 38:

            #line 220 "..\..\..\Apps\MainControl.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.lBox_labels_select_Click);

            #line default
            #line hidden
                return;

            case 39:

            #line 227 "..\..\..\Apps\MainControl.xaml"
                ((System.Windows.Controls.GridViewColumnHeader)(target)).Click += new System.Windows.RoutedEventHandler(this.labellistColumnHeader_Click);

            #line default
            #line hidden
                return;

            case 40:

            #line 232 "..\..\..\Apps\MainControl.xaml"
                ((System.Windows.Controls.GridViewColumnHeader)(target)).Click += new System.Windows.RoutedEventHandler(this.labellistColumnHeader_Click);

            #line default
            #line hidden
                return;

            case 41:

            #line 237 "..\..\..\Apps\MainControl.xaml"
                ((System.Windows.Controls.GridViewColumnHeader)(target)).Click += new System.Windows.RoutedEventHandler(this.labellistColumnHeader_Click);

            #line default
            #line hidden
                return;

            case 42:
                this.btn_openXMLMan = ((System.Windows.Controls.Button)(target));

            #line 247 "..\..\..\Apps\MainControl.xaml"
                this.btn_openXMLMan.Click += new System.Windows.RoutedEventHandler(this.btn_openXMLMan_Click);

            #line default
            #line hidden
                return;

            case 43:
                this.loginUserControl = ((VirtuaLicense.LoginControl)(target));
                return;

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

            #line 249 "..\..\..\Apps\MainControl.xaml"
                this.BtnLogOut.Click += new System.Windows.RoutedEventHandler(this.BtnLogOut_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 18
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.PART_NegativeButton = ((System.Windows.Controls.Button)(target));
     return;
     case 2:
     this.PART_ProgressBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.horizSlider = ((System.Windows.Controls.Slider)(target));
     return;
     case 2:
     this.RangeSlider = ((MahApps.Metro.Controls.RangeSlider)(target));
     
     #line 94 "..\..\..\..\ExampleViews\SliderProgressExamples.xaml"
     this.RangeSlider.LowerValueChanged += new MahApps.Metro.Controls.RangeParameterChangedEventHandler(this.RangeSlider_OnLowerValueChanged);
     
     #line default
     #line hidden
     
     #line 95 "..\..\..\..\ExampleViews\SliderProgressExamples.xaml"
     this.RangeSlider.UpperValueChanged += new MahApps.Metro.Controls.RangeParameterChangedEventHandler(this.RangeSlider_OnUpperValueChanged);
     
     #line default
     #line hidden
     
     #line 96 "..\..\..\..\ExampleViews\SliderProgressExamples.xaml"
     this.RangeSlider.CentralThumbDragStarted += new System.Windows.Controls.Primitives.DragStartedEventHandler(this.RangeSlider_OnCentralThumbDragStarted);
     
     #line default
     #line hidden
     
     #line 97 "..\..\..\..\ExampleViews\SliderProgressExamples.xaml"
     this.RangeSlider.CentralThumbDragCompleted += new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.RangeSlider_OnCentralThumbDragCompleted);
     
     #line default
     #line hidden
     return;
     case 3:
     this.RangeSlider1 = ((MahApps.Metro.Controls.RangeSlider)(target));
     
     #line 119 "..\..\..\..\ExampleViews\SliderProgressExamples.xaml"
     this.RangeSlider1.LowerValueChanged += new MahApps.Metro.Controls.RangeParameterChangedEventHandler(this.RangeSlider_OnLowerValueChanged);
     
     #line default
     #line hidden
     
     #line 120 "..\..\..\..\ExampleViews\SliderProgressExamples.xaml"
     this.RangeSlider1.UpperValueChanged += new MahApps.Metro.Controls.RangeParameterChangedEventHandler(this.RangeSlider_OnUpperValueChanged);
     
     #line default
     #line hidden
     
     #line 121 "..\..\..\..\ExampleViews\SliderProgressExamples.xaml"
     this.RangeSlider1.CentralThumbDragStarted += new System.Windows.Controls.Primitives.DragStartedEventHandler(this.RangeSlider_OnCentralThumbDragStarted);
     
     #line default
     #line hidden
     
     #line 122 "..\..\..\..\ExampleViews\SliderProgressExamples.xaml"
     this.RangeSlider1.CentralThumbDragCompleted += new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.RangeSlider_OnCentralThumbDragCompleted);
     
     #line default
     #line hidden
     
     #line 123 "..\..\..\..\ExampleViews\SliderProgressExamples.xaml"
     this.RangeSlider1.LowerThumbDragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.RangeSlider_OnLowerThumbDragDelta);
     
     #line default
     #line hidden
     
     #line 124 "..\..\..\..\ExampleViews\SliderProgressExamples.xaml"
     this.RangeSlider1.UpperThumbDragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.RangeSlider_OnUpperThumbDragDelta);
     
     #line default
     #line hidden
     
     #line 125 "..\..\..\..\ExampleViews\SliderProgressExamples.xaml"
     this.RangeSlider1.CentralThumbDragDelta += new System.Windows.Controls.Primitives.DragDeltaEventHandler(this.RangeSlider_OnCentralThumbDragDelta);
     
     #line default
     #line hidden
     
     #line 126 "..\..\..\..\ExampleViews\SliderProgressExamples.xaml"
     this.RangeSlider1.LowerThumbDragStarted += new System.Windows.Controls.Primitives.DragStartedEventHandler(this.RangeSlider_OnLowerThumbDragStarted);
     
     #line default
     #line hidden
     
     #line 127 "..\..\..\..\ExampleViews\SliderProgressExamples.xaml"
     this.RangeSlider1.LowerThumbDragCompleted += new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.RangeSlider_OnLowerThumbDragCompleted);
     
     #line default
     #line hidden
     
     #line 128 "..\..\..\..\ExampleViews\SliderProgressExamples.xaml"
     this.RangeSlider1.UpperThumbDragStarted += new System.Windows.Controls.Primitives.DragStartedEventHandler(this.RangeSlider_OnUpperThumbDragStarted);
     
     #line default
     #line hidden
     
     #line 129 "..\..\..\..\ExampleViews\SliderProgressExamples.xaml"
     this.RangeSlider1.UpperThumbDragCompleted += new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.RangeSlider_OnUpperThumbDragCompleted);
     
     #line default
     #line hidden
     return;
     case 4:
     this.RangeSlider2 = ((MahApps.Metro.Controls.RangeSlider)(target));
     return;
     case 5:
     this.IsIndeterminatePB = ((MahApps.Metro.Controls.MetroProgressBar)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 20
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\..\Views\RegisterWindow.xaml"
                ((Breeze.Views.RegisterWindow)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

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

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

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

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

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

            case 7:
                this.LoginTextbox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.PasswordTextbox = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 9:
                this.PasswordTextboxAgain = ((System.Windows.Controls.PasswordBox)(target));
                return;

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

            case 11:
                this.SurnameTextbox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.ProfileImage = ((System.Windows.Media.ImageBrush)(target));
                return;

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

            #line 55 "..\..\..\Views\RegisterWindow.xaml"
                this.ImageChoose.Click += new System.Windows.RoutedEventHandler(this.ImageChoose_Click);

            #line default
            #line hidden
                return;

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

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

            #line 70 "..\..\..\Views\RegisterWindow.xaml"
                this.Cancel.Click += new System.Windows.RoutedEventHandler(this.Cancel_Click);

            #line default
            #line hidden
                return;

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

            #line 71 "..\..\..\Views\RegisterWindow.xaml"
                this.Registration.Click += new System.Windows.RoutedEventHandler(this.Registration_Click);

            #line default
            #line hidden
                return;

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

            case 18:
                this.ProgressBarMain = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 21
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 18 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Grid_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.groupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

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

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

            #line 26 "..\..\MainWindow.xaml"
                this.btnTestConnect.Click += new System.Windows.RoutedEventHandler(this.btnTestConnect_Click);

            #line default
            #line hidden
                return;

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

            case 6:
                this.label_UserName = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.label_PassWord = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.label_DataBase = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 11:
                this.textBox_PassWord = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 12:
                this.textBox_DataBase = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 14:
                this.label_FtpUserName = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.label_FtpPassWord = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.textBox_FtpIP = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 18:
                this.textBox_FtpPassWord = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 19:
                this.btnOneKeyRestore = ((System.Windows.Controls.Button)(target));

            #line 41 "..\..\MainWindow.xaml"
                this.btnOneKeyRestore.Click += new System.Windows.RoutedEventHandler(this.btnOneKeyRestore_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.textBox_Sql = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

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

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

            #line 46 "..\..\MainWindow.xaml"
                this.btnExcute_Sql.Click += new System.Windows.RoutedEventHandler(this.btnExcute_Sql_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.panels = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 26:
                this.menus = ((System.Windows.Controls.Menu)(target));
                return;

            case 27:

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

            #line default
            #line hidden
                return;

            case 28:

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

            #line default
            #line hidden
                return;

            case 29:
                this.label_DataBase_EndTime = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.DateTimePicker_EndTime = ((MahApps.Metro.Controls.DateTimePicker)(target));
                return;

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

            case 32:
                this.ProgressBar_Bak = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 33:
                this.label_Bak = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 14 "..\..\..\..\Views\DownloadView.xaml"
     ((MetroDemo.ExampleViews.DownloadView)(target)).Loaded += new System.Windows.RoutedEventHandler(this.DownloadView_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.Product = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.MainTabControl = ((MahApps.Metro.Controls.MetroAnimatedSingleRowTabControl)(target));
     
     #line 46 "..\..\..\..\Views\DownloadView.xaml"
     this.MainTabControl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.MainTabControl_OnSelectionChanged);
     
     #line default
     #line hidden
     return;
     case 4:
     this.OptionalTab = ((System.Windows.Controls.TabItem)(target));
     return;
     case 5:
     this.DownloadProgressBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
     return;
     case 6:
     this.ProductUpdateSource = ((System.Windows.Controls.TextBox)(target));
     
     #line 85 "..\..\..\..\Views\DownloadView.xaml"
     this.ProductUpdateSource.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.BuildFilePath_OnTextChanged);
     
     #line default
     #line hidden
     return;
     case 7:
     this.UpdatePath = ((System.Windows.Controls.Button)(target));
     
     #line 91 "..\..\..\..\Views\DownloadView.xaml"
     this.UpdatePath.Click += new System.Windows.RoutedEventHandler(this.UpdatePath_OnClick);
     
     #line default
     #line hidden
     return;
     case 8:
     this.OpenFolderButton = ((System.Windows.Controls.Button)(target));
     
     #line 93 "..\..\..\..\Views\DownloadView.xaml"
     this.OpenFolderButton.Click += new System.Windows.RoutedEventHandler(this.OpenFolderButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 9:
     this.DownloadPercent = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.Download32Bit = ((System.Windows.Controls.CheckBox)(target));
     
     #line 116 "..\..\..\..\Views\DownloadView.xaml"
     this.Download32Bit.Checked += new System.Windows.RoutedEventHandler(this.ToggleButton_OnChecked);
     
     #line default
     #line hidden
     
     #line 116 "..\..\..\..\Views\DownloadView.xaml"
     this.Download32Bit.Unchecked += new System.Windows.RoutedEventHandler(this.ToggleButton_OnChecked);
     
     #line default
     #line hidden
     return;
     case 11:
     this.Download64Bit = ((System.Windows.Controls.CheckBox)(target));
     
     #line 118 "..\..\..\..\Views\DownloadView.xaml"
     this.Download64Bit.Checked += new System.Windows.RoutedEventHandler(this.ToggleButton_OnChecked);
     
     #line default
     #line hidden
     
     #line 118 "..\..\..\..\Views\DownloadView.xaml"
     this.Download64Bit.Unchecked += new System.Windows.RoutedEventHandler(this.ToggleButton_OnChecked);
     
     #line default
     #line hidden
     return;
     case 12:
     this.lvUsers = ((System.Windows.Controls.ListView)(target));
     return;
     case 14:
     this.DownloadButton = ((System.Windows.Controls.Button)(target));
     
     #line 188 "..\..\..\..\Views\DownloadView.xaml"
     this.DownloadButton.Click += new System.Windows.RoutedEventHandler(this.DownloadButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 15:
     this.AdvDownloadButton = ((System.Windows.Controls.Button)(target));
     
     #line 190 "..\..\..\..\Views\DownloadView.xaml"
     this.AdvDownloadButton.Click += new System.Windows.RoutedEventHandler(this.AdvDownloadButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 16:
     this.PreviousButton = ((System.Windows.Controls.Button)(target));
     
     #line 214 "..\..\..\..\Views\DownloadView.xaml"
     this.PreviousButton.Click += new System.Windows.RoutedEventHandler(this.PreviousButton_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.NextButton = ((System.Windows.Controls.Button)(target));
     
     #line 215 "..\..\..\..\Views\DownloadView.xaml"
     this.NextButton.Click += new System.Windows.RoutedEventHandler(this.NextButton_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 23
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 14 "..\..\..\..\Views\DownloadView.xaml"
                ((MetroDemo.ExampleViews.DownloadView)(target)).Loaded += new System.Windows.RoutedEventHandler(this.DownloadView_Loaded);

            #line default
            #line hidden
                return;

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

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

            #line 46 "..\..\..\..\Views\DownloadView.xaml"
                this.MainTabControl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.MainTabControl_OnSelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.OptionalTab = ((System.Windows.Controls.TabItem)(target));
                return;

            case 5:
                this.DownloadProgressBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 6:
                this.ProductUpdateSource = ((System.Windows.Controls.TextBox)(target));

            #line 85 "..\..\..\..\Views\DownloadView.xaml"
                this.ProductUpdateSource.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.BuildFilePath_OnTextChanged);

            #line default
            #line hidden
                return;

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

            #line 91 "..\..\..\..\Views\DownloadView.xaml"
                this.UpdatePath.Click += new System.Windows.RoutedEventHandler(this.UpdatePath_OnClick);

            #line default
            #line hidden
                return;

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

            #line 93 "..\..\..\..\Views\DownloadView.xaml"
                this.OpenFolderButton.Click += new System.Windows.RoutedEventHandler(this.OpenFolderButton_OnClick);

            #line default
            #line hidden
                return;

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

            case 10:
                this.Download32Bit = ((System.Windows.Controls.CheckBox)(target));

            #line 116 "..\..\..\..\Views\DownloadView.xaml"
                this.Download32Bit.Checked += new System.Windows.RoutedEventHandler(this.ToggleButton_OnChecked);

            #line default
            #line hidden

            #line 116 "..\..\..\..\Views\DownloadView.xaml"
                this.Download32Bit.Unchecked += new System.Windows.RoutedEventHandler(this.ToggleButton_OnChecked);

            #line default
            #line hidden
                return;

            case 11:
                this.Download64Bit = ((System.Windows.Controls.CheckBox)(target));

            #line 118 "..\..\..\..\Views\DownloadView.xaml"
                this.Download64Bit.Checked += new System.Windows.RoutedEventHandler(this.ToggleButton_OnChecked);

            #line default
            #line hidden

            #line 118 "..\..\..\..\Views\DownloadView.xaml"
                this.Download64Bit.Unchecked += new System.Windows.RoutedEventHandler(this.ToggleButton_OnChecked);

            #line default
            #line hidden
                return;

            case 12:
                this.lvUsers = ((System.Windows.Controls.ListView)(target));
                return;

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

            #line 188 "..\..\..\..\Views\DownloadView.xaml"
                this.DownloadButton.Click += new System.Windows.RoutedEventHandler(this.DownloadButton_OnClick);

            #line default
            #line hidden
                return;

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

            #line 190 "..\..\..\..\Views\DownloadView.xaml"
                this.AdvDownloadButton.Click += new System.Windows.RoutedEventHandler(this.AdvDownloadButton_OnClick);

            #line default
            #line hidden
                return;

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

            #line 214 "..\..\..\..\Views\DownloadView.xaml"
                this.PreviousButton.Click += new System.Windows.RoutedEventHandler(this.PreviousButton_Click);

            #line default
            #line hidden
                return;

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

            #line 215 "..\..\..\..\Views\DownloadView.xaml"
                this.NextButton.Click += new System.Windows.RoutedEventHandler(this.NextButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 24
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

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

            #line 13 "..\..\MainWindow.xaml"
                this.S2tted.Click += new System.Windows.RoutedEventHandler(this.S2tted_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.MinaP1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 4:
                this.MinaP2 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 5:
                this.MinaP3 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 6:
                this.KalorP1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 7:
                this.KalorP2 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 8:
                this.PeamenyyP1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 9:
                this.PeamenyyP2 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 10:
                this.AktiivsusP1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 11:
                this.AktiivsusP2 = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

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

            #line 45 "..\..\MainWindow.xaml"
                this.kaloriKalk.Click += new System.Windows.RoutedEventHandler(this.KaloriKalk_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.Veem66dik = ((MahApps.Metro.Controls.Tile)(target));

            #line 48 "..\..\MainWindow.xaml"
                this.Veem66dik.Click += new System.Windows.RoutedEventHandler(this.Veem66dik_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.Monitooring = ((MahApps.Metro.Controls.Tile)(target));

            #line 51 "..\..\MainWindow.xaml"
                this.Monitooring.Click += new System.Windows.RoutedEventHandler(this.Monitooring_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.Aktiivsus = ((MahApps.Metro.Controls.Tile)(target));

            #line 54 "..\..\MainWindow.xaml"
                this.Aktiivsus.Click += new System.Windows.RoutedEventHandler(this.Aktiivsus_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.Mina = ((MahApps.Metro.Controls.Tile)(target));

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

            #line default
            #line hidden
                return;

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

            case 19:
                this.lblTime = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.Kalender = ((System.Windows.Controls.Calendar)(target));
                return;

            case 21:
                this.faktiKast = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:
                this.Kalorikalkulaator = ((System.Windows.Controls.Grid)(target));
                return;

            case 23:
                this.toidulist = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 24:
                this.kogusKast = ((MahApps.Metro.Controls.NumericUpDown)(target));
                return;

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

            #line 90 "..\..\MainWindow.xaml"
                this.arvutaToit.Click += new System.Windows.RoutedEventHandler(this.ArvutaToit_Click);

            #line default
            #line hidden
                return;

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

            #line 93 "..\..\MainWindow.xaml"
                this.toidukastPuhtaks.Click += new System.Windows.RoutedEventHandler(this.ToidukastPuhtaks_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 28:
                this.toitKaal = ((System.Windows.Controls.TextBox)(target));
                return;

            case 29:
                this.kaloridKokku = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.toidurida = ((System.Windows.Controls.TextBox)(target));
                return;

            case 31:

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

            #line default
            #line hidden
                return;

            case 32:
                this.Veemoodik = ((System.Windows.Controls.Grid)(target));
                return;

            case 33:
                this.veeMeeter = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 34:
                this.kehaKaalkast = ((System.Windows.Controls.TextBox)(target));
                return;

            case 35:
                this.soovKogus = ((System.Windows.Controls.TextBox)(target));
                return;

            case 36:
                this.hetkeneKogus = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 38:
                this.veeProtsent = ((System.Windows.Controls.TextBox)(target));
                return;

            case 39:
                this.tyhjendaVesi = ((System.Windows.Controls.Button)(target));

            #line 153 "..\..\MainWindow.xaml"
                this.tyhjendaVesi.Click += new System.Windows.RoutedEventHandler(this.TyhjendaVesi_Click);

            #line default
            #line hidden
                return;

            case 40:
                this.lisaVesi = ((System.Windows.Controls.Button)(target));

            #line 156 "..\..\MainWindow.xaml"
                this.lisaVesi.Click += new System.Windows.RoutedEventHandler(this.LisaVesi_Click);

            #line default
            #line hidden
                return;

            case 41:
                this.vesiAlarm = ((System.Windows.Controls.Button)(target));

            #line 159 "..\..\MainWindow.xaml"
                this.vesiAlarm.Click += new System.Windows.RoutedEventHandler(this.VesiAlarm_Click);

            #line default
            #line hidden
                return;

            case 42:

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

            #line default
            #line hidden
                return;

            case 43:
                this.Monitor = ((System.Windows.Controls.Grid)(target));
                return;

            case 44:
                this.monitorvasakPaneel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 45:
                this.pckasutusTB = ((System.Windows.Controls.TextBox)(target));
                return;

            case 46:
                this.pausiPikkusTB = ((System.Windows.Controls.TextBox)(target));
                return;

            case 47:
                this.arvutikasutTB = ((System.Windows.Controls.TextBox)(target));
                return;

            case 48:
                this.monitorSeaded = ((System.Windows.Controls.Button)(target));

            #line 214 "..\..\MainWindow.xaml"
                this.monitorSeaded.Click += new System.Windows.RoutedEventHandler(this.MonitorSeaded_Click);

            #line default
            #line hidden
                return;

            case 49:
                this.monitorTyhjenda = ((System.Windows.Controls.Button)(target));

            #line 217 "..\..\MainWindow.xaml"
                this.monitorTyhjenda.Click += new System.Windows.RoutedEventHandler(this.MonitorTyhjenda_Click);

            #line default
            #line hidden
                return;

            case 50:
                this.monitorReminder = ((System.Windows.Controls.Button)(target));

            #line 220 "..\..\MainWindow.xaml"
                this.monitorReminder.Click += new System.Windows.RoutedEventHandler(this.MonitorReminder_Click);

            #line default
            #line hidden
                return;

            case 51:
                this.monitorLukusPaneel = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            case 53:
                this.tabalukk = ((System.Windows.Controls.Image)(target));
                return;

            case 54:
                this.bbut = ((System.Windows.Controls.Button)(target));

            #line 247 "..\..\MainWindow.xaml"
                this.bbut.Click += new System.Windows.RoutedEventHandler(this.BackButton_Click);

            #line default
            #line hidden
                return;

            case 55:
                this.AktiivsusP = ((System.Windows.Controls.Grid)(target));
                return;

            case 56:
                this.tegevusList = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 57:
                this.intensiivsusList = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 58:
                this.tegevusKestus = ((MahApps.Metro.Controls.NumericUpDown)(target));
                return;

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

            #line 273 "..\..\MainWindow.xaml"
                this.tegevusLisa.Click += new System.Windows.RoutedEventHandler(this.tegevusLisa_Click);

            #line default
            #line hidden
                return;

            case 60:
                this.aktList = ((System.Windows.Controls.TextBox)(target));
                return;

            case 61:
                this.kestusKokkuLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 62:
                this.aktClear = ((System.Windows.Controls.Button)(target));

            #line 287 "..\..\MainWindow.xaml"
                this.aktClear.Click += new System.Windows.RoutedEventHandler(this.aktClear_Click);

            #line default
            #line hidden
                return;

            case 63:
                this.aktRemind = ((System.Windows.Controls.Button)(target));

            #line 291 "..\..\MainWindow.xaml"
                this.aktRemind.Click += new System.Windows.RoutedEventHandler(this.aktRemind_Click);

            #line default
            #line hidden
                return;

            case 64:

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

            #line default
            #line hidden
                return;

            case 65:
                this.MinaP = ((System.Windows.Controls.Grid)(target));
                return;

            case 66:
                this.getLog = ((System.Windows.Controls.Button)(target));

            #line 333 "..\..\MainWindow.xaml"
                this.getLog.Click += new System.Windows.RoutedEventHandler(this.getLog_Click);

            #line default
            #line hidden
                return;

            case 67:
                this.saveLog = ((System.Windows.Controls.Button)(target));

            #line 336 "..\..\MainWindow.xaml"
                this.saveLog.Click += new System.Windows.RoutedEventHandler(this.saveLog_Click);

            #line default
            #line hidden
                return;

            case 68:
                this.kalender = ((System.Windows.Controls.DatePicker)(target));

            #line 339 "..\..\MainWindow.xaml"
                this.kalender.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.kalender_SelectedDateChanged);

            #line default
            #line hidden
                return;

            case 69:
                this.lblAktiivsusDate = ((System.Windows.Controls.Label)(target));
                return;

            case 70:
                this.minaKaal = ((System.Windows.Controls.TextBox)(target));
                return;

            case 71:
                this.minaKalorid = ((System.Windows.Controls.TextBox)(target));
                return;

            case 72:
                this.minaVesi = ((System.Windows.Controls.TextBox)(target));
                return;

            case 73:
                this.minaToo = ((System.Windows.Controls.TextBox)(target));
                return;

            case 74:
                this.minaPuhke = ((System.Windows.Controls.TextBox)(target));
                return;

            case 75:
                this.minaAkt = ((System.Windows.Controls.TextBox)(target));
                return;

            case 76:

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 25
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainHomewd = ((BlueKara_Design.MainHome)(target));
                return;

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

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

            #line 39 "..\..\MainHome.xaml"
                this.SwitchType.Checked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.Switch2);

            #line default
            #line hidden

            #line 39 "..\..\MainHome.xaml"
                this.SwitchType.Unchecked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.Switch1);

            #line default
            #line hidden
                return;

            case 4:
                this.image = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.image1 = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.lbUsername = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lbLevel = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.progressScore = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

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

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

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

            case 12:

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

            #line default
            #line hidden
                return;

            case 13:

            #line 50 "..\..\MainHome.xaml"
                ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Logout);

            #line default
            #line hidden
                return;

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

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

            #line 62 "..\..\MainHome.xaml"
                this.gridlistMusic.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.OpenSong);

            #line default
            #line hidden
                return;

            case 16:

            #line 74 "..\..\MainHome.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AddKaraoketoQueue);

            #line default
            #line hidden
                return;

            case 17:
                this.stack = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 18:
                this.transferCurreny = ((System.Windows.Media.TranslateTransform)(target));
                return;

            case 19:
                this.canvas = ((System.Windows.Controls.Canvas)(target));
                return;

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

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

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

            #line 119 "..\..\MainHome.xaml"
                this.tbKeySearch.KeyUp += new System.Windows.Input.KeyEventHandler(this.EnterSearch);

            #line default
            #line hidden
                return;

            case 23:
                this.image3 = ((System.Windows.Controls.Image)(target));
                return;

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

            case 25:
                this.gridQueue = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 26:

            #line 134 "..\..\MainHome.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.RemoveKaraokeFromQueue);

            #line default
            #line hidden
                return;

            case 27:
                this.cbboxType = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 28:
                this.videoplayer = ((BlueKara_Design.UseControl.VideoPlayer)(target));
                return;

            case 29:
                this.FlyoutInfo = ((MahApps.Metro.Controls.Flyout)(target));

            #line 160 "..\..\MainHome.xaml"
                this.FlyoutInfo.Loaded += new System.Windows.RoutedEventHandler(this.UpdateInfo);

            #line default
            #line hidden
                return;

            case 30:
                this.groupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

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

            case 32:
                this.txbEmail = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 34:
                this.txbUsername = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 35:
                this.scorelabel = ((System.Windows.Controls.Label)(target));
                return;

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

            case 37:
                this.txbScore = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 38:
                this.txbLevel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 39:
                this.textBlock3 = ((System.Windows.Controls.Label)(target));
                return;

            case 40:
                this.txbName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 41:
                this.label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 42:
                this.txbPhone = ((System.Windows.Controls.TextBox)(target));
                return;

            case 43:
                this.label5 = ((System.Windows.Controls.Label)(target));
                return;

            case 44:
                this.txbJob = ((System.Windows.Controls.TextBox)(target));
                return;

            case 45:
                this.label6 = ((System.Windows.Controls.Label)(target));
                return;

            case 46:
                this.pickdate = ((System.Windows.Controls.DatePicker)(target));
                return;

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

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

            case 49:
                this.label8 = ((System.Windows.Controls.Label)(target));
                return;

            case 50:
                this.pwPassWord = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 51:
                this.label9 = ((System.Windows.Controls.Label)(target));
                return;

            case 52:
                this.psnewpass = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 53:
                this.label10 = ((System.Windows.Controls.Label)(target));
                return;

            case 54:
                this.psCurrentPass = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 55:
                this.txbDate = ((System.Windows.Controls.TextBox)(target));

            #line 197 "..\..\MainHome.xaml"
                this.txbDate.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.onlynumer);

            #line default
            #line hidden
                return;

            case 56:

            #line 202 "..\..\MainHome.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ChangeInfo);

            #line default
            #line hidden
                return;

            case 57:
                this.closefyout = ((System.Windows.Controls.Button)(target));

            #line 206 "..\..\MainHome.xaml"
                this.closefyout.Click += new System.Windows.RoutedEventHandler(this.CloseFlyout);

            #line default
            #line hidden
                return;

            case 58:
                this.Progressring = ((MahApps.Metro.Controls.ProgressRing)(target));
                return;

            case 59:
                this.GifBackground = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 26
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.frmMainWindow = ((MrBootman.MainWindow)(target));
                return;

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

            case 3:
                this.tabctrlBootman = ((System.Windows.Controls.TabControl)(target));
                return;

            case 4:
                this.tabitemImageToDrive = ((System.Windows.Controls.TabItem)(target));

            #line 99 "..\..\MainWindow.xaml"
                this.tabitemImageToDrive.GotFocus += new System.Windows.RoutedEventHandler(this.tabitemImageToDrive_GotFocus);

            #line default
            #line hidden
                return;

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

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

            #line 125 "..\..\MainWindow.xaml"
                this.btnTab1Browse.Click += new System.Windows.RoutedEventHandler(this.btnTab1Browse_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.cboTab1DestinationDriveLetter = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 8:
                this.chkTab1ExtractImageDirectToDrive = ((System.Windows.Controls.CheckBox)(target));

            #line 141 "..\..\MainWindow.xaml"
                this.chkTab1ExtractImageDirectToDrive.Loaded += new System.Windows.RoutedEventHandler(this.chkTab1ExtractImageDirectToDrive_Loaded);

            #line default
            #line hidden
                return;

            case 9:
                this.chkTab1FormatBootReady = ((System.Windows.Controls.CheckBox)(target));

            #line 142 "..\..\MainWindow.xaml"
                this.chkTab1FormatBootReady.Unchecked += new System.Windows.RoutedEventHandler(this.chkTab1FormatBootReady_Unchecked);

            #line default
            #line hidden

            #line 142 "..\..\MainWindow.xaml"
                this.chkTab1FormatBootReady.Checked += new System.Windows.RoutedEventHandler(this.chkTab1FormatBootReady_Checked);

            #line default
            #line hidden
                return;

            case 10:
                this.tabitemDriveToDrive = ((System.Windows.Controls.TabItem)(target));

            #line 145 "..\..\MainWindow.xaml"
                this.tabitemDriveToDrive.GotFocus += new System.Windows.RoutedEventHandler(this.tabitemDriveToDrive_GotFocus);

            #line default
            #line hidden
                return;

            case 11:
                this.cboTab2SourceDriveLetter = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            #line 171 "..\..\MainWindow.xaml"
                this.chkTab2FormatBootReady.Checked += new System.Windows.RoutedEventHandler(this.chkTab2FormatBootReady_Checked);

            #line default
            #line hidden

            #line 171 "..\..\MainWindow.xaml"
                this.chkTab2FormatBootReady.Unchecked += new System.Windows.RoutedEventHandler(this.chkTab2FormatBootReady_Unchecked);

            #line default
            #line hidden
                return;

            case 13:
                this.chkTab2UseXCopy = ((System.Windows.Controls.CheckBox)(target));

            #line 172 "..\..\MainWindow.xaml"
                this.chkTab2UseXCopy.Loaded += new System.Windows.RoutedEventHandler(this.chkTab2UseXCopy_Loaded);

            #line default
            #line hidden
                return;

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

            case 15:
                this.tabitemCreateImage = ((System.Windows.Controls.TabItem)(target));

            #line 183 "..\..\MainWindow.xaml"
                this.tabitemCreateImage.GotFocus += new System.Windows.RoutedEventHandler(this.tabitemCreateImage_GotFocus);

            #line default
            #line hidden
                return;

            case 16:
                this.txtTab3SourceDirectory = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 208 "..\..\MainWindow.xaml"
                this.btnTab3BrowseSource.Click += new System.Windows.RoutedEventHandler(this.btnTab3BrowseSource_Click);

            #line default
            #line hidden
                return;

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

            case 19:
                this.btnTab3BrowseDestination = ((System.Windows.Controls.Button)(target));

            #line 224 "..\..\MainWindow.xaml"
                this.btnTab3BrowseDestination.Click += new System.Windows.RoutedEventHandler(this.btnTab3BrowseDestination_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.tabitemAbout = ((System.Windows.Controls.TabItem)(target));

            #line 236 "..\..\MainWindow.xaml"
                this.tabitemAbout.GotFocus += new System.Windows.RoutedEventHandler(this.TabItemAbout_GotFocus);

            #line default
            #line hidden
                return;

            case 21:
                this.Info_Grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 22:
                this.lblVersion = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.btnTab4SysInfo = ((System.Windows.Controls.Button)(target));

            #line 255 "..\..\MainWindow.xaml"
                this.btnTab4SysInfo.Click += new System.Windows.RoutedEventHandler(this.btnTab4SysInfo_Click);

            #line default
            #line hidden
                return;

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

            #line 286 "..\..\MainWindow.xaml"
                this.btnCreate.Click += new System.Windows.RoutedEventHandler(this.btnCreate_Click);

            #line default
            #line hidden
                return;

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

            #line 295 "..\..\MainWindow.xaml"
                this.btnRefresh.Click += new System.Windows.RoutedEventHandler(this.btnRefresh_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.lblStatusLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 27:
                this.lblStatusDisplay = ((System.Windows.Controls.Label)(target));
                return;

            case 28:
                this.progressBarBootman = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 29:
                this.txtLogOutput = ((System.Windows.Controls.TextBox)(target));
                return;

            case 30:
                this.SBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;

            case 31:
                this.chkBtnLog = ((System.Windows.Controls.CheckBox)(target));

            #line 335 "..\..\MainWindow.xaml"
                this.chkBtnLog.Checked += new System.Windows.RoutedEventHandler(this.chkBtnLog_Checked);

            #line default
            #line hidden

            #line 335 "..\..\MainWindow.xaml"
                this.chkBtnLog.Unchecked += new System.Windows.RoutedEventHandler(this.chkBtnLog_Unchecked);

            #line default
            #line hidden
                return;

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

            #line 338 "..\..\MainWindow.xaml"
                this.btnClearLog.Click += new System.Windows.RoutedEventHandler(this.btnClearLog_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 27
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.Grid_initial = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.Text_regUser = ((System.Windows.Controls.TextBox)(target));
     return;
     case 3:
     this.Box_regPwd1 = ((System.Windows.Controls.PasswordBox)(target));
     return;
     case 4:
     this.Box_regPwd2 = ((System.Windows.Controls.PasswordBox)(target));
     return;
     case 5:
     this.Text_regIp = ((System.Windows.Controls.TextBox)(target));
     return;
     case 6:
     this.Text_regPort = ((System.Windows.Controls.TextBox)(target));
     return;
     case 7:
     this.label_regMsg = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.progressBar_reg = ((MahApps.Metro.Controls.MetroProgressBar)(target));
     return;
     case 9:
     this.Register_button = ((System.Windows.Controls.Button)(target));
     
     #line 24 "..\..\MainWindow.xaml"
     this.Register_button.Click += new System.Windows.RoutedEventHandler(this.Register_button_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.Text_user = ((System.Windows.Controls.TextBox)(target));
     return;
     case 11:
     this.Box_pwd = ((System.Windows.Controls.PasswordBox)(target));
     return;
     case 12:
     this.Text_ip = ((System.Windows.Controls.TextBox)(target));
     return;
     case 13:
     this.Text_port = ((System.Windows.Controls.TextBox)(target));
     return;
     case 14:
     this.Message_label = ((System.Windows.Controls.Label)(target));
     return;
     case 15:
     this.progress_bar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
     return;
     case 16:
     this.Connect_button = ((System.Windows.Controls.Button)(target));
     
     #line 38 "..\..\MainWindow.xaml"
     this.Connect_button.Click += new System.Windows.RoutedEventHandler(this.Connect_button_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.Grid_logged = ((System.Windows.Controls.Grid)(target));
     return;
     case 18:
     this.Logout_button = ((System.Windows.Controls.Button)(target));
     
     #line 46 "..\..\MainWindow.xaml"
     this.Logout_button.Click += new System.Windows.RoutedEventHandler(this.Connect_button_Click);
     
     #line default
     #line hidden
     return;
     case 19:
     this.file_grid = ((System.Windows.Controls.DataGrid)(target));
     
     #line 50 "..\..\MainWindow.xaml"
     this.file_grid.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.file_grid_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 21:
     this.Label_filename = ((System.Windows.Controls.Label)(target));
     return;
     case 22:
     this.filePrev_grid = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 24:
     this.dir_grid = ((System.Windows.Controls.DataGrid)(target));
     
     #line 139 "..\..\MainWindow.xaml"
     this.dir_grid.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.dir_grid_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 26:
     this.Label_snapshot = ((System.Windows.Controls.Label)(target));
     return;
     case 27:
     this.fileSnap_grid = ((System.Windows.Controls.DataGrid)(target));
     
     #line 184 "..\..\MainWindow.xaml"
     this.fileSnap_grid.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.fileSnap_grid_MouseDoubleClick);
     
     #line default
     #line hidden
     return;
     case 28:
     this.progressBar_file = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 29:
     this.Back_button = ((System.Windows.Controls.Button)(target));
     
     #line 222 "..\..\MainWindow.xaml"
     this.Back_button.Click += new System.Windows.RoutedEventHandler(this.Back_button_Click);
     
     #line default
     #line hidden
     return;
     case 30:
     this.Back_button_2 = ((System.Windows.Controls.Button)(target));
     
     #line 225 "..\..\MainWindow.xaml"
     this.Back_button_2.Click += new System.Windows.RoutedEventHandler(this.Back_button_2_Click);
     
     #line default
     #line hidden
     return;
     case 31:
     this.Home_button = ((System.Windows.Controls.Button)(target));
     
     #line 228 "..\..\MainWindow.xaml"
     this.Home_button.Click += new System.Windows.RoutedEventHandler(this.Home_button_Click);
     
     #line default
     #line hidden
     return;
     case 32:
     this.Refresh_button = ((System.Windows.Controls.Button)(target));
     
     #line 231 "..\..\MainWindow.xaml"
     this.Refresh_button.Click += new System.Windows.RoutedEventHandler(this.Refresh_button_Click);
     
     #line default
     #line hidden
     return;
     case 33:
     this.Label_log = ((System.Windows.Controls.Label)(target));
     return;
     case 34:
     this.Sync_init_button = ((System.Windows.Controls.Button)(target));
     
     #line 237 "..\..\MainWindow.xaml"
     this.Sync_init_button.Click += new System.Windows.RoutedEventHandler(this.Sync_init_button_Click);
     
     #line default
     #line hidden
     return;
     case 35:
     this.Restore_init_button = ((System.Windows.Controls.Button)(target));
     
     #line 243 "..\..\MainWindow.xaml"
     this.Restore_init_button.Click += new System.Windows.RoutedEventHandler(this.Restore_init_button_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 28
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\..\Views\LoginWindow.xaml"
                ((Breeze.Views.LoginWindow)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:
                this.ProgressBarMain = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

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

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

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

            case 6:
                this.PasswordTextbox = ((System.Windows.Controls.PasswordBox)(target));
                return;

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

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

            #line 52 "..\..\..\Views\LoginWindow.xaml"
                this.Cancel.Click += new System.Windows.RoutedEventHandler(this.Cancel_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.Login = ((System.Windows.Controls.Button)(target));

            #line 53 "..\..\..\Views\LoginWindow.xaml"
                this.Login.Click += new System.Windows.RoutedEventHandler(this.Login_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.Registration = ((System.Windows.Controls.Button)(target));

            #line 54 "..\..\..\Views\LoginWindow.xaml"
                this.Registration.Click += new System.Windows.RoutedEventHandler(this.Registration_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 29
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainMenuPages = ((MahApps.Metro.Controls.MetroAnimatedTabControl)(target));
                return;

            case 2:
                this.MainMenu = ((MahApps.Metro.Controls.MetroTabItem)(target));
                return;

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

            #line 30 "..\..\..\Windows\MyMainMenu.xaml"
                this.textBox_gamelocation.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox_gamelocation_TextChanged);

            #line default
            #line hidden
                return;

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

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

            #line 35 "..\..\..\Windows\MyMainMenu.xaml"
                this.textBox_outputfile.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox_outputfile_TextChanged);

            #line default
            #line hidden
                return;

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

            case 7:
                this.comboBox_ClientRegion = ((System.Windows.Controls.ComboBox)(target));

            #line 47 "..\..\..\Windows\MyMainMenu.xaml"
                this.comboBox_ClientRegion.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_ClientRegion_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 49 "..\..\..\Windows\MyMainMenu.xaml"
                this.comboBox_TranslationLanguage.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBox_TranslationLanguage_SelectionChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.updateTranslation = ((System.Windows.Controls.Button)(target));
                return;

            case 10:
                this.buildPatch = ((System.Windows.Controls.Button)(target));
                return;

            case 11:
                this.Working = ((MahApps.Metro.Controls.MetroTabItem)(target));
                return;

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

            case 13:
                this.progressInfinite = ((MahApps.Metro.Controls.MetroTabItem)(target));
                return;

            case 14:
                this.progressPercent = ((MahApps.Metro.Controls.MetroTabItem)(target));
                return;

            case 15:
                this.building_progressbar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 16:
                this.cancelProgress = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 30
0
        private void CodeAnalysis(List<Type> allTypes, Action<List<ClassMetaData>> fn)
        {
            try
            {
                btnReport.IsEnabled = false;
                btnAnalyze.IsEnabled = false;
                btnFix.IsEnabled = false;
                int SecondsToComplete = allTypes != null ? 8 : 20; //Program specific value
                MetroProgressBar progress = new MetroProgressBar();
                progress.IsIndeterminate = false;
                progress.Orientation = System.Windows.Controls.Orientation.Horizontal;
                progress.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;

                progress.Width = this.WindowWidth - 10;
                progress.Height = 30;
                Duration duration = new Duration(TimeSpan.FromSeconds((SecondsToComplete * 1.35)));
                DoubleAnimation doubleAnimatiion = new DoubleAnimation(200, duration);
                progress.Visibility = System.Windows.Visibility.Visible;
                progress.Foreground = Brushes.Green;
                progress.Background = Brushes.Transparent;
                progress.BorderBrush = Brushes.Gray;
                progress.BorderThickness = new Thickness(1, 1, 1, 1);
                progress.Padding = new Thickness(1, 1, 1, 1);
                progress.Tag = "Processing......";
                progress.Value = 0;
                lblStatus.Text = "Processing...";
                statusPanel.Visibility = System.Windows.Visibility.Visible;
                statusPanel.Children.Add(progress);
                TaskScheduler uiThread = TaskScheduler.FromCurrentSynchronizationContext();
                List<ClassMetaData> classInfo = null;
                Action MainThreadDoWork = new Action(() =>
                {
                    if (!_isFixMode)
                        classInfo = new CodeAnalysisEngine().ProcessAssembly(allTypes);
                    else
                        files = new CodeAnalysisEngine().ApplyFixToCodeAnalysisDocument(_Path, allTypes, productName);

                    System.Threading.Thread.Sleep(2000);
                });

                Action ExecuteProgressBar = new Action(() =>
                {
                    progress.BeginAnimation(MetroProgressBar.ValueProperty, doubleAnimatiion);
                });

                Action FinalThreadDoWOrk = new Action(() =>
                {
                    if (classInfo != null)
                    {
                        fn(classInfo);
                        mainContainer.Visibility = Visibility.Visible;
                        panelContainer.Visibility = Visibility.Hidden;
                    }
                    else
                    {
                        mainContainer.Visibility = Visibility.Hidden;
                        panelContainer.Visibility = Visibility.Visible;
                        PopulateTiles();
                    }
                    Logo.Visibility = Visibility.Hidden;
                    Logo.Height = 0;
                    helpContainer.Children.Clear();
                    helpContainer.Height = 0;

                    statusPanel.Children.Remove(progress);
                    statusPanel.Visibility = System.Windows.Visibility.Hidden;
                    btnReport.IsEnabled = true;
                    btnAnalyze.IsEnabled = true;
                    btnFix.IsEnabled = true;
                });

                Task MainThreadDoWorkTask = Task.Factory.StartNew(() => MainThreadDoWork());

                Task ExecuteProgressBarTask = new Task(ExecuteProgressBar);
                ExecuteProgressBarTask.RunSynchronously();

                MainThreadDoWorkTask.ContinueWith(t => FinalThreadDoWOrk(), uiThread);

            }
            catch (Exception ex)
            {
                System.Windows.MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
Ejemplo n.º 31
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 2:
                this.cbCOM = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

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

            case 6:
                this.image = ((System.Windows.Controls.Image)(target));
                return;

            case 7:
                this.lblStatus = ((System.Windows.Controls.Label)(target));
                return;

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

            case 9:
                this.cmdClearLog = ((System.Windows.Controls.Button)(target));
                return;

            case 10:
                this.cmdExport = ((System.Windows.Controls.Button)(target));
                return;

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

            case 12:
                this.pbProgress = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 13:
                this.listView = ((System.Windows.Controls.ListView)(target));
                return;

            case 14:
                this.nDatum = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 15:
                this.nZeit = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 16:
                this.nGewicht = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 17:
                this.nPreis = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 18:
                this.nWachstyp = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 13 "..\..\..\..\Views\ProductView.xaml"
     ((MetroDemo.ExampleViews.ProductView)(target)).Loaded += new System.Windows.RoutedEventHandler(this.ProductView_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.Product = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.MainTabControl = ((MahApps.Metro.Controls.MetroAnimatedSingleRowTabControl)(target));
     
     #line 43 "..\..\..\..\Views\ProductView.xaml"
     this.MainTabControl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.MainTabControl_OnSelectionChanged);
     
     #line default
     #line hidden
     return;
     case 4:
     this.ProductTab = ((System.Windows.Controls.TabItem)(target));
     return;
     case 5:
     this.ProductInfo = ((System.Windows.Controls.Button)(target));
     
     #line 79 "..\..\..\..\Views\ProductView.xaml"
     this.ProductInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 6:
     this.chkofficeProd = ((System.Windows.Controls.CheckBox)(target));
     
     #line 86 "..\..\..\..\Views\ProductView.xaml"
     this.chkofficeProd.Checked += new System.Windows.RoutedEventHandler(this.chkofficeProd_Checked);
     
     #line default
     #line hidden
     
     #line 86 "..\..\..\..\Views\ProductView.xaml"
     this.chkofficeProd.Unchecked += new System.Windows.RoutedEventHandler(this.chkofficeProd_Checked);
     
     #line default
     #line hidden
     
     #line 86 "..\..\..\..\Views\ProductView.xaml"
     this.chkofficeProd.Click += new System.Windows.RoutedEventHandler(this.chkofficeProd_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.MainProducts = ((System.Windows.Controls.ListBox)(target));
     
     #line 92 "..\..\..\..\Views\ProductView.xaml"
     this.MainProducts.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Products_OnSelectionChanged);
     
     #line default
     #line hidden
     return;
     case 8:
     this.VisioInfo = ((System.Windows.Controls.Button)(target));
     
     #line 103 "..\..\..\..\Views\ProductView.xaml"
     this.VisioInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 9:
     this.chkVisio = ((System.Windows.Controls.CheckBox)(target));
     
     #line 110 "..\..\..\..\Views\ProductView.xaml"
     this.chkVisio.Checked += new System.Windows.RoutedEventHandler(this.ChkVisio_OnChecked);
     
     #line default
     #line hidden
     
     #line 111 "..\..\..\..\Views\ProductView.xaml"
     this.chkVisio.Unchecked += new System.Windows.RoutedEventHandler(this.ChkVisio_OnChecked);
     
     #line default
     #line hidden
     
     #line 111 "..\..\..\..\Views\ProductView.xaml"
     this.chkVisio.Click += new System.Windows.RoutedEventHandler(this.chkofficeProd_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.cbVisio = ((System.Windows.Controls.ComboBox)(target));
     
     #line 118 "..\..\..\..\Views\ProductView.xaml"
     this.cbVisio.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CbVisio_OnSelectionChanged);
     
     #line default
     #line hidden
     return;
     case 11:
     this.ProjectInfo = ((System.Windows.Controls.Button)(target));
     
     #line 128 "..\..\..\..\Views\ProductView.xaml"
     this.ProjectInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 12:
     this.chkProject = ((System.Windows.Controls.CheckBox)(target));
     
     #line 135 "..\..\..\..\Views\ProductView.xaml"
     this.chkProject.Checked += new System.Windows.RoutedEventHandler(this.ChkProject_OnChecked);
     
     #line default
     #line hidden
     
     #line 136 "..\..\..\..\Views\ProductView.xaml"
     this.chkProject.Unchecked += new System.Windows.RoutedEventHandler(this.ChkProject_OnChecked);
     
     #line default
     #line hidden
     
     #line 136 "..\..\..\..\Views\ProductView.xaml"
     this.chkProject.Click += new System.Windows.RoutedEventHandler(this.chkofficeProd_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.cbProject = ((System.Windows.Controls.ComboBox)(target));
     
     #line 143 "..\..\..\..\Views\ProductView.xaml"
     this.cbProject.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CbProject_OnSelectionChanged);
     
     #line default
     #line hidden
     return;
     case 14:
     this.EditionInfo = ((System.Windows.Controls.Button)(target));
     
     #line 154 "..\..\..\..\Views\ProductView.xaml"
     this.EditionInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 15:
     this.ProductEdition32Bit = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 16:
     this.ProductEdition64Bit = ((System.Windows.Controls.RadioButton)(target));
     return;
     case 17:
     this.BranchInfo = ((System.Windows.Controls.Button)(target));
     
     #line 175 "..\..\..\..\Views\ProductView.xaml"
     this.BranchInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 18:
     this.ProductBranch = ((System.Windows.Controls.ComboBox)(target));
     
     #line 185 "..\..\..\..\Views\ProductView.xaml"
     this.ProductBranch.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ProductBranch_OnSelectionChanged);
     
     #line default
     #line hidden
     return;
     case 19:
     this.LanguagesTab = ((System.Windows.Controls.TabItem)(target));
     return;
     case 20:
     this.LanguageList = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 21:
     this.AddLanguageButton = ((System.Windows.Controls.Button)(target));
     
     #line 225 "..\..\..\..\Views\ProductView.xaml"
     this.AddLanguageButton.Click += new System.Windows.RoutedEventHandler(this.AddLanguageButton_Click);
     
     #line default
     #line hidden
     return;
     case 22:
     this.RemoveLanguageButton = ((System.Windows.Controls.Button)(target));
     
     #line 226 "..\..\..\..\Views\ProductView.xaml"
     this.RemoveLanguageButton.Click += new System.Windows.RoutedEventHandler(this.RemoveLanguageButton_Click);
     
     #line default
     #line hidden
     return;
     case 23:
     this.SetPrimaryButton = ((System.Windows.Controls.Button)(target));
     
     #line 227 "..\..\..\..\Views\ProductView.xaml"
     this.SetPrimaryButton.Click += new System.Windows.RoutedEventHandler(this.SetPrimaryButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 24:
     this.LanguageInfo = ((System.Windows.Controls.Button)(target));
     
     #line 229 "..\..\..\..\Views\ProductView.xaml"
     this.LanguageInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 25:
     this.UseLangForAllLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 26:
     this.UseLangForAllProducts = ((System.Windows.Controls.CheckBox)(target));
     
     #line 238 "..\..\..\..\Views\ProductView.xaml"
     this.UseLangForAllProducts.Checked += new System.Windows.RoutedEventHandler(this.UseLangForAllProducts_OnChecked);
     
     #line default
     #line hidden
     
     #line 238 "..\..\..\..\Views\ProductView.xaml"
     this.UseLangForAllProducts.Unchecked += new System.Windows.RoutedEventHandler(this.UseLangForAllProducts_OnChecked);
     
     #line default
     #line hidden
     return;
     case 27:
     this.LanguageUnique = ((System.Windows.Controls.ComboBox)(target));
     
     #line 240 "..\..\..\..\Views\ProductView.xaml"
     this.LanguageUnique.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.LanguageUnique_OnSelectionChanged);
     
     #line default
     #line hidden
     return;
     case 28:
     this.OptionalTab = ((System.Windows.Controls.TabItem)(target));
     return;
     case 29:
     this.VersionInfo = ((System.Windows.Controls.Button)(target));
     
     #line 272 "..\..\..\..\Views\ProductView.xaml"
     this.VersionInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 30:
     this.ProductVersion = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 31:
     this.SourcePathInfo = ((System.Windows.Controls.Button)(target));
     
     #line 302 "..\..\..\..\Views\ProductView.xaml"
     this.SourcePathInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 32:
     this.DownloadProgressBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
     return;
     case 33:
     this.ProductUpdateSource = ((System.Windows.Controls.TextBox)(target));
     
     #line 321 "..\..\..\..\Views\ProductView.xaml"
     this.ProductUpdateSource.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.BuildFilePath_OnTextChanged);
     
     #line default
     #line hidden
     return;
     case 34:
     this.UpdatePath = ((System.Windows.Controls.Button)(target));
     
     #line 327 "..\..\..\..\Views\ProductView.xaml"
     this.UpdatePath.Click += new System.Windows.RoutedEventHandler(this.UpdatePath_OnClick);
     
     #line default
     #line hidden
     return;
     case 35:
     this.OpenFolderButton = ((System.Windows.Controls.Button)(target));
     
     #line 329 "..\..\..\..\Views\ProductView.xaml"
     this.OpenFolderButton.Click += new System.Windows.RoutedEventHandler(this.OpenFolderButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 36:
     this.ExcludedTab = ((System.Windows.Controls.TabItem)(target));
     return;
     case 37:
     this.ExcludeAppInfo = ((System.Windows.Controls.Button)(target));
     
     #line 356 "..\..\..\..\Views\ProductView.xaml"
     this.ExcludeAppInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 38:
     this.ExcludedApps1 = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 40:
     this.ExcludedApps2 = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 42:
     this.PreviousButton = ((System.Windows.Controls.Button)(target));
     
     #line 457 "..\..\..\..\Views\ProductView.xaml"
     this.PreviousButton.Click += new System.Windows.RoutedEventHandler(this.PreviousButton_Click);
     
     #line default
     #line hidden
     return;
     case 43:
     this.NextButton = ((System.Windows.Controls.Button)(target));
     
     #line 458 "..\..\..\..\Views\ProductView.xaml"
     this.NextButton.Click += new System.Windows.RoutedEventHandler(this.NextButton_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 33
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MeteoImage = ((System.Windows.Controls.Image)(target));
                return;

            case 2:
                this.WilayaLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.DureeLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.SimilariteGauge = ((LiveCharts.Wpf.Gauge)(target));
                return;

            case 5:
                this.LaBoussole = ((ProjetWPF.Fenetres.UserControls.boussole)(target));
                return;

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

            case 7:
                this.TempMin = ((System.Windows.Controls.Label)(target));
                return;

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

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

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

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

            case 12:
                this.HumiditeBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

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

            case 14:
                this.PrecipitationLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.PrecipitationBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

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

            case 17:
                this.VisibiliteLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.VisibiliteBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

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

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

            case 21:
                this.PressionBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 22:
                this.NubulositeGrig = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 24:
                this.NubulisiteBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 13 "..\..\..\..\ExampleViews\ProductView.xaml"
                ((MetroDemo.ExampleViews.ProductView)(target)).Loaded += new System.Windows.RoutedEventHandler(this.ProductView_Loaded);

            #line default
            #line hidden
                return;

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

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

            #line 43 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.MainTabControl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.MainTabControl_OnSelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.ProductTab = ((System.Windows.Controls.TabItem)(target));
                return;

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

            #line 78 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.ProductInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);

            #line default
            #line hidden
                return;

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

            #line 90 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.MainProducts.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Products_OnSelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.AdditionalProducts = ((System.Windows.Controls.ListBox)(target));

            #line 96 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.AdditionalProducts.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Products_OnSelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 108 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.EditionInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);

            #line default
            #line hidden
                return;

            case 9:
                this.ProductEdition32Bit = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 10:
                this.ProductEdition64Bit = ((System.Windows.Controls.RadioButton)(target));
                return;

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

            #line 132 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.BranchInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);

            #line default
            #line hidden
                return;

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

            #line 142 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.ProductBranch.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ProductBranch_OnSelectionChanged);

            #line default
            #line hidden
                return;

            case 13:
                this.LanguagesTab = ((System.Windows.Controls.TabItem)(target));
                return;

            case 14:
                this.LanguageList = ((System.Windows.Controls.DataGrid)(target));
                return;

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

            #line 182 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.AddLanguageButton.Click += new System.Windows.RoutedEventHandler(this.AddLanguageButton_Click);

            #line default
            #line hidden
                return;

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

            #line 183 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.RemoveLanguageButton.Click += new System.Windows.RoutedEventHandler(this.RemoveLanguageButton_Click);

            #line default
            #line hidden
                return;

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

            #line 184 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.SetPrimaryButton.Click += new System.Windows.RoutedEventHandler(this.SetPrimaryButton_OnClick);

            #line default
            #line hidden
                return;

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

            #line 186 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.LanguageInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);

            #line default
            #line hidden
                return;

            case 19:
                this.UseLangForAllProducts = ((System.Windows.Controls.CheckBox)(target));

            #line 195 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.UseLangForAllProducts.Checked += new System.Windows.RoutedEventHandler(this.UseLangForAllProducts_OnChecked);

            #line default
            #line hidden

            #line 195 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.UseLangForAllProducts.Unchecked += new System.Windows.RoutedEventHandler(this.UseLangForAllProducts_OnChecked);

            #line default
            #line hidden
                return;

            case 20:
                this.LanguageUnique = ((System.Windows.Controls.ComboBox)(target));

            #line 197 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.LanguageUnique.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.LanguageUnique_OnSelectionChanged);

            #line default
            #line hidden
                return;

            case 21:
                this.OptionalTab = ((System.Windows.Controls.TabItem)(target));
                return;

            case 22:
                this.VersionInfo = ((System.Windows.Controls.Button)(target));

            #line 229 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.VersionInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);

            #line default
            #line hidden
                return;

            case 23:
                this.ProductVersion = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            #line 259 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.SourcePathInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);

            #line default
            #line hidden
                return;

            case 25:
                this.DownloadProgressBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 26:
                this.ProductUpdateSource = ((System.Windows.Controls.TextBox)(target));

            #line 278 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.ProductUpdateSource.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.BuildFilePath_OnTextChanged);

            #line default
            #line hidden
                return;

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

            #line 284 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.UpdatePath.Click += new System.Windows.RoutedEventHandler(this.UpdatePath_OnClick);

            #line default
            #line hidden
                return;

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

            #line 286 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.OpenFolderButton.Click += new System.Windows.RoutedEventHandler(this.OpenFolderButton_OnClick);

            #line default
            #line hidden
                return;

            case 29:
                this.ExcludedTab = ((System.Windows.Controls.TabItem)(target));
                return;

            case 30:
                this.ExcludeAppInfo = ((System.Windows.Controls.Button)(target));

            #line 313 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.ExcludeAppInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);

            #line default
            #line hidden
                return;

            case 31:
                this.ExcludedApps1 = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 33:
                this.ExcludedApps2 = ((System.Windows.Controls.DataGrid)(target));
                return;

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

            #line 414 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.PreviousButton.Click += new System.Windows.RoutedEventHandler(this.PreviousButton_Click);

            #line default
            #line hidden
                return;

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

            #line 415 "..\..\..\..\ExampleViews\ProductView.xaml"
                this.NextButton.Click += new System.Windows.RoutedEventHandler(this.NextButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 35
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainWindow1 = ((BurstMaster.MainWindow)(target));

            #line 15 "..\..\MainWindow.xaml"
                this.MainWindow1.Closed += new System.EventHandler(this.MainWindow1_Closed);

            #line default
            #line hidden

            #line 16 "..\..\MainWindow.xaml"
                this.MainWindow1.Closing += new System.ComponentModel.CancelEventHandler(this.MetroWindow_Closing);

            #line default
            #line hidden
                return;

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

            #line 27 "..\..\MainWindow.xaml"
                this.SettingsButton.Click += new System.Windows.RoutedEventHandler(this.SettingsButton_Click_1);

            #line default
            #line hidden
                return;

            case 3:
                this.automaticCheck_enabled = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 4:
                this.POLID = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            #line 74 "..\..\MainWindow.xaml"
                this.SelectPOLID.Click += new System.Windows.RoutedEventHandler(this.SelectPOLIDButton_Click);

            #line default
            #line hidden
                return;

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

            #line 88 "..\..\MainWindow.xaml"
                this.RunPauseButton.Click += new System.Windows.RoutedEventHandler(this.RunPauseButton_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.SkillchainRecieved = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.TimeRecieved = ((System.Windows.Controls.Label)(target));
                return;

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

            case 10:
                this.HPBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 11:
                this.MPBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 12:
                this.TPBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

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

            case 14:
                this.MP = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.TP = ((System.Windows.Controls.Label)(target));
                return;

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

            case 17:
                this.StatusBuffs = ((System.Windows.Controls.ItemsControl)(target));
                return;

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

            case 19:
                this.CastingPossible = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.UserControl = ((Orange.ConvertingProgress)(target));
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.ConvertProgressBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
     return;
     case 4:
     this.state_rate = ((System.Windows.Controls.TextBlock)(target));
     
     #line 17 "..\..\..\..\Main\DialogUserControls\ConvertingProgress.xaml"
     this.state_rate.Unloaded += new System.Windows.RoutedEventHandler(this.state_rate_Unloaded);
     
     #line default
     #line hidden
     return;
     case 5:
     this.confirmBtn = ((System.Windows.Controls.Button)(target));
     
     #line 18 "..\..\..\..\Main\DialogUserControls\ConvertingProgress.xaml"
     this.confirmBtn.Click += new System.Windows.RoutedEventHandler(this.confirmBtn_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 37
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 21 "..\..\..\DialogLogin.xaml"
     ((TqatProTrackingTool.DialogLogin)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MetroWindow_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.progressBarLoading = ((MahApps.Metro.Controls.MetroProgressBar)(target));
     return;
     case 3:
     this.panelLogin = ((Controls.UserControls.PanelLogin)(target));
     return;
     case 4:
     
     #line 42 "..\..\..\DialogLogin.xaml"
     ((System.Windows.Controls.Label)(target)).AddHandler(System.Windows.Input.Mouse.MouseUpEvent, new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp));
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 38
0
 private static void OnIsIndeterminateChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
 {
     MetroProgressBar.ToggleIndeterminate(dependencyObject as MetroProgressBar, (bool)e.OldValue, (bool)e.NewValue);
 }
Ejemplo n.º 39
0
        private void StartDOMEngine(CodeDOMEngine engine, bool isPreview)
        {
            if (engine == null)
                return;

            btnPreview.IsEnabled = false;
            btnCreate.IsEnabled = false;
            int SecondsToComplete = 10; //Program specific value
            panelContainer.Children.Clear();
            txtMsg.Visibility = System.Windows.Visibility.Hidden;
            MetroProgressBar progress = new MetroProgressBar();
            progress.IsIndeterminate = false;
            progress.Orientation = System.Windows.Controls.Orientation.Horizontal;
            progress.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;

            progress.Width = this.WindowWidth - 330;
            progress.Height = 30;
            Duration duration = new Duration(TimeSpan.FromSeconds((SecondsToComplete * 1.35)));
            DoubleAnimation doubleAnimatiion = new DoubleAnimation(200, duration);
            progress.Visibility = System.Windows.Visibility.Visible;
            progress.Foreground = Brushes.Green;
            progress.Background = Brushes.Transparent;
            progress.BorderBrush = Brushes.Gray;
            progress.BorderThickness = new Thickness(1, 1, 1, 1);
            progress.Padding = new Thickness(1, 1, 1, 1);
            progress.Tag = "Processing......";
            progress.Value = 0;
            lblStatus.Text = (isPreview ? "Processing..." : "Creating Files....");
            statusPanel.Children.Add(progress);
            try
            {
                TaskScheduler uiThread = TaskScheduler.FromCurrentSynchronizationContext();

                Action MainThreadDoWork = new Action(() =>
                {
                    CodeFiles = isPreview ? engine.Preview() : engine.CreateFiles();
                    System.Threading.Thread.Sleep(6000);
                });

                Action ExecuteProgressBar = new Action(() =>
                {
                    progress.BeginAnimation(MetroProgressBar.ValueProperty, doubleAnimatiion);
                });

                Action FinalThreadDoWOrk = new Action(() =>
                {
                    btnPreview.IsEnabled = true;
                    btnCreate.IsEnabled = true;
                    statusPanel.Children.Remove(progress);
                    PopulateTiles();
                });

                Task MainThreadDoWorkTask = Task.Factory.StartNew(() => MainThreadDoWork());

                Task ExecuteProgressBarTask = new Task(ExecuteProgressBar);
                ExecuteProgressBarTask.RunSynchronously();

                MainThreadDoWorkTask.ContinueWith(t => FinalThreadDoWOrk(), uiThread);
            }
            catch (Exception ex)
            {
                System.Windows.MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
Ejemplo n.º 40
0
 private static void ToggleIndeterminate(MetroProgressBar bar, bool oldValue, bool newValue)
 {
     if (bar != null && newValue != oldValue)
     {
         var indeterminateState = bar.GetIndeterminate();
         var containingObject = bar.GetTemplateChild("ContainingGrid") as FrameworkElement;
         if (indeterminateState != null && containingObject != null)
         {
             if (oldValue && indeterminateState.Storyboard != null)
             {
                 // remove the previous storyboard from the Grid #1855
                 indeterminateState.Storyboard.Stop(containingObject);
                 indeterminateState.Storyboard.Remove(containingObject);
             }
             if (newValue)
             {
                 bar.ResetStoryboard(bar.ActualWidth, false);
             }
         }
     }
 }
Ejemplo n.º 41
0
 public MainWindow()
 {
     MetroProgressBar pb = new MetroProgressBar();
     InitializeComponent();
 }
Ejemplo n.º 42
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.tBox_StyleStructureFile = ((System.Windows.Controls.TextBox)(target));

            #line 38 "..\..\..\..\Apps\AAnno2\AAnnoView.xaml"
                this.tBox_StyleStructureFile.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.tBox_StyleStructureFile_TextChanged);

            #line default
            #line hidden
                return;

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

            #line 39 "..\..\..\..\Apps\AAnno2\AAnnoView.xaml"
                this.btn_browse_SSTFile.Click += new System.Windows.RoutedEventHandler(this.btn_browse_SSTFile_Click);

            #line default
            #line hidden
                return;

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

            case 4:
                this.cBox_template = ((System.Windows.Controls.ComboBox)(target));

            #line 50 "..\..\..\..\Apps\AAnno2\AAnnoView.xaml"
                this.cBox_template.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cBox_template_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 60 "..\..\..\..\Apps\AAnno2\AAnnoView.xaml"
                this.btn_open_templateFile.Click += new System.Windows.RoutedEventHandler(this.btn_open_templateFile_Click);

            #line default
            #line hidden
                return;

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

            #line 70 "..\..\..\..\Apps\AAnno2\AAnnoView.xaml"
                this.btn_fetchSelectedtamplateFile.Click += new System.Windows.RoutedEventHandler(this.btn_fetchSelectedtamplateFile_Click);

            #line default
            #line hidden
                return;

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

            #line 80 "..\..\..\..\Apps\AAnno2\AAnnoView.xaml"
                this.btn_browse_templateFile.Click += new System.Windows.RoutedEventHandler(this.btn_browse_templateFile_Click);

            #line default
            #line hidden
                return;

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

            #line 90 "..\..\..\..\Apps\AAnno2\AAnnoView.xaml"
                this.btn_browse_templateFile_Copy.Click += new System.Windows.RoutedEventHandler(this.btn_fetchtamplateFile_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.groupBox = ((System.Windows.Controls.GroupBox)(target));
                return;

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

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

            #line 106 "..\..\..\..\Apps\AAnno2\AAnnoView.xaml"
                this.btn_selectLabels.Click += new System.Windows.RoutedEventHandler(this.btn_selectLabels_Click);

            #line default
            #line hidden
                return;

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

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

            #line 117 "..\..\..\..\Apps\AAnno2\AAnnoView.xaml"
                this.btn_selectViewport.Click += new System.Windows.RoutedEventHandler(this.btn_selectViewport_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.lbl_statusCount = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.proBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 16:
                this.cBox_objectType = ((System.Windows.Controls.ComboBox)(target));

            #line 139 "..\..\..\..\Apps\AAnno2\AAnnoView.xaml"
                this.cBox_objectType.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cBox_objectType_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 140 "..\..\..\..\Apps\AAnno2\AAnnoView.xaml"
                this.btn_clearCollectionandUI.Click += new System.Windows.RoutedEventHandler(this.btn_clearCollectionandUI_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.lBox_CurrentNotes = ((System.Windows.Controls.ListView)(target));
                return;

            case 19:

            #line 155 "..\..\..\..\Apps\AAnno2\AAnnoView.xaml"
                ((System.Windows.Controls.GridViewColumnHeader)(target)).Click += new System.Windows.RoutedEventHandler(this.notelistColumnHeader_Click);

            #line default
            #line hidden
                return;

            case 20:

            #line 160 "..\..\..\..\Apps\AAnno2\AAnnoView.xaml"
                ((System.Windows.Controls.GridViewColumnHeader)(target)).Click += new System.Windows.RoutedEventHandler(this.notelistColumnHeader_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.tBox_Heading = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:
                this.btn_HeadingBold = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 23:
                this.btn_HeadingUnderline = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 24:
                this.tBox_textHeight = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 175 "..\..\..\..\Apps\AAnno2\AAnnoView.xaml"
                this.btn_CreateKeyNote.Click += new System.Windows.RoutedEventHandler(this.btn_CreateKeyNote_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.loginUserControl = ((VirtuaLicense.LoginControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 43
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.tabControl = ((System.Windows.Controls.TabControl)(target));
                return;

            case 2:
                this.butSignUp = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 3:

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

            #line default
            #line hidden
                return;

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

            #line 36 "..\..\LoginWindow.xaml"
                this.butRegister.Click += new System.Windows.RoutedEventHandler(this.butRegister_Click);

            #line default
            #line hidden
                return;

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

            #line 49 "..\..\LoginWindow.xaml"
                this.butBack.Click += new System.Windows.RoutedEventHandler(this.butBack_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.tbLogin = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.pbPassword = ((System.Windows.Controls.PasswordBox)(target));
                return;

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

            case 9:
                this.butBack1 = ((System.Windows.Controls.Button)(target));

            #line 92 "..\..\LoginWindow.xaml"
                this.butBack1.Click += new System.Windows.RoutedEventHandler(this.butBack_Click);

            #line default
            #line hidden
                return;

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

            case 11:
                this.tbRegFirstName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.tbRegLastName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.pbRegPass = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 14:
                this.pbRegConfirmPass = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 15:
                this.tbRegPhone = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.tbRegEmail = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.stackPanel1 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 18:
                this.progressBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

            case 19:
                this.tbMessage = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 44
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.nextControls = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            case 4:

            #line 33 "..\..\Welcome.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.nextClick);

            #line default
            #line hidden
                return;

            case 5:
                this.backControls = ((System.Windows.Controls.StackPanel)(target));
                return;

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

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

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

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

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

            case 11:
                this.homeProg = ((MahApps.Metro.Controls.MetroProgressBar)(target));
                return;

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

            case 13:
                this.txtNotes = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.w3 = ((System.Windows.Controls.Grid)(target));
                return;

            case 15:
                this.prog = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 16:
                this.sts = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.vers = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 45
0
 public UpdatingView()
 {
     MetroProgressBar progressBar = new MetroProgressBar();
     InitializeComponent();
 }
Ejemplo n.º 46
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 8 "..\..\..\..\FORMS\SplashScreen.xaml"
     ((sistemaCorporativo.FORMS.SplashScreen)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown);
     
     #line default
     #line hidden
     return;
     case 2:
     this.action = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.logo = ((System.Windows.Controls.Image)(target));
     return;
     case 4:
     this.ProgressBar = ((MahApps.Metro.Controls.MetroProgressBar)(target));
     return;
     case 5:
     this.lblStatus = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 47
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 21 "..\..\DialogLogin.xaml"
     ((TqatProMaintenanceTool.DialogLogin)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MetroWindow_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.progressBarLoading = ((MahApps.Metro.Controls.MetroProgressBar)(target));
     return;
     case 3:
     this.panelLogin = ((Controls.UserControls.PanelLogin)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 48
0
        private void btnAnalyze_Click(object sender, RoutedEventArgs e)
        {

            btnAnalyze.IsEnabled = false;

            int SecondsToComplete = 6; //Program specific value
            MetroProgressBar progress = new MetroProgressBar();
            progress.IsIndeterminate = false;
            progress.Orientation = System.Windows.Controls.Orientation.Horizontal;
            progress.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;

            progress.Width = this.WindowWidth - 10;
            progress.Height = 30;
            Duration duration = new Duration(TimeSpan.FromSeconds((SecondsToComplete * 1.35)));
            DoubleAnimation doubleAnimatiion = new DoubleAnimation(200, duration);
            progress.Visibility = System.Windows.Visibility.Visible;
            progress.Foreground = Brushes.Green;
            progress.Background = Brushes.Transparent;
            progress.BorderBrush = Brushes.Gray;
            progress.BorderThickness = new Thickness(1, 1, 1, 1);
            progress.Padding = new Thickness(1, 1, 1, 1);
            progress.Tag = "Processing......";
            progress.Value = 0;
            lblStatus.Text = "Processing...";
            statusPanel.Visibility = System.Windows.Visibility.Visible;
            statusPanel.Children.Add(progress);

            try
            {

                TaskScheduler uiThread = TaskScheduler.FromCurrentSynchronizationContext();

                Action MainThreadDoWork = new Action(() =>
                {
                    System.Threading.Thread.Sleep(2000);
                });

                Action ExecuteProgressBar = new Action(() =>
                {
                    progress.BeginAnimation(MetroProgressBar.ValueProperty, doubleAnimatiion);
                });

                Action FinalThreadDoWOrk = new Action(() =>
                {
                    Process();
                    btnAnalyze.IsEnabled = true;
                    Logo.Visibility = Visibility.Hidden;
                    helpContainer.Visibility = Visibility.Hidden;
                    mainContainer.Visibility = Visibility.Visible;
                    statusPanel.Children.Remove(progress);
                    statusPanel.Visibility = System.Windows.Visibility.Hidden;
                });

                Task MainThreadDoWorkTask = Task.Factory.StartNew(() => MainThreadDoWork());

                Task ExecuteProgressBarTask = new Task(ExecuteProgressBar);
                ExecuteProgressBarTask.RunSynchronously();

                MainThreadDoWorkTask.ContinueWith(t => FinalThreadDoWOrk(), uiThread);

            }
            catch (Exception ex)
            {
                System.Windows.MessageBox.Show(ex.Message, "Error",MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }