Inheritance: System.Windows.Controls.ContentControl
Ejemplo n.º 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.IsCheck = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 20 "..\..\..\View\Add_event.xaml"
                this.IsCheck.Checked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.ToggleSwitch_Checked);

            #line default
            #line hidden
                return;

            case 2:
                this.StartDate = ((MahApps.Metro.Controls.DateTimePicker)(target));
                return;

            case 3:
                this.EndDate = ((MahApps.Metro.Controls.DateTimePicker)(target));
                return;

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

            case 5:
                this.editB = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ClubMatchGrid = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 2:
                this.MatchFuturToggle = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

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

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

            case 5:
                this.PrintGrid = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.enabledSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 2:
                this.visibleSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 3:
                this.DownButton = ((MahApps.Metro.Controls.DropDownButton)(target));
                return;

            case 4:
                this.DownButton1 = ((MahApps.Metro.Controls.DropDownButton)(target));
                return;

            case 5:
                this.SplitButton0 = ((MahApps.Metro.Controls.SplitButton)(target));
                return;

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

            #line 10 "..\..\Settings.xaml"
                ((Starvis.Settings)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

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

            case 3:
                this.G_Male = ((System.Windows.Controls.RadioButton)(target));

            #line 15 "..\..\Settings.xaml"
                this.G_Male.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked);

            #line default
            #line hidden
                return;

            case 4:
                this.G_Female = ((System.Windows.Controls.RadioButton)(target));

            #line 16 "..\..\Settings.xaml"
                this.G_Female.Checked += new System.Windows.RoutedEventHandler(this.RadioButton_Checked_1);

            #line default
            #line hidden
                return;

            case 5:
                this.LangPre = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 7:
                this.Mode = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 8:

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

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

            #line 15 "..\..\MainWindow.xaml"
                this.openFileButton.Click += new System.Windows.RoutedEventHandler(this.openFileButton_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.switcher = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 16 "..\..\MainWindow.xaml"
                this.switcher.Click += new System.EventHandler <System.Windows.RoutedEventArgs>(this.switcher_Click);

            #line default
            #line hidden
                return;

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

            case 4:
                this.statusLabel = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 6
0
        private void AddCheckBoxControls(ToolbarInfo info)
        {
            var check = new ToggleSwitch
            {
                Content = IoC.Kernel.Get<IResourceHelper>().ReadResource(info.Text),
                Tag = info.Text,
                IsChecked = info.Value
            };
            var label = new Label
            {
                VerticalAlignment = VerticalAlignment.Center,
                Content = check
            };

            if (!string.IsNullOrWhiteSpace(info.Command))
            {
                var checkBoxBinding = new Binding("DataContext." + info.Command)
                {
                    RelativeSource = new RelativeSource(RelativeSourceMode.FindAncestor, typeof(MainWindow), 1),
                    Mode = BindingMode.TwoWay,
                    UpdateSourceTrigger = UpdateSourceTrigger.PropertyChanged
                };
                check.SetBinding(ToggleSwitch.IsCheckedProperty, checkBoxBinding);
            }

            Items.Add(label);
        }
Ejemplo n.º 7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ServerRate = ((MahApps.Metro.Controls.NumericUpDown)(target));

            #line 64 "..\..\..\GUI\AIOSettingsControl.xaml"
                this.ServerRate.MouseLeave += new System.Windows.Input.MouseEventHandler(this.ServerRateChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.LogDebug = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 83 "..\..\..\GUI\AIOSettingsControl.xaml"
                this.LogDebug.MouseLeave += new System.Windows.Input.MouseEventHandler(this.LogDebugChanged);

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

            #line 10 "..\..\Sever.xaml"
                ((RCCSever.Sever)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MetroWindow_Loaded_1);

            #line default
            #line hidden
                return;

            case 2:

            #line 34 "..\..\Sever.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnvideo);

            #line default
            #line hidden
                return;

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

            case 4:

            #line 36 "..\..\Sever.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnsetting);

            #line default
            #line hidden
                return;

            case 5:

            #line 62 "..\..\Sever.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btncreate);

            #line default
            #line hidden
                return;

            case 6:
                this.BtnLien = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

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

            case 8:
                this.Progress1 = ((MahApps.Metro.Controls.ProgressIndicator)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 9
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SettingsFlyout = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 2:
                this.enabledSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 50 "..\..\MainWindow.xaml"
                this.enabledSwitch.IsCheckedChanged += new System.EventHandler(this.OnIsCheckedChanged);

            #line default
            #line hidden
                return;

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

            case 4:
                this.ScripList = ((System.Windows.Controls.ListBox)(target));

            #line 100 "..\..\MainWindow.xaml"
                this.ScripList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.OnSelectionChanged);

            #line default
            #line hidden
                return;

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

            case 6:
                this.ReflectTree = ((System.Windows.Controls.TreeView)(target));
                return;

            case 7:
                this.MessageEditor = ((ICSharpCode.AvalonEdit.TextEditor)(target));
                return;

            case 8:
                this.InfoEditor = ((ICSharpCode.AvalonEdit.TextEditor)(target));
                return;

            case 9:
                this.ScripEditor = ((ICSharpCode.AvalonEdit.TextEditor)(target));
                return;

            case 10:
                this.ToolBar1 = ((System.Windows.Controls.ToolBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.enabledSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.enabledSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
         return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.QuizWindowName = ((TwitchChatBotGUI.MenuItems.QuizSettings)(target));
                return;

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

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

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

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

            #line 65 "..\..\..\MenuItems\QuizSettings.xaml"
                this.OpenFile.Click += new System.Windows.RoutedEventHandler(this.OpenFileClick);

            #line default
            #line hidden
                return;

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

            case 7:
                this.RandomizeSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 8:
                this.ForgiveSmallMissplelling = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 9:

            #line 84 "..\..\..\MenuItems\QuizSettings.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AcceptClick);

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

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

            #line 11 "..\..\MainWindow.xaml"
                this._addButton.Click += new System.Windows.RoutedEventHandler(this._addButton_OnClick);

            #line default
            #line hidden
                return;

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

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

            #line 16 "..\..\MainWindow.xaml"
                this._loginButton.Click += new System.Windows.RoutedEventHandler(this._loginButton_OnClick);

            #line default
            #line hidden
                return;

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

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

            #line 21 "..\..\MainWindow.xaml"
                this._loadProfileButton.Click += new System.Windows.RoutedEventHandler(this._loadProfileButton_OnClick);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 2:
                this.toogle = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 15 "..\..\MainWindow.xaml"
                this.toogle.Checked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.toogle_Checked);

            #line default
            #line hidden

            #line 15 "..\..\MainWindow.xaml"
                this.toogle.Unchecked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.toogle_Unchecked);

            #line default
            #line hidden
                return;

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

            #line 43 "..\..\MainWindow.xaml"
                this.lampBtn.Click += new System.Windows.RoutedEventHandler(this.LampBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 60 "..\..\MainWindow.xaml"
                this.textBtn.Click += new System.Windows.RoutedEventHandler(this.TextBtn_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Focus = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 2:
                this.Type = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

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

            case 4:
                this.pnl1 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 5:
                this.CostFocus = ((MahApps.Metro.Controls.NumericUpDown)(target));
                return;

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

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

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

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

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

            case 11:
                this.btn2 = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 16
0
        private void ToggleSwitchfinal_Toggled(object sender, RoutedEventArgs e)
        {
            if (datagrid_vysledky_finalistu != null)
            {
                MahApps.Metro.Controls.ToggleSwitch tagbutton = sender as MahApps.Metro.Controls.ToggleSwitch;

                var index = datagrid_vysledky_finalistu.Columns.Single(c => c.Header.ToString() == tagbutton.Content.ToString()).DisplayIndex;

                if (tagbutton.IsOn == true)
                {
                    datagrid_vysledky_finalistu.Columns[index].Visibility = Visibility.Visible;
                }
                else
                {
                    datagrid_vysledky_finalistu.Columns[index].Visibility = Visibility.Collapsed;
                }
            }
        }
Ejemplo n.º 17
0
        public void UpdateFolderPanel(bool isChecked)
        {
            rightPanel.Children.Clear();
            ToggleSwitch DLCSwitch;
            var          preferences = new IniFile("preferences.ini");

            foreach (string folder in Directory.GetDirectories(DLC_XML.GetDLCPacks(preferences.Read("GamePath"), UseMods())))
            {
                DLCSwitch         = new MahApps.Metro.Controls.ToggleSwitch();
                DLCSwitch.Tag     = System.IO.Path.GetFileName(folder);
                DLCSwitch.Content = System.IO.Path.GetFileName(folder);
                Thickness margin = DLCSwitch.Margin;
                margin.Top          = 10;
                DLCSwitch.Margin    = margin;
                DLCSwitch.IsChecked = isChecked;
                AddDLCSwitch(DLCSwitch);
            }
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.pnl = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 2:
                this.VisibilityToggle = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 3:
                this.btn = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 21 "..\..\..\Views\SettingsSettingsView.xaml"
                ((WpfFramework.Views.SettingsSettingsView)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

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

            #line 33 "..\..\..\Views\SettingsSettingsView.xaml"
                this.TextBoxLocation.Drop += new System.Windows.DragEventHandler(this.TextBoxLocation_Drop);

            #line default
            #line hidden

            #line 33 "..\..\..\Views\SettingsSettingsView.xaml"
                this.TextBoxLocation.PreviewDragOver += new System.Windows.DragEventHandler(this.TextBoxLocation_PreviewDragOver);

            #line default
            #line hidden
                return;

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

            case 4:
                this.RadioButtonResetEverything = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 5:
                this.RadioButtonResetCustom = ((System.Windows.Controls.RadioButton)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 20
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

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

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

            case 5:
                this.playAplhaSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 6:
                this.takeScreenSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 7:
                this.monitorAppSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 8:
                this.launchButton = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 21
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.viewPort3d = ((HelixToolkit.Wpf.HelixViewport3D)(target));
                return;

            case 2:

            #line 30 "..\..\..\Result\ResultView.xaml"
                ((SharpGL.WPF.OpenGLControl)(target)).OpenGLInitialized += new SharpGL.SceneGraph.OpenGLEventHandler(this.OpenGLControl_OpenGLInitialized);

            #line default
            #line hidden
                return;

            case 3:
                this.enabledSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 22
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ToggleSwitchEnableExporter = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

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

            #line 158 "..\..\..\..\Views\Settings\SettingsExcelExporterView.xaml"
                this.tbTemplatePath.PreviewDragOver += new System.Windows.DragEventHandler(this.TextBoxLocation_PreviewDragOver);

            #line default
            #line hidden
                return;

            case 3:
                this.dgTemplateSettings = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DisplayLevel = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 2:
                this.AcceptEula = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

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

            case 4:
                this.ForceAppShutdown = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 5:
                this.SharedComputerLicensing = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

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

            #line 138 "..\..\..\..\ExampleViews\DisplayView - Copy.xaml"
                this.displayNext.Click += new System.Windows.RoutedEventHandler(this.displayNext_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:
                this.EditingTaskFlyout = ((Pyte.Pages.EditingTaskFlyoutContent)(target));
                return;

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

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

            case 4:
                this.ToggleSwitchIsImportant = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 5:
                this.StartDateTimePicker = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 6:
                this.FinishDateTimePicker = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 7:
                this.FirstColor = ((System.Windows.Controls.RadioButton)(target));

            #line 76 "..\..\..\Pages\EditingTaskFlyoutContent.xaml"
                this.FirstColor.Click += new System.Windows.RoutedEventHandler(this.FirstColor_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.SecondColor = ((System.Windows.Controls.RadioButton)(target));

            #line 77 "..\..\..\Pages\EditingTaskFlyoutContent.xaml"
                this.SecondColor.Click += new System.Windows.RoutedEventHandler(this.SecondColor_Click);

            #line default
            #line hidden
                return;

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

            #line 78 "..\..\..\Pages\EditingTaskFlyoutContent.xaml"
                this.ThirdColor.Click += new System.Windows.RoutedEventHandler(this.ThirdColor_Click);

            #line default
            #line hidden
                return;

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

            #line 79 "..\..\..\Pages\EditingTaskFlyoutContent.xaml"
                this.FourthColor.Click += new System.Windows.RoutedEventHandler(this.FourthColor_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.FifthColor = ((System.Windows.Controls.RadioButton)(target));

            #line 80 "..\..\..\Pages\EditingTaskFlyoutContent.xaml"
                this.FifthColor.Click += new System.Windows.RoutedEventHandler(this.FifthColor_Click);

            #line default
            #line hidden
                return;

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

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

            #line 98 "..\..\..\Pages\EditingTaskFlyoutContent.xaml"
                this.ListBoxForNewMarks.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.MarksListBox_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 105 "..\..\..\Pages\EditingTaskFlyoutContent.xaml"
                this.EditMissionButton.Click += new System.Windows.RoutedEventHandler(this.EditMissionButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.DisplayLevel = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 2:
     this.AcceptEula = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 3:
     this.AutoActivate = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 4:
     this.ForceAppShutdown = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 5:
     this.SharedComputerLicensing = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 6:
     this.displayNext = ((System.Windows.Controls.Button)(target));
     
     #line 138 "..\..\..\..\ExampleViews\DisplayView - Copy.xaml"
     this.displayNext.Click += new System.Windows.RoutedEventHandler(this.displayNext_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 26
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.cbxGroupList = ((System.Windows.Controls.ComboBox)(target));

            #line 19 "..\..\..\UserControls\InvoiceOperations.xaml"
                this.cbxGroupList.Loaded += new System.Windows.RoutedEventHandler(this.cbxGroupList_OnLoaded);

            #line default
            #line hidden
                return;

            case 2:
                this.dpSmall = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 3:
                this.dpBig = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 4:
                this.tsDate = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

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

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

            case 7:
                this.tsPrice = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 8:
                this.txtProducts = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.tsProducts = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 10:
                this.tsCut = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 11:
                this.dg = ((System.Windows.Controls.DataGrid)(target));
                return;

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

            #line 85 "..\..\..\UserControls\InvoiceOperations.xaml"
                this.btnSearchInvoice.Click += new System.Windows.RoutedEventHandler(this.btnSearchInvoice_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.EmotivStatusLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 2:
     this.Signal = ((System.Windows.Controls.Image)(target));
     return;
     case 3:
     this.Battery = ((System.Windows.Controls.Image)(target));
     return;
     case 4:
     this.ShowSettingsBtn = ((System.Windows.Controls.Button)(target));
     
     #line 228 "..\..\MainWindow.xaml"
     this.ShowSettingsBtn.Click += new System.Windows.RoutedEventHandler(this.ShowSettingsBtn_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.HelpBtn = ((System.Windows.Controls.Button)(target));
     
     #line 229 "..\..\MainWindow.xaml"
     this.HelpBtn.Click += new System.Windows.RoutedEventHandler(this.HelpBtn_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.PageHolder = ((System.Windows.Controls.Grid)(target));
     return;
     case 7:
     this.MainWindowPage = ((System.Windows.Controls.Grid)(target));
     return;
     case 8:
     this.MainHeadset = ((System.Windows.Controls.Grid)(target));
     return;
     case 9:
     this.AF3ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 10:
     this.AF4ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 11:
     this.F7ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 12:
     this.F3ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 13:
     this.F4ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 14:
     this.F8ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 15:
     this.FC5ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 16:
     this.FC6ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 17:
     this.T7ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 18:
     this.T8ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 19:
     this.CMSContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 20:
     this.DRLContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 21:
     this.P7ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 22:
     this.P8ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 23:
     this.O1ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 24:
     this.O2ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 25:
     this.MainEmotivToggleSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 259 "..\..\MainWindow.xaml"
     this.MainEmotivToggleSwitch.Click += new System.EventHandler<System.Windows.RoutedEventArgs>(this.MainEmotivToggleSwitch_Click);
     
     #line default
     #line hidden
     return;
     case 26:
     this.MainUptimeLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 27:
     this.MainUptime = ((System.Windows.Controls.Label)(target));
     return;
     case 28:
     this.MainUserLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 29:
     this.MainUsersComboBox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 263 "..\..\MainWindow.xaml"
     this.MainUsersComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.MainUsersComboBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 30:
     this.MainAddUserBtn = ((MahApps.Metro.Controls.AppBarButton)(target));
     
     #line 264 "..\..\MainWindow.xaml"
     this.MainAddUserBtn.Click += new System.Windows.RoutedEventHandler(this.AddUserBtn_Click);
     
     #line default
     #line hidden
     return;
     case 31:
     this.MainRemoveUserBtn = ((MahApps.Metro.Controls.AppBarButton)(target));
     
     #line 265 "..\..\MainWindow.xaml"
     this.MainRemoveUserBtn.Click += new System.Windows.RoutedEventHandler(this.RemoveUserBtn_Click);
     
     #line default
     #line hidden
     return;
     case 32:
     this.MainTrainUserBtn = ((MahApps.Metro.Controls.AppBarButton)(target));
     
     #line 266 "..\..\MainWindow.xaml"
     this.MainTrainUserBtn.Click += new System.Windows.RoutedEventHandler(this.TrainUserBtn_Click);
     
     #line default
     #line hidden
     return;
     case 33:
     this.StartBtn = ((MahApps.Metro.Controls.AppBarButton)(target));
     
     #line 267 "..\..\MainWindow.xaml"
     this.StartBtn.Click += new System.Windows.RoutedEventHandler(this.StartBtn_Click);
     
     #line default
     #line hidden
     return;
     case 34:
     this.SSVEPBtn = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 269 "..\..\MainWindow.xaml"
     this.SSVEPBtn.Click += new System.Windows.RoutedEventHandler(this.SSVEPBtn_Click);
     
     #line default
     #line hidden
     return;
     case 35:
     this.EMGBtn = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 273 "..\..\MainWindow.xaml"
     this.EMGBtn.Click += new System.Windows.RoutedEventHandler(this.EMGBtn_Click);
     
     #line default
     #line hidden
     return;
     case 36:
     this.EEGBtn = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 277 "..\..\MainWindow.xaml"
     this.EEGBtn.Click += new System.Windows.RoutedEventHandler(this.EEGBtn_Click);
     
     #line default
     #line hidden
     return;
     case 37:
     this.OWIArmBtn = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 281 "..\..\MainWindow.xaml"
     this.OWIArmBtn.Click += new System.Windows.RoutedEventHandler(this.OWIArmBtn_Click);
     
     #line default
     #line hidden
     return;
     case 38:
     this.TalosBtn = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 285 "..\..\MainWindow.xaml"
     this.TalosBtn.Click += new System.Windows.RoutedEventHandler(this.TalosBtn_Click);
     
     #line default
     #line hidden
     return;
     case 39:
     this.R2D2Btn = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 289 "..\..\MainWindow.xaml"
     this.R2D2Btn.Click += new System.Windows.RoutedEventHandler(this.R2D2Btn_Click);
     
     #line default
     #line hidden
     return;
     case 40:
     this.Step1Lbl = ((System.Windows.Controls.Label)(target));
     return;
     case 41:
     this.Step2Lbl = ((System.Windows.Controls.Label)(target));
     return;
     case 42:
     this.Step3Lbl = ((System.Windows.Controls.Label)(target));
     return;
     case 43:
     this.SelectMethodLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 44:
     this.SelectRobotLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 45:
     this.SettingsPage = ((System.Windows.Controls.Grid)(target));
     return;
     case 46:
     this.BackToMainWindowBtn = ((System.Windows.Controls.Button)(target));
     
     #line 308 "..\..\MainWindow.xaml"
     this.BackToMainWindowBtn.Click += new System.Windows.RoutedEventHandler(this.BackToMainWindowBtn_Click);
     
     #line default
     #line hidden
     return;
     case 47:
     this.SettingsLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 48:
     this.SettingsSidebar = ((System.Windows.Controls.Grid)(target));
     return;
     case 49:
     this.EmotivToggleSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 311 "..\..\MainWindow.xaml"
     this.EmotivToggleSwitch.Click += new System.EventHandler<System.Windows.RoutedEventArgs>(this.EmotivToggleSwitch_Click);
     
     #line default
     #line hidden
     return;
     case 50:
     this.UptimeLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 51:
     this.Uptime = ((System.Windows.Controls.Label)(target));
     return;
     case 52:
     this.Headset = ((System.Windows.Controls.Grid)(target));
     return;
     case 53:
     this.AF3Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 54:
     this.AF4Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 55:
     this.F7Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 56:
     this.F3Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 57:
     this.F4Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 58:
     this.F8Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 59:
     this.FC5Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 60:
     this.FC6Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 61:
     this.T7Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 62:
     this.T8Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 63:
     this.CMSContact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 64:
     this.DRLContact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 65:
     this.P7Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 66:
     this.P8Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 67:
     this.O1Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 68:
     this.O2Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 69:
     this.UserLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 70:
     this.UsersComboBox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 340 "..\..\MainWindow.xaml"
     this.UsersComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.UsersComboBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 71:
     this.AddUserBtn = ((MahApps.Metro.Controls.AppBarButton)(target));
     
     #line 341 "..\..\MainWindow.xaml"
     this.AddUserBtn.Click += new System.Windows.RoutedEventHandler(this.AddUserBtn_Click);
     
     #line default
     #line hidden
     return;
     case 72:
     this.RemoveUserBtn = ((MahApps.Metro.Controls.AppBarButton)(target));
     
     #line 342 "..\..\MainWindow.xaml"
     this.RemoveUserBtn.Click += new System.Windows.RoutedEventHandler(this.RemoveUserBtn_Click);
     
     #line default
     #line hidden
     return;
     case 73:
     this.SaveUserBtn = ((MahApps.Metro.Controls.AppBarButton)(target));
     
     #line 343 "..\..\MainWindow.xaml"
     this.SaveUserBtn.Click += new System.Windows.RoutedEventHandler(this.SaveUserBtn_Click);
     
     #line default
     #line hidden
     return;
     case 74:
     this.TrainUserBtn = ((MahApps.Metro.Controls.AppBarButton)(target));
     
     #line 344 "..\..\MainWindow.xaml"
     this.TrainUserBtn.Click += new System.Windows.RoutedEventHandler(this.SettingsTrainBtn_Click);
     
     #line default
     #line hidden
     return;
     case 75:
     this.SettingsMenu = ((System.Windows.Controls.Grid)(target));
     return;
     case 76:
     this.ClenchRect = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 77:
     this.EyebrowRect = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 78:
     this.Clench = ((System.Windows.Controls.Label)(target));
     return;
     case 79:
     this.Eyebrows = ((System.Windows.Controls.Label)(target));
     return;
     case 80:
     this.ClenchCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 81:
     this.EyebrowsCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 82:
     this.SmileCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 83:
     this.SmileRect = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 84:
     this.Smile = ((System.Windows.Controls.Label)(target));
     return;
     case 85:
     this.LowerFaceActionLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 86:
     this.LowerFaceAction = ((System.Windows.Controls.Label)(target));
     return;
     case 87:
     this.UpperFaceActionLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 88:
     this.UpperFaceAction = ((System.Windows.Controls.Label)(target));
     return;
     case 89:
     this.MiddleFaceActionLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 90:
     this.MiddleFaceAction = ((System.Windows.Controls.Label)(target));
     return;
     case 91:
     this.BlinkCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 92:
     this.FurrowCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 93:
     this.LaughCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 94:
     this.SmirkLeftCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 95:
     this.SmirkRightCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 96:
     this.WinkLeftCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 97:
     this.WinkRightCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 98:
     this.AffectivChart = ((Telerik.Windows.Controls.RadCartesianChart)(target));
     return;
     case 99:
     this.cognitivPower = ((System.Windows.Controls.Label)(target));
     return;
     case 100:
     this.cognitivIsActive = ((System.Windows.Controls.Label)(target));
     return;
     case 101:
     this.cognitivIsState = ((System.Windows.Controls.Label)(target));
     return;
     case 102:
     this.GyroStatusLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 103:
     this.GyroStatus = ((System.Windows.Controls.Label)(target));
     return;
     case 104:
     this.xLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 105:
     this.xValue = ((System.Windows.Controls.Label)(target));
     return;
     case 106:
     this.yLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 107:
     this.yValue = ((System.Windows.Controls.Label)(target));
     return;
     case 108:
     this.xValueMax = ((System.Windows.Controls.Label)(target));
     return;
     case 109:
     this.yValueMax = ((System.Windows.Controls.Label)(target));
     return;
     case 110:
     this.GyroXChart = ((Telerik.Windows.Controls.RadCartesianChart)(target));
     return;
     case 111:
     this.GyroYChart = ((Telerik.Windows.Controls.RadCartesianChart)(target));
     return;
     case 112:
     this.xLbl_Copy = ((System.Windows.Controls.Label)(target));
     return;
     case 113:
     this.yLbl_Copy = ((System.Windows.Controls.Label)(target));
     return;
     case 114:
     this.recalibrateGyroBtn = ((System.Windows.Controls.Button)(target));
     
     #line 541 "..\..\MainWindow.xaml"
     this.recalibrateGyroBtn.Click += new System.Windows.RoutedEventHandler(this.recalibrateGyroBtn_Click);
     
     #line default
     #line hidden
     return;
     case 115:
     this.SamplingRateLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 116:
     this.SamplingRate = ((System.Windows.Controls.Label)(target));
     return;
     case 117:
     this.BufferSize = ((System.Windows.Controls.Label)(target));
     return;
     case 118:
     this.BufferSizeLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 119:
     this.SequenceNumberChart = ((Telerik.Windows.Controls.RadCartesianChart)(target));
     return;
     case 120:
     this.PacketLossChart = ((Telerik.Windows.Controls.RadCartesianChart)(target));
     return;
     case 121:
     this.O1Chart = ((Telerik.Windows.Controls.RadCartesianChart)(target));
     return;
     case 122:
     this.O2Chart = ((Telerik.Windows.Controls.RadCartesianChart)(target));
     return;
     case 123:
     this.AF4Lbl2 = ((System.Windows.Controls.Label)(target));
     return;
     case 124:
     this.AF4butval = ((System.Windows.Controls.Label)(target));
     return;
     case 125:
     this.AF4Lbl1 = ((System.Windows.Controls.Label)(target));
     return;
     case 126:
     this.AF4val = ((System.Windows.Controls.Label)(target));
     return;
     case 127:
     
     #line 712 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);
     
     #line default
     #line hidden
     return;
     case 128:
     this.R2D2ToggleSwitch_Copy = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 727 "..\..\MainWindow.xaml"
     this.R2D2ToggleSwitch_Copy.Checked += new System.EventHandler<System.Windows.RoutedEventArgs>(this.R2D2ToggleSwitch_Checked);
     
     #line default
     #line hidden
     
     #line 727 "..\..\MainWindow.xaml"
     this.R2D2ToggleSwitch_Copy.Unchecked += new System.EventHandler<System.Windows.RoutedEventArgs>(this.R2D2ToggleSwitch_Unchecked);
     
     #line default
     #line hidden
     return;
     case 129:
     this.R2D2MoveForwardBtn = ((System.Windows.Controls.Button)(target));
     
     #line 728 "..\..\MainWindow.xaml"
     this.R2D2MoveForwardBtn.Click += new System.Windows.RoutedEventHandler(this.R2D2MoveForwardBtn_Click);
     
     #line default
     #line hidden
     return;
     case 130:
     this.R2D2MoveBackBtn = ((System.Windows.Controls.Button)(target));
     
     #line 729 "..\..\MainWindow.xaml"
     this.R2D2MoveBackBtn.Click += new System.Windows.RoutedEventHandler(this.R2D2MoveBackBtn_Click);
     
     #line default
     #line hidden
     return;
     case 131:
     this.R2D2TurnLeftBtn = ((System.Windows.Controls.Button)(target));
     
     #line 730 "..\..\MainWindow.xaml"
     this.R2D2TurnLeftBtn.Click += new System.Windows.RoutedEventHandler(this.R2D2TurnLeftBtn_Click);
     
     #line default
     #line hidden
     return;
     case 132:
     this.R2D2TurnRightBtn = ((System.Windows.Controls.Button)(target));
     
     #line 731 "..\..\MainWindow.xaml"
     this.R2D2TurnRightBtn.Click += new System.Windows.RoutedEventHandler(this.R2D2TurnRightBtn_Click);
     
     #line default
     #line hidden
     return;
     case 133:
     this.R2D2StopBtn = ((System.Windows.Controls.Button)(target));
     
     #line 732 "..\..\MainWindow.xaml"
     this.R2D2StopBtn.Click += new System.Windows.RoutedEventHandler(this.R2D2StopBtn_Click);
     
     #line default
     #line hidden
     return;
     case 134:
     this.Light = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 738 "..\..\MainWindow.xaml"
     this.Light.Click += new System.EventHandler<System.Windows.RoutedEventArgs>(this.Light_Click);
     
     #line default
     #line hidden
     return;
     case 135:
     this.ClawUpBtn = ((System.Windows.Controls.Button)(target));
     
     #line 739 "..\..\MainWindow.xaml"
     this.ClawUpBtn.Click += new System.Windows.RoutedEventHandler(this.GrippersUpBtn_Click);
     
     #line default
     #line hidden
     return;
     case 136:
     this.ClawDownBtn = ((System.Windows.Controls.Button)(target));
     
     #line 740 "..\..\MainWindow.xaml"
     this.ClawDownBtn.Click += new System.Windows.RoutedEventHandler(this.GrippersDownBtn_Click);
     
     #line default
     #line hidden
     return;
     case 137:
     this.ElbowUpBtn = ((System.Windows.Controls.Button)(target));
     
     #line 741 "..\..\MainWindow.xaml"
     this.ElbowUpBtn.Click += new System.Windows.RoutedEventHandler(this.ElbowUpBtn_Click);
     
     #line default
     #line hidden
     return;
     case 138:
     this.ElbowownBtn = ((System.Windows.Controls.Button)(target));
     
     #line 742 "..\..\MainWindow.xaml"
     this.ElbowownBtn.Click += new System.Windows.RoutedEventHandler(this.ElbowownBtn_Click);
     
     #line default
     #line hidden
     return;
     case 139:
     this.ArmUpBtn = ((System.Windows.Controls.Button)(target));
     
     #line 743 "..\..\MainWindow.xaml"
     this.ArmUpBtn.Click += new System.Windows.RoutedEventHandler(this.ArmUpBtn_Click);
     
     #line default
     #line hidden
     return;
     case 140:
     this.ArmDownBtn = ((System.Windows.Controls.Button)(target));
     
     #line 744 "..\..\MainWindow.xaml"
     this.ArmDownBtn.Click += new System.Windows.RoutedEventHandler(this.ArmDownBtn_Click);
     
     #line default
     #line hidden
     return;
     case 141:
     this.ArmRotateLeftBtn = ((System.Windows.Controls.Button)(target));
     
     #line 745 "..\..\MainWindow.xaml"
     this.ArmRotateLeftBtn.Click += new System.Windows.RoutedEventHandler(this.ArmRotateLeftBtn_Click);
     
     #line default
     #line hidden
     return;
     case 142:
     this.ArmRotateRightBtn = ((System.Windows.Controls.Button)(target));
     
     #line 746 "..\..\MainWindow.xaml"
     this.ArmRotateRightBtn.Click += new System.Windows.RoutedEventHandler(this.ArmRotateRightBtn_Click);
     
     #line default
     #line hidden
     return;
     case 143:
     this.SecondsTxtBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 144:
     this.Grippers = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 749 "..\..\MainWindow.xaml"
     this.Grippers.Click += new System.EventHandler<System.Windows.RoutedEventArgs>(this.Grippers_Click);
     
     #line default
     #line hidden
     return;
     case 145:
     this.HandshakeBtn = ((System.Windows.Controls.Button)(target));
     
     #line 750 "..\..\MainWindow.xaml"
     this.HandshakeBtn.Click += new System.Windows.RoutedEventHandler(this.HandshakeBtn_Click);
     
     #line default
     #line hidden
     return;
     case 146:
     this.TalosToggleSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 757 "..\..\MainWindow.xaml"
     this.TalosToggleSwitch.Unchecked += new System.EventHandler<System.Windows.RoutedEventArgs>(this.R2D2ToggleSwitch_Unchecked);
     
     #line default
     #line hidden
     
     #line 757 "..\..\MainWindow.xaml"
     this.TalosToggleSwitch.Checked += new System.EventHandler<System.Windows.RoutedEventArgs>(this.TalosToggleSwitch_Checked);
     
     #line default
     #line hidden
     return;
     case 147:
     this.TalosMoveForwardBtn = ((System.Windows.Controls.Button)(target));
     
     #line 758 "..\..\MainWindow.xaml"
     this.TalosMoveForwardBtn.Click += new System.Windows.RoutedEventHandler(this.TalosMoveForwardBtn_Click);
     
     #line default
     #line hidden
     return;
     case 148:
     this.TalosMoveBackBtn = ((System.Windows.Controls.Button)(target));
     
     #line 759 "..\..\MainWindow.xaml"
     this.TalosMoveBackBtn.Click += new System.Windows.RoutedEventHandler(this.TalosMoveBackBtn_Click);
     
     #line default
     #line hidden
     return;
     case 149:
     this.TalosTurnLeftBtn = ((System.Windows.Controls.Button)(target));
     
     #line 760 "..\..\MainWindow.xaml"
     this.TalosTurnLeftBtn.Click += new System.Windows.RoutedEventHandler(this.TalosTurnLeftBtn_Click);
     
     #line default
     #line hidden
     return;
     case 150:
     this.TalosTurnRightBtn = ((System.Windows.Controls.Button)(target));
     
     #line 761 "..\..\MainWindow.xaml"
     this.TalosTurnRightBtn.Click += new System.Windows.RoutedEventHandler(this.TalosTurnRightBtn_Click);
     
     #line default
     #line hidden
     return;
     case 151:
     this.TalosStopBtn = ((System.Windows.Controls.Button)(target));
     
     #line 762 "..\..\MainWindow.xaml"
     this.TalosStopBtn.Click += new System.Windows.RoutedEventHandler(this.TalosStopBtn_Click);
     
     #line default
     #line hidden
     return;
     case 152:
     this.TrainingPage = ((System.Windows.Controls.Grid)(target));
     return;
     case 153:
     this.BackToMainWindowBtn2 = ((System.Windows.Controls.Button)(target));
     
     #line 779 "..\..\MainWindow.xaml"
     this.BackToMainWindowBtn2.Click += new System.Windows.RoutedEventHandler(this.ShowSettingsBtn_Click);
     
     #line default
     #line hidden
     return;
     case 154:
     this.TrainingLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 155:
     this.StartSSVEPTrainingBtn = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 782 "..\..\MainWindow.xaml"
     this.StartSSVEPTrainingBtn.Click += new System.Windows.RoutedEventHandler(this.StartSSVEPTrainingBtn_Click);
     
     #line default
     #line hidden
     return;
     case 156:
     this.StartEEGTrainingBtn = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 786 "..\..\MainWindow.xaml"
     this.StartEEGTrainingBtn.Click += new System.Windows.RoutedEventHandler(this.StartCognitivTrainingBtn_Click);
     
     #line default
     #line hidden
     return;
     case 157:
     this.SelectTrainingMethodLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 158:
     this.SSVEPTrainingPage = ((System.Windows.Controls.Grid)(target));
     return;
     case 159:
     
     #line 797 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 160:
     this.SSVEPTrainingRectangle = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 161:
     this.BackToMainWindowBtn1 = ((System.Windows.Controls.Button)(target));
     
     #line 799 "..\..\MainWindow.xaml"
     this.BackToMainWindowBtn1.Click += new System.Windows.RoutedEventHandler(this.BackToMainWindowBtn_Click);
     
     #line default
     #line hidden
     return;
     case 162:
     this.SSVEPTrainingPageLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 163:
     this.CognitivTrainingPage = ((System.Windows.Controls.Grid)(target));
     return;
     case 164:
     
     #line 808 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 165:
     this.CognitivTrainingRectangle = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 166:
     this.BackToMainWindowBtn3 = ((System.Windows.Controls.Button)(target));
     
     #line 810 "..\..\MainWindow.xaml"
     this.BackToMainWindowBtn3.Click += new System.Windows.RoutedEventHandler(this.BackToMainWindowBtn_Click);
     
     #line default
     #line hidden
     return;
     case 167:
     this.EEGTrainingPageLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 168:
     this.SSVEPPage = ((System.Windows.Controls.Grid)(target));
     return;
     case 169:
     
     #line 814 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 170:
     this.SSVEPTrainingRectangle1 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 171:
     this.BackToMainWindowBtn4 = ((System.Windows.Controls.Button)(target));
     
     #line 816 "..\..\MainWindow.xaml"
     this.BackToMainWindowBtn4.Click += new System.Windows.RoutedEventHandler(this.BackToMainWindowBtn_Click);
     
     #line default
     #line hidden
     return;
     case 172:
     this.SSVEPTrainingPageLbl1 = ((System.Windows.Controls.Label)(target));
     return;
     case 173:
     this.CognitivPage = ((System.Windows.Controls.Grid)(target));
     return;
     case 174:
     
     #line 821 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 175:
     this.CognitivTrainingRectangle1 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 176:
     this.BackToMainWindowBtn5 = ((System.Windows.Controls.Button)(target));
     
     #line 823 "..\..\MainWindow.xaml"
     this.BackToMainWindowBtn5.Click += new System.Windows.RoutedEventHandler(this.BackToMainWindowBtn_Click);
     
     #line default
     #line hidden
     return;
     case 177:
     this.EEGTrainingPageLbl1 = ((System.Windows.Controls.Label)(target));
     return;
     case 178:
     this.EMGPage = ((System.Windows.Controls.Grid)(target));
     return;
     case 179:
     
     #line 827 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 180:
     this.SSVEPTrainingRectangle2 = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 181:
     this.BackToMainWindowBtn6 = ((System.Windows.Controls.Button)(target));
     
     #line 829 "..\..\MainWindow.xaml"
     this.BackToMainWindowBtn6.Click += new System.Windows.RoutedEventHandler(this.BackToMainWindowBtn_Click);
     
     #line default
     #line hidden
     return;
     case 182:
     this.SSVEPTrainingPageLbl2 = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 28
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.prOnExit = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 2:
     this.prOnModify = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 3:
     this.weatherLocation = ((System.Windows.Controls.TextBox)(target));
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 9 "..\..\..\..\ExampleViews\GenerateView.xaml"
     ((MetroDemo.ExampleViews.GenerateView)(target)).Loaded += new System.Windows.RoutedEventHandler(this.GenerateView_OnLoaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.Product = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.MainTabControl = ((MahApps.Metro.Controls.MetroAnimatedSingleRowTabControl)(target));
     return;
     case 4:
     this.PublisherRow = ((System.Windows.Controls.RowDefinition)(target));
     return;
     case 5:
     this.SpacerRow = ((System.Windows.Controls.RowDefinition)(target));
     return;
     case 6:
     this.InstallMsi = ((System.Windows.Controls.RadioButton)(target));
     
     #line 74 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.InstallMsi.Checked += new System.Windows.RoutedEventHandler(this.InstallExecutable_OnChecked);
     
     #line default
     #line hidden
     return;
     case 7:
     this.InstallExecutable = ((System.Windows.Controls.RadioButton)(target));
     
     #line 78 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.InstallExecutable.Checked += new System.Windows.RoutedEventHandler(this.InstallExecutable_OnChecked);
     
     #line default
     #line hidden
     return;
     case 8:
     this.SignInstaller = ((System.Windows.Controls.CheckBox)(target));
     
     #line 108 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.SignInstaller.Checked += new System.Windows.RoutedEventHandler(this.SignWithCert_OnCheck);
     
     #line default
     #line hidden
     
     #line 108 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.SignInstaller.Unchecked += new System.Windows.RoutedEventHandler(this.SignWithCert_OnCheck);
     
     #line default
     #line hidden
     return;
     case 9:
     this.OpenCertificateBrowser = ((System.Windows.Controls.Button)(target));
     
     #line 112 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.OpenCertificateBrowser.Click += new System.Windows.RoutedEventHandler(this.OpenCertificateBrowser_OnClick);
     
     #line default
     #line hidden
     return;
     case 10:
     this.OpenCertGenerator = ((System.Windows.Controls.Button)(target));
     
     #line 115 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.OpenCertGenerator.Click += new System.Windows.RoutedEventHandler(this.OpenCertGenerator_OnClick);
     
     #line default
     #line hidden
     return;
     case 11:
     this.Publisher = ((System.Windows.Controls.TextBox)(target));
     return;
     case 12:
     this.SilentInstall = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 163 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.SilentInstall.Checked += new System.EventHandler<System.Windows.RoutedEventArgs>(this.SilentInstall_OnChecked);
     
     #line default
     #line hidden
     
     #line 163 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.SilentInstall.Unchecked += new System.EventHandler<System.Windows.RoutedEventArgs>(this.SilentInstall_OnChecked);
     
     #line default
     #line hidden
     return;
     case 13:
     this.FileSavePath = ((System.Windows.Controls.TextBox)(target));
     
     #line 181 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.FileSavePath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.FileSavePath_OnTextChanged);
     
     #line default
     #line hidden
     return;
     case 14:
     this.SaveButton = ((System.Windows.Controls.Button)(target));
     
     #line 184 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.SaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.OpenExeFolderButton = ((System.Windows.Controls.Button)(target));
     
     #line 185 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.OpenExeFolderButton.Click += new System.Windows.RoutedEventHandler(this.OpenExeFolderButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 16:
     this.IncludeBuild = ((System.Windows.Controls.CheckBox)(target));
     
     #line 209 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.IncludeBuild.Checked += new System.Windows.RoutedEventHandler(this.IncludeBuild_OnChecked);
     
     #line default
     #line hidden
     
     #line 209 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.IncludeBuild.Unchecked += new System.Windows.RoutedEventHandler(this.IncludeBuild_OnChecked);
     
     #line default
     #line hidden
     return;
     case 17:
     this.EmbedOfficeInstall = ((System.Windows.Controls.Button)(target));
     
     #line 212 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.EmbedOfficeInstall.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 18:
     this.SourceFilePath = ((System.Windows.Controls.Grid)(target));
     return;
     case 19:
     this.SourcePathLabel = ((System.Windows.Controls.Label)(target));
     return;
     case 20:
     this.BuildFilePath = ((System.Windows.Controls.TextBox)(target));
     
     #line 237 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.BuildFilePath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.BuildFilePath_OnTextChanged);
     
     #line default
     #line hidden
     return;
     case 21:
     this.BrowseSourcePathButton = ((System.Windows.Controls.Button)(target));
     
     #line 241 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.BrowseSourcePathButton.Click += new System.Windows.RoutedEventHandler(this.BrowseSourcePathButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 22:
     this.OpenFolderButton = ((System.Windows.Controls.Button)(target));
     
     #line 243 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.OpenFolderButton.Click += new System.Windows.RoutedEventHandler(this.OpenFolderButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 23:
     this.WaitImage = ((System.Windows.Controls.Image)(target));
     return;
     case 24:
     this.PreviousButton = ((System.Windows.Controls.Button)(target));
     
     #line 268 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.PreviousButton.Click += new System.Windows.RoutedEventHandler(this.PreviousButton_Click);
     
     #line default
     #line hidden
     return;
     case 25:
     this.GenerateButton = ((System.Windows.Controls.Button)(target));
     
     #line 269 "..\..\..\..\ExampleViews\GenerateView.xaml"
     this.GenerateButton.Click += new System.Windows.RoutedEventHandler(this.GenerateButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 26:
     this.xmlBrowser = ((MahApps.Metro.Controls.XmlBrowser.XmlBrowserControl)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 30
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 9:

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

            #line default
            #line hidden
                return;

            case 10:
                this.SourceChange = ((System.Windows.Controls.ListView)(target));
                return;

            case 11:
                this.SureSource = ((System.Windows.Controls.MenuItem)(target));

            #line 81 "..\..\MainWindow.xaml"
                this.SureSource.Click += new System.Windows.RoutedEventHandler(this.SureSource_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.quitSource = ((System.Windows.Controls.MenuItem)(target));

            #line 82 "..\..\MainWindow.xaml"
                this.quitSource.Click += new System.Windows.RoutedEventHandler(this.QuitSource_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.bookshelf = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 14:
                this.FertilizingArea = ((System.Windows.Controls.TabItem)(target));
                return;

            case 15:
                this.FattenArea = ((System.Windows.Controls.ListView)(target));
                return;

            case 16:
                this.MoveOut = ((System.Windows.Controls.MenuItem)(target));

            #line 112 "..\..\MainWindow.xaml"
                this.MoveOut.Click += new System.Windows.RoutedEventHandler(this.MoveOut_Click);

            #line default
            #line hidden
                return;

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

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

            #line 125 "..\..\MainWindow.xaml"
                this.SearchList.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.SearchList_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 19:
                this.LatestChapters = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 20:
                this.cm = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 21:
                this.Read = ((System.Windows.Controls.MenuItem)(target));

            #line 137 "..\..\MainWindow.xaml"
                this.Read.Click += new System.Windows.RoutedEventHandler(this.Read_Click_1);

            #line default
            #line hidden
                return;

            case 22:
                this.JoinBookshelves = ((System.Windows.Controls.MenuItem)(target));

            #line 138 "..\..\MainWindow.xaml"
                this.JoinBookshelves.Click += new System.Windows.RoutedEventHandler(this.JoinBookshelves_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.ViewDetails = ((System.Windows.Controls.MenuItem)(target));

            #line 139 "..\..\MainWindow.xaml"
                this.ViewDetails.Click += new System.Windows.RoutedEventHandler(this.ViewDetails_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.empty = ((System.Windows.Controls.MenuItem)(target));

            #line 140 "..\..\MainWindow.xaml"
                this.empty.Click += new System.Windows.RoutedEventHandler(this.Empty_Click);

            #line default
            #line hidden
                return;

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

            case 26:
                this.BookSourceName = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            #line 158 "..\..\MainWindow.xaml"
                this.search.Click += new System.Windows.RoutedEventHandler(this.Search_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.Typeface = ((System.Windows.Controls.ComboBox)(target));

            #line 171 "..\..\MainWindow.xaml"
                this.Typeface.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SaveConfiguration);

            #line default
            #line hidden
                return;

            case 29:
                this.TypefaceSize = ((System.Windows.Controls.ComboBox)(target));

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

            #line default
            #line hidden
                return;

            case 30:
                this.theme = ((System.Windows.Controls.ComboBox)(target));

            #line 175 "..\..\MainWindow.xaml"
                this.theme.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SaveConfiguration);

            #line default
            #line hidden
                return;

            case 31:
                this.SourceStation = ((System.Windows.Controls.ComboBox)(target));

            #line 177 "..\..\MainWindow.xaml"
                this.SourceStation.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SaveConfiguration);

            #line default
            #line hidden
                return;

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

            case 33:
                this.SourceManagement = ((System.Windows.Controls.Button)(target));

            #line 189 "..\..\MainWindow.xaml"
                this.SourceManagement.Click += new System.Windows.RoutedEventHandler(this.SourceManagement_Click);

            #line default
            #line hidden
                return;

            case 34:
                this.fatten = ((System.Windows.Controls.ComboBox)(target));

            #line 191 "..\..\MainWindow.xaml"
                this.fatten.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SaveConfiguration);

            #line default
            #line hidden
                return;

            case 35:
                this.BoolFertilizingArea = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 192 "..\..\MainWindow.xaml"
                this.BoolFertilizingArea.Click += new System.EventHandler <System.Windows.RoutedEventArgs>(this.BoolFertilizingArea_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 31
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.btn1 = ((System.Windows.Controls.Button)(target));
     
     #line 77 "..\..\..\MainWindow.xaml"
     this.btn1.Click += new System.Windows.RoutedEventHandler(this.btn1_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     this.btn2 = ((System.Windows.Controls.Button)(target));
     return;
     case 3:
     this.listView1 = ((System.Windows.Controls.ListView)(target));
     return;
     case 4:
     this.togShowMode = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 32
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PrincipalScreen1 = ((sistemaCorporativo.FORMS.principalScreen.PrincipalScreen)(target));

            #line 12 "..\..\..\FORMS\PrincipalScreen.xaml"
                this.PrincipalScreen1.Loaded += new System.Windows.RoutedEventHandler(this.PrincipalScreen1_Loaded);

            #line default
            #line hidden
                return;

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

            #line 103 "..\..\..\FORMS\PrincipalScreen.xaml"
                this.btnPerfil.Click += new System.Windows.RoutedEventHandler(this.btnPerfil_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.grdPrincipal = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.grdPrincipal1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:

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

            #line default
            #line hidden
                return;

            case 6:

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

            #line default
            #line hidden
                return;

            case 7:

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

            #line default
            #line hidden
                return;

            case 8:

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

            #line default
            #line hidden
                return;

            case 9:

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

            #line default
            #line hidden
                return;

            case 10:

            #line 204 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.DenunciaMenuItem_Click);

            #line default
            #line hidden
                return;

            case 11:

            #line 205 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.DenunciaAnonMenuItem_Click);

            #line default
            #line hidden
                return;

            case 12:

            #line 206 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OcorrenciaMenuItem_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 208 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 14:

            #line 209 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AgenteMenuItem_Click);

            #line default
            #line hidden
                return;

            case 15:

            #line 210 "..\..\..\FORMS\PrincipalScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ViaturaMenuItem_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.FlyoutPrincipal = ((MahApps.Metro.Controls.FlyoutsControl)(target));
                return;

            case 17:
                this.flyoutAgente = ((MahApps.Metro.Controls.Flyout)(target));
                return;

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

            #line 233 "..\..\..\FORMS\PrincipalScreen.xaml"
                this.btnFzrLogoff.Click += new System.Windows.RoutedEventHandler(this.btnFzrLogoff_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.tgsTema = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 234 "..\..\..\FORMS\PrincipalScreen.xaml"
                this.tgsTema.Checked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.tgsTema_Checked);

            #line default
            #line hidden

            #line 234 "..\..\..\FORMS\PrincipalScreen.xaml"
                this.tgsTema.IsCheckedChanged += new System.EventHandler(this.tgsTema_IsCheckedChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 11 "..\..\..\..\Views\DisplayView.xaml"
     ((MetroDemo.ExampleViews.DisplayView)(target)).Loaded += new System.Windows.RoutedEventHandler(this.DisplayView_OnLoaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.Product = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.MainTabControl = ((MahApps.Metro.Controls.MetroAnimatedSingleRowTabControl)(target));
     return;
     case 4:
     this.OptionalTab = ((System.Windows.Controls.TabItem)(target));
     return;
     case 5:
     this.DisplayLevelInfo = ((System.Windows.Controls.Button)(target));
     
     #line 75 "..\..\..\..\Views\DisplayView.xaml"
     this.DisplayLevelInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 6:
     this.DisplayLevel = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 7:
     this.AcceptEulaInfo = ((System.Windows.Controls.Button)(target));
     
     #line 97 "..\..\..\..\Views\DisplayView.xaml"
     this.AcceptEulaInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 8:
     this.AcceptEula = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 9:
     this.AutoActivateInfo = ((System.Windows.Controls.Button)(target));
     
     #line 120 "..\..\..\..\Views\DisplayView.xaml"
     this.AutoActivateInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 10:
     this.AutoActivate = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 11:
     this.ForceAppShutdownInfo = ((System.Windows.Controls.Button)(target));
     
     #line 143 "..\..\..\..\Views\DisplayView.xaml"
     this.ForceAppShutdownInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 12:
     this.ForceAppShutdown = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 13:
     this.SharedComputerLicensingInfo = ((System.Windows.Controls.Button)(target));
     
     #line 166 "..\..\..\..\Views\DisplayView.xaml"
     this.SharedComputerLicensingInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 14:
     this.SharedComputerLicensing = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 15:
     this.PinIconsToTaskbarInfo = ((System.Windows.Controls.Button)(target));
     
     #line 189 "..\..\..\..\Views\DisplayView.xaml"
     this.PinIconsToTaskbarInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 16:
     this.PinIconsToTaskbar = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 17:
     this.EnableSCCMSupportInfo = ((System.Windows.Controls.Button)(target));
     
     #line 212 "..\..\..\..\Views\DisplayView.xaml"
     this.EnableSCCMSupportInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 18:
     this.EnableSCCMSupport = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 19:
     this.PreviousButton = ((System.Windows.Controls.Button)(target));
     
     #line 247 "..\..\..\..\Views\DisplayView.xaml"
     this.PreviousButton.Click += new System.Windows.RoutedEventHandler(this.PreviousButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 20:
     this.NextButton = ((System.Windows.Controls.Button)(target));
     
     #line 248 "..\..\..\..\Views\DisplayView.xaml"
     this.NextButton.Click += new System.Windows.RoutedEventHandler(this.NextButton_OnClick);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 34
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.txbFirstName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 2:
     this.txbLastName = ((System.Windows.Controls.TextBox)(target));
     return;
     case 3:
     this.txbBirthYear = ((System.Windows.Controls.TextBox)(target));
     return;
     case 4:
     this.switchServices = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 5:
     this.imgGenre = ((System.Windows.Controls.Image)(target));
     
     #line 39 "..\..\DetailWindow.xaml"
     this.imgGenre.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.imgGenre_MouseLeftButtonUp);
     
     #line default
     #line hidden
     return;
     case 6:
     this.dataFirstAid = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 7:
     this.dataServiceInterruption = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 8:
     this.btnAddJP = ((System.Windows.Controls.Button)(target));
     
     #line 65 "..\..\DetailWindow.xaml"
     this.btnAddJP.Click += new System.Windows.RoutedEventHandler(this.btnAddJP_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.btnAddServices = ((System.Windows.Controls.Button)(target));
     
     #line 66 "..\..\DetailWindow.xaml"
     this.btnAddServices.Click += new System.Windows.RoutedEventHandler(this.btnAddServices_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.btnSave = ((System.Windows.Controls.Button)(target));
     
     #line 67 "..\..\DetailWindow.xaml"
     this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_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.MetroAdminWindow = ((RFIDStorageUltimate.AdminWindow)(target));
     
     #line 7 "..\..\AdminWindow.xaml"
     this.MetroAdminWindow.Closing += new System.ComponentModel.CancelEventHandler(this.MetroAdminWindow_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 9 "..\..\AdminWindow.xaml"
     ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.TextBoxButtonCmd);
     
     #line default
     #line hidden
     return;
     case 3:
     this.SetButton = ((System.Windows.Controls.Button)(target));
     
     #line 13 "..\..\AdminWindow.xaml"
     this.SetButton.Click += new System.Windows.RoutedEventHandler(this.SetButton_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.SetFlyout = ((MahApps.Metro.Controls.Flyout)(target));
     return;
     case 5:
     this.SerialComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 6:
     this.IntQComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 7:
     this.PowerComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 8:
     this.GoodsNameComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 9:
     this.ClearSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 10:
     this.MainControl = ((MahApps.Metro.Controls.TransitioningContentControl)(target));
     return;
     case 11:
     this.MainPanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 12:
     this.TopPanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 13:
     this.MenuPanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 14:
     this.SearchTextBox = ((System.Windows.Controls.TextBox)(target));
     
     #line 62 "..\..\AdminWindow.xaml"
     this.SearchTextBox.KeyDown += new System.Windows.Input.KeyEventHandler(this.SearchTextBox_KeyDown);
     
     #line default
     #line hidden
     return;
     case 15:
     this.BrowseInfoButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 77 "..\..\AdminWindow.xaml"
     this.BrowseInfoButton.Click += new System.Windows.RoutedEventHandler(this.BrowseInfoButton_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.RegisterLabelButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 80 "..\..\AdminWindow.xaml"
     this.RegisterLabelButton.Click += new System.Windows.RoutedEventHandler(this.RegisterLabelButton_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.GoodsManageButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 83 "..\..\AdminWindow.xaml"
     this.GoodsManageButton.Click += new System.Windows.RoutedEventHandler(this.GoodsManageButton_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.UserManageButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 86 "..\..\AdminWindow.xaml"
     this.UserManageButton.Click += new System.Windows.RoutedEventHandler(this.UserManageButton_Click);
     
     #line default
     #line hidden
     return;
     case 19:
     this.StatisticsViewButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 89 "..\..\AdminWindow.xaml"
     this.StatisticsViewButton.Click += new System.Windows.RoutedEventHandler(this.StatisticsViewButton_Click);
     
     #line default
     #line hidden
     return;
     case 20:
     this.ViewPanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 21:
     this.OperateControl = ((MahApps.Metro.Controls.TransitioningContentControl)(target));
     return;
     case 22:
     this.BrowsePanel = ((MahApps.Metro.Controls.MetroContentControl)(target));
     return;
     case 23:
     this.GoodsDataGrid = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 24:
     this.RegisterDataGrid = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 25:
     this.UserDataGrid = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 26:
     this.InDataGrid = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 27:
     this.OutDataGrid = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 28:
     this.IndicateStatusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
     return;
     case 29:
     this.StatusRing = ((MahApps.Metro.Controls.ProgressRing)(target));
     return;
     case 30:
     this.StatusTextBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 31:
     this.ExtraPanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 32:
     this.RegisterPanel = ((MahApps.Metro.Controls.MetroContentControl)(target));
     return;
     case 33:
     this.RegisterScanningButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 192 "..\..\AdminWindow.xaml"
     this.RegisterScanningButton.Click += new System.Windows.RoutedEventHandler(this.RegisterScanningButton_Click);
     
     #line default
     #line hidden
     return;
     case 34:
     this.ScanningImage = ((System.Windows.Controls.Image)(target));
     return;
     case 35:
     this.RegisterCleanButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 201 "..\..\AdminWindow.xaml"
     this.RegisterCleanButton.Click += new System.Windows.RoutedEventHandler(this.RegisterCleanButton_Click);
     
     #line default
     #line hidden
     return;
     case 36:
     this.LabelList = ((System.Windows.Controls.ListBox)(target));
     return;
     case 37:
     this.ReadInfo = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 38:
     this.RegisterReadButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 217 "..\..\AdminWindow.xaml"
     this.RegisterReadButton.Click += new System.Windows.RoutedEventHandler(this.RegisterReadButton_Click);
     
     #line default
     #line hidden
     return;
     case 39:
     this.RegisterWriteButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 220 "..\..\AdminWindow.xaml"
     this.RegisterWriteButton.Click += new System.Windows.RoutedEventHandler(this.RegisterWriteButton_Click);
     
     #line default
     #line hidden
     return;
     case 40:
     this.RegisterImage = ((System.Windows.Controls.Image)(target));
     return;
     case 41:
     this.UserManagePanel = ((MahApps.Metro.Controls.MetroContentControl)(target));
     return;
     case 42:
     this.UserList = ((System.Windows.Controls.ListBox)(target));
     return;
     case 43:
     this.UsernameTextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 44:
     this.PasswordTextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 45:
     this.UserManageAddButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 240 "..\..\AdminWindow.xaml"
     this.UserManageAddButton.Click += new System.Windows.RoutedEventHandler(this.UserManageAddButton_Click);
     
     #line default
     #line hidden
     return;
     case 46:
     this.UserManageDeleteButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 243 "..\..\AdminWindow.xaml"
     this.UserManageDeleteButton.Click += new System.Windows.RoutedEventHandler(this.UserManageDeleteButton_Click);
     
     #line default
     #line hidden
     return;
     case 47:
     this.UserManageUpdateButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 246 "..\..\AdminWindow.xaml"
     this.UserManageUpdateButton.Click += new System.Windows.RoutedEventHandler(this.UserManageUpdateButton_Click);
     
     #line default
     #line hidden
     return;
     case 48:
     this.GoodsManagePanel = ((MahApps.Metro.Controls.MetroContentControl)(target));
     return;
     case 49:
     this.GoodsListDataGrid = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 50:
     this.OperatePanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 51:
     this.GoodsManageAddButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 271 "..\..\AdminWindow.xaml"
     this.GoodsManageAddButton.Click += new System.Windows.RoutedEventHandler(this.GoodsManageAddButton_Click);
     
     #line default
     #line hidden
     return;
     case 52:
     this.GoodsManageDeleteButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 274 "..\..\AdminWindow.xaml"
     this.GoodsManageDeleteButton.Click += new System.Windows.RoutedEventHandler(this.GoodsManageDeleteButton_Click);
     
     #line default
     #line hidden
     return;
     case 53:
     this.GoodsManageUpdateButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 278 "..\..\AdminWindow.xaml"
     this.GoodsManageUpdateButton.Click += new System.Windows.RoutedEventHandler(this.GoodsManageUpdateButton_Click);
     
     #line default
     #line hidden
     return;
     case 54:
     this.SearchPanel = ((MahApps.Metro.Controls.MetroContentControl)(target));
     return;
     case 55:
     this.SearchRegisterDataGrid = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 56:
     this.SearchInDataGrid = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 57:
     this.SearchOutDataGrid = ((System.Windows.Controls.DataGrid)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 36
0
        private void GenerateControls() {
            var settings = _viewModel.Settings;
            var properties = settings.GetType().GetProperties();
            var groups = new Dictionary<string, Dictionary<TextBlock, Control>>();
            Control firstControl = null;
            foreach (var property in properties) {
                var type = property.PropertyType;
                var propertyPath = property.Name;
                var genericType = type.IsGenericType ? type.GetGenericTypeDefinition() : null;
                
                Control control = null;
                DependencyProperty bindProperty = null;
                if (genericType == typeof(SettingSingleSelection<>)) {
                    if (typeof(INovaromaService).IsAssignableFrom(type.GetGenericArguments().First()))
                        control = new SingleSelectionUserControl();
                    else
                        control = new SingleSelectComboBox();
                    bindProperty = DataContextProperty;
                    _lateBindables.Add((ILateBindable)property.GetValue(settings));
                }
                else if (genericType == typeof(SettingMultiSelection<>)) {
                    control = new MultiSelectionUserControl();
                    bindProperty = DataContextProperty;
                    _lateBindables.Add((ILateBindable)property.GetValue(settings));
                }
                else if (type == typeof (DirectorySelection)) {
                    control = new DirectorySelectUserControl();
                    bindProperty = DirectorySelectUserControl.TextProperty;
                    propertyPath += ".Path";
                }
                else if (!property.CanWrite) continue;
                else if (type == typeof(string)) {
                    control = new TextBox();
                    bindProperty = TextBox.TextProperty;
                }
                else if (type.IsNumericType()) {
                    control = new NumericUpDown();
                    bindProperty = NumericUpDown.ValueProperty;
                }
                else if (type == typeof (bool) 
                        || (genericType != null && genericType == typeof(Nullable<>) && genericType.GenericTypeArguments[0] == typeof(bool))) {
                    control = new ToggleSwitch {Language = Language};
                    bindProperty = ToggleSwitch.IsCheckedProperty;
                }

                if (control != null && bindProperty != null) {
                    if (firstControl == null) firstControl = control;

                    var displayAttr = property.GetAttribute<DisplayAttribute>();
                    string displayValue;
                    string description;
                    string groupName;
                    if (displayAttr != null) {
                        displayValue = displayAttr.GetName() ?? property.Name;
                        description = displayAttr.GetDescription() ?? string.Empty;
                        groupName = displayAttr.GetGroupName() ?? string.Empty;
                    }
                    else {
                        displayValue = property.Name;
                        description = string.Empty;
                        groupName = string.Empty;
                    }

                    var textBlock = new TextBlock();
                    textBlock.VerticalAlignment = VerticalAlignment.Center;
                    textBlock.Margin = new Thickness(10);
                    textBlock.Text = displayValue;
                    if (!string.IsNullOrEmpty(description))
                        textBlock.ToolTip = description;
                    textBlock.SetCurrentValue(Grid.ColumnProperty, 0);

                    control.Margin = new Thickness(10);
                    control.SetCurrentValue(Grid.ColumnProperty, 1);

                    var binding = new Binding();
                    binding.Source = settings;
                    binding.Path = new PropertyPath(propertyPath);
                    binding.UpdateSourceTrigger = UpdateSourceTrigger.Explicit;
                    var bindingExpression = BindingOperations.SetBinding(control, bindProperty, binding);
                    _bindings.Add(bindingExpression);

                    if (groups.ContainsKey(groupName))
                        groups[groupName].Add(textBlock, control);
                    else
                        groups.Add(groupName, new Dictionary<TextBlock, Control> {{textBlock, control}});
                }
            }

            foreach (var group in groups) {
                var tabItem = new TabItem();
                if (groups.Count > 1)
                    tabItem.Header = string.IsNullOrEmpty(group.Key) ? Novaroma.Properties.Resources.Main : group.Key;
                ControlsTabControl.Items.Add(tabItem);

                var scrollViewer = new ScrollViewer();
                tabItem.Content = scrollViewer;

                var grid = new Grid();
                grid.HorizontalAlignment = HorizontalAlignment.Stretch;
                grid.VerticalAlignment = VerticalAlignment.Stretch;
                grid.Margin = new Thickness(20);
                grid.SetValue(ScrollViewer.HorizontalScrollBarVisibilityProperty, ScrollBarVisibility.Auto);
                grid.SetValue(ScrollViewer.VerticalScrollBarVisibilityProperty, ScrollBarVisibility.Auto);
                grid.ColumnDefinitions.Add(new ColumnDefinition {Width = new GridLength(0, GridUnitType.Auto)});
                grid.ColumnDefinitions.Add(new ColumnDefinition());
                scrollViewer.Content = grid;

                var i = 0;
                foreach (var controls in group.Value) {
                    var rowDefinition = new RowDefinition();
                    rowDefinition.Height = new GridLength(0, GridUnitType.Auto);
                    grid.RowDefinitions.Add(rowDefinition);

                    var textBlock = controls.Key;
                    textBlock.SetCurrentValue(Grid.RowProperty, i);

                    var control = controls.Value;
                    control.SetCurrentValue(Grid.RowProperty, i);

                    grid.Children.Add(controls.Key);
                    grid.Children.Add(controls.Value);

                    i++;
                }
            }

            if (firstControl != null)
                firstControl.Focus();
        }
Ejemplo n.º 37
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.HeaderImage_Switch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 2:
     this.HeaderImage_ChangeImage = ((System.Windows.Controls.Button)(target));
     
     #line 42 "..\..\..\userControl\Design.xaml"
     this.HeaderImage_ChangeImage.Click += new System.Windows.RoutedEventHandler(this.HeaderImage_ChangeImage_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 38
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this._coldStartSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 2:
     this._addButton = ((System.Windows.Controls.Button)(target));
     
     #line 11 "..\..\MainWindow.xaml"
     this._addButton.Click += new System.Windows.RoutedEventHandler(this._addButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 3:
     this._addSpeed = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 4:
     this._loginButton = ((System.Windows.Controls.Button)(target));
     
     #line 16 "..\..\MainWindow.xaml"
     this._loginButton.Click += new System.Windows.RoutedEventHandler(this._loginButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 5:
     this._loginSpeed = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 6:
     this._loadProfileButton = ((System.Windows.Controls.Button)(target));
     
     #line 21 "..\..\MainWindow.xaml"
     this._loadProfileButton.Click += new System.Windows.RoutedEventHandler(this._loadProfileButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 7:
     this._loadProfileSpeed = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 39
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.PrincipalScreen1 = ((sistemaCorporativo.FORMS.principalScreen.PrincipalScreen)(target));
     
     #line 12 "..\..\..\FORMS\PrincipalScreen.xaml"
     this.PrincipalScreen1.Loaded += new System.Windows.RoutedEventHandler(this.PrincipalScreen1_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.btnPerfil = ((System.Windows.Controls.Button)(target));
     
     #line 103 "..\..\..\FORMS\PrincipalScreen.xaml"
     this.btnPerfil.Click += new System.Windows.RoutedEventHandler(this.btnPerfil_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.grdPrincipal = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.grdPrincipal1 = ((System.Windows.Controls.Grid)(target));
     return;
     case 5:
     
     #line 162 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_2);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 168 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_3);
     
     #line default
     #line hidden
     return;
     case 7:
     
     #line 174 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_4);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 180 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_1);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 186 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     
     #line 204 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.DenunciaMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 205 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.DenunciaAnonMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 206 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OcorrenciaMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     
     #line 208 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     
     #line 209 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AgenteMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     
     #line 210 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ViaturaMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.FlyoutPrincipal = ((MahApps.Metro.Controls.FlyoutsControl)(target));
     return;
     case 17:
     this.flyoutAgente = ((MahApps.Metro.Controls.Flyout)(target));
     
     #line 228 "..\..\..\FORMS\PrincipalScreen.xaml"
     this.flyoutAgente.Loaded += new System.Windows.RoutedEventHandler(this.FlyoutAgente_Loaded);
     
     #line default
     #line hidden
     return;
     case 18:
     this.lblNomeAgente = ((System.Windows.Controls.Label)(target));
     return;
     case 19:
     this.lblNivel = ((System.Windows.Controls.Label)(target));
     return;
     case 20:
     this.lblCargo = ((System.Windows.Controls.Label)(target));
     return;
     case 21:
     this.lblCasosResolvidos = ((System.Windows.Controls.Label)(target));
     return;
     case 22:
     this.tgsTema = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 238 "..\..\..\FORMS\PrincipalScreen.xaml"
     this.tgsTema.Checked += new System.EventHandler<System.Windows.RoutedEventArgs>(this.tgsTema_Checked);
     
     #line default
     #line hidden
     
     #line 238 "..\..\..\FORMS\PrincipalScreen.xaml"
     this.tgsTema.IsCheckedChanged += new System.EventHandler(this.tgsTema_IsCheckedChanged);
     
     #line default
     #line hidden
     return;
     case 23:
     this.btnFzrLogoff = ((System.Windows.Controls.Button)(target));
     
     #line 239 "..\..\..\FORMS\PrincipalScreen.xaml"
     this.btnFzrLogoff.Click += new System.Windows.RoutedEventHandler(this.btnFzrLogoff_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 40
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.EmotivStatusLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 2:
     this.Signal = ((System.Windows.Controls.Image)(target));
     return;
     case 3:
     this.Battery = ((System.Windows.Controls.Image)(target));
     return;
     case 4:
     this.ShowSettingsBtn = ((System.Windows.Controls.Button)(target));
     
     #line 156 "..\..\MainWindow.xaml"
     this.ShowSettingsBtn.Click += new System.Windows.RoutedEventHandler(this.ShowSettingsBtn_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.HelpBtn = ((System.Windows.Controls.Button)(target));
     
     #line 157 "..\..\MainWindow.xaml"
     this.HelpBtn.Click += new System.Windows.RoutedEventHandler(this.HelpBtn_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.PageHolder = ((System.Windows.Controls.Grid)(target));
     return;
     case 7:
     this.MainWindowPage = ((System.Windows.Controls.Grid)(target));
     return;
     case 8:
     this.MethodGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 9:
     this.Step1Lbl = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.SelectMethodLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 11:
     this.EEGBtn = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 176 "..\..\MainWindow.xaml"
     this.EEGBtn.Click += new System.Windows.RoutedEventHandler(this.EEGBtn_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.EMGBtn = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 181 "..\..\MainWindow.xaml"
     this.EMGBtn.Click += new System.Windows.RoutedEventHandler(this.EMGBtn_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.RobotGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 14:
     this.Step2Lbl = ((System.Windows.Controls.Label)(target));
     return;
     case 15:
     this.iRobotCreateBtn = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 191 "..\..\MainWindow.xaml"
     this.iRobotCreateBtn.Click += new System.Windows.RoutedEventHandler(this.iRobotCreateBtn_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.OWIArmBtn = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 195 "..\..\MainWindow.xaml"
     this.OWIArmBtn.Click += new System.Windows.RoutedEventHandler(this.OWIArmBtn_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.R2D2Btn = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 199 "..\..\MainWindow.xaml"
     this.R2D2Btn.Click += new System.Windows.RoutedEventHandler(this.R2D2Btn_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.SelectRobotLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 19:
     this.EmotivGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 20:
     this.Step3Lbl = ((System.Windows.Controls.Label)(target));
     return;
     case 21:
     this.SelectRobotLbl_Copy = ((System.Windows.Controls.Label)(target));
     return;
     case 22:
     this.MainEmotivToggleSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 209 "..\..\MainWindow.xaml"
     this.MainEmotivToggleSwitch.Click += new System.EventHandler<System.Windows.RoutedEventArgs>(this.MainEmotivToggleSwitch_Click);
     
     #line default
     #line hidden
     return;
     case 23:
     this.MainUptime = ((System.Windows.Controls.Label)(target));
     return;
     case 24:
     this.MainUptimeLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 25:
     this.MainHeadset = ((System.Windows.Controls.Grid)(target));
     return;
     case 26:
     this.AF3ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 27:
     this.AF3ContactMainLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 28:
     this.AF4ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 29:
     this.AF4ContactMainLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 30:
     this.F7ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 31:
     this.F7ContactMainLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 32:
     this.F3ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 33:
     this.F3ContactMainLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 34:
     this.F4ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 35:
     this.F4ContactMainLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 36:
     this.F8ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 37:
     this.F8ContactMainLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 38:
     this.FC5ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 39:
     this.FC5ContactMainLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 40:
     this.FC6ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 41:
     this.FC6ContactMainLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 42:
     this.T7ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 43:
     this.T7ContactMainLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 44:
     this.T8ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 45:
     this.T8ContactMainLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 46:
     this.CMSContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 47:
     this.CMSContactMainLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 48:
     this.DRLContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 49:
     this.DRLContactMainLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 50:
     this.P7ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 51:
     this.P7ContactMainLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 52:
     this.P8ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 53:
     this.P8ContactMainLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 54:
     this.O1ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 55:
     this.O1ContactMainLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 56:
     this.O2ContactMain = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 57:
     this.O2ContactMainLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 58:
     this.MainUserLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 59:
     this.MainUsersComboBox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 248 "..\..\MainWindow.xaml"
     this.MainUsersComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.MainUsersComboBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 60:
     this.MainAddUserBtn = ((MahApps.Metro.Controls.AppBarButton)(target));
     
     #line 249 "..\..\MainWindow.xaml"
     this.MainAddUserBtn.Click += new System.Windows.RoutedEventHandler(this.AddUserBtn_Click);
     
     #line default
     #line hidden
     return;
     case 61:
     this.MainRemoveUserBtn = ((MahApps.Metro.Controls.AppBarButton)(target));
     
     #line 250 "..\..\MainWindow.xaml"
     this.MainRemoveUserBtn.Click += new System.Windows.RoutedEventHandler(this.RemoveUserBtn_Click);
     
     #line default
     #line hidden
     return;
     case 62:
     this.StartBtn = ((MahApps.Metro.Controls.AppBarButton)(target));
     
     #line 251 "..\..\MainWindow.xaml"
     this.StartBtn.Click += new System.Windows.RoutedEventHandler(this.StartBtn_Click);
     
     #line default
     #line hidden
     return;
     case 63:
     this.SettingsPage = ((System.Windows.Controls.Grid)(target));
     return;
     case 64:
     this.BackToMainWindowBtn = ((System.Windows.Controls.Button)(target));
     
     #line 262 "..\..\MainWindow.xaml"
     this.BackToMainWindowBtn.Click += new System.Windows.RoutedEventHandler(this.BackToMainWindowBtn_Click);
     
     #line default
     #line hidden
     return;
     case 65:
     this.SettingsLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 66:
     this.SettingsSidebar = ((System.Windows.Controls.Grid)(target));
     return;
     case 67:
     this.EmotivToggleSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 265 "..\..\MainWindow.xaml"
     this.EmotivToggleSwitch.Click += new System.EventHandler<System.Windows.RoutedEventArgs>(this.EmotivToggleSwitch_Click);
     
     #line default
     #line hidden
     return;
     case 68:
     this.UptimeLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 69:
     this.Uptime = ((System.Windows.Controls.Label)(target));
     return;
     case 70:
     this.Headset = ((System.Windows.Controls.Grid)(target));
     return;
     case 71:
     this.AF3Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 72:
     this.AF3ContactLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 73:
     this.AF4Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 74:
     this.AF4ContactLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 75:
     this.F7Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 76:
     this.F7ContactLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 77:
     this.F3Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 78:
     this.F3ContactLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 79:
     this.F4Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 80:
     this.F4ContactLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 81:
     this.F8Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 82:
     this.F8ContactLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 83:
     this.FC5Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 84:
     this.FC5ContactLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 85:
     this.FC6Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 86:
     this.FC6ContactLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 87:
     this.T7Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 88:
     this.T7ContactLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 89:
     this.T8Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 90:
     this.T8ContactLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 91:
     this.CMSContact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 92:
     this.CMSContactLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 93:
     this.DRLContact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 94:
     this.DRLContactLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 95:
     this.P7Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 96:
     this.P7ContactLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 97:
     this.P8Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 98:
     this.P8ContactLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 99:
     this.O1Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 100:
     this.O1ContactLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 101:
     this.O2Contact = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 102:
     this.O2ContactLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 103:
     this.UserLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 104:
     this.UsersComboBox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 310 "..\..\MainWindow.xaml"
     this.UsersComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.UsersComboBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 105:
     this.AddUserBtn = ((MahApps.Metro.Controls.AppBarButton)(target));
     
     #line 311 "..\..\MainWindow.xaml"
     this.AddUserBtn.Click += new System.Windows.RoutedEventHandler(this.AddUserBtn_Click);
     
     #line default
     #line hidden
     return;
     case 106:
     this.RemoveUserBtn = ((MahApps.Metro.Controls.AppBarButton)(target));
     
     #line 312 "..\..\MainWindow.xaml"
     this.RemoveUserBtn.Click += new System.Windows.RoutedEventHandler(this.RemoveUserBtn_Click);
     
     #line default
     #line hidden
     return;
     case 107:
     this.SaveUserBtn = ((MahApps.Metro.Controls.AppBarButton)(target));
     
     #line 313 "..\..\MainWindow.xaml"
     this.SaveUserBtn.Click += new System.Windows.RoutedEventHandler(this.SaveUserBtn_Click);
     
     #line default
     #line hidden
     return;
     case 108:
     this.SettingsMenu = ((System.Windows.Controls.Grid)(target));
     return;
     case 109:
     this.LowerFaceActionLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 110:
     this.UpperFaceActionLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 111:
     this.FacialExpressionsLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 112:
     this.ExpressivCirclesGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 113:
     this.EyebrowRect = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 114:
     this.Eyebrow = ((System.Windows.Controls.Label)(target));
     return;
     case 115:
     this.EyebrowsLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 116:
     this.FurrowRect = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 117:
     this.BlinkRect = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 118:
     this.FurrowLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 119:
     this.BlinkLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 120:
     this.SmileRect = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 121:
     this.Smile = ((System.Windows.Controls.Label)(target));
     return;
     case 122:
     this.SmileLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 123:
     this.LaughRect = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 124:
     this.ClenchRect = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 125:
     this.Clench = ((System.Windows.Controls.Label)(target));
     return;
     case 126:
     this.LaughLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 127:
     this.ClenchLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 128:
     this.WinkLeftRect = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 129:
     this.WinkRightRect = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 130:
     this.WinkLeftLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 131:
     this.WinkRightLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 132:
     this.SmirkLeftRect = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 133:
     this.SmirkRightRect = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 134:
     this.SmirkLeftLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 135:
     this.SmirkRightLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 136:
     this.AffectivChart = ((Telerik.Windows.Controls.RadCartesianChart)(target));
     return;
     case 137:
     this.EngagmentBoredomLegendCircle = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 138:
     this.EngagmentBoredomLegendLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 139:
     this.MeditationLegendCircle = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 140:
     this.MeditationLegendLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 141:
     this.FrustrationLegendCircle = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 142:
     this.FrustrationLegendLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 143:
     this.ShortExcitementLegendCircle = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 144:
     this.ShortExcitementLegendLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 145:
     this.LongExcitementLegendCircle = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 146:
     this.LongExcitementLegendLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 147:
     this.CognitivPowerProgressBar = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 148:
     this.cognitivPower = ((System.Windows.Controls.Label)(target));
     return;
     case 149:
     this.cognitivIsActive = ((System.Windows.Controls.Label)(target));
     return;
     case 150:
     this.cognitivIsState = ((System.Windows.Controls.Label)(target));
     return;
     case 151:
     this.CognitivActionLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 152:
     this.SignalStatusLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 153:
     this.PowerLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 154:
     this.Cube3D_Copy = ((System.Windows.Controls.Viewport3D)(target));
     return;
     case 155:
     this.Cube3DPerspectiveCamera1 = ((System.Windows.Media.Media3D.PerspectiveCamera)(target));
     return;
     case 156:
     this.Camera3DYaw1 = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target));
     return;
     case 157:
     this.Camera3DPitch1 = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target));
     return;
     case 158:
     this.Camera3DRoll1 = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target));
     return;
     case 159:
     this.Brush3DCube1 = ((System.Windows.Media.SolidColorBrush)(target));
     return;
     case 160:
     this.GyroStatusGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 161:
     this.GyroStatusLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 162:
     this.GyroStatus = ((System.Windows.Controls.Label)(target));
     return;
     case 163:
     this.GyroValuesGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 164:
     this.xLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 165:
     this.xValue = ((System.Windows.Controls.Label)(target));
     return;
     case 166:
     this.yLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 167:
     this.yValue = ((System.Windows.Controls.Label)(target));
     return;
     case 168:
     this.xValueMax = ((System.Windows.Controls.Label)(target));
     return;
     case 169:
     this.yValueMax = ((System.Windows.Controls.Label)(target));
     return;
     case 170:
     this.xLbl_Copy = ((System.Windows.Controls.Label)(target));
     return;
     case 171:
     this.yLbl_Copy = ((System.Windows.Controls.Label)(target));
     return;
     case 172:
     this.GyroChartsGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 173:
     this.GyroXChart = ((Telerik.Windows.Controls.RadCartesianChart)(target));
     return;
     case 174:
     this.GyroYChart = ((Telerik.Windows.Controls.RadCartesianChart)(target));
     return;
     case 175:
     this.GyroLegendGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 176:
     this.GyroXLegendCircle = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 177:
     this.GyroXLegendLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 178:
     this.GyroYLegendCircle = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 179:
     this.GyroYLegendLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 180:
     this.recalibrateGyroBtn = ((System.Windows.Controls.Button)(target));
     
     #line 615 "..\..\MainWindow.xaml"
     this.recalibrateGyroBtn.Click += new System.Windows.RoutedEventHandler(this.recalibrateGyroBtn_Click);
     
     #line default
     #line hidden
     return;
     case 181:
     this.DataInfoGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 182:
     this.SamplingRateLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 183:
     this.SamplingRate = ((System.Windows.Controls.Label)(target));
     return;
     case 184:
     this.BufferSize = ((System.Windows.Controls.Label)(target));
     return;
     case 185:
     this.BufferSizeLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 186:
     this.DataChartGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 187:
     this.SequenceNumberChart = ((Telerik.Windows.Controls.RadCartesianChart)(target));
     return;
     case 188:
     this.RawCQSignalAmplitudeChart = ((Telerik.Windows.Controls.RadCartesianChart)(target));
     return;
     case 189:
     this.DataLegendGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 190:
     this.SequenceNumberLegendCircle = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 191:
     this.SequenceNumberLegendLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 192:
     this.RawCQSignalAmplitudeLegendCircle = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 193:
     this.RawCQSignalAmplitudeLegendLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 194:
     this.CognitivPushTrainingTile = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 721 "..\..\MainWindow.xaml"
     this.CognitivPushTrainingTile.Click += new System.Windows.RoutedEventHandler(this.CognitivPushTrainingTile_Click);
     
     #line default
     #line hidden
     return;
     case 195:
     this.CognitivPullTrainingTile = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 725 "..\..\MainWindow.xaml"
     this.CognitivPullTrainingTile.Click += new System.Windows.RoutedEventHandler(this.CognitivPullTrainingTile_Click);
     
     #line default
     #line hidden
     return;
     case 196:
     this.CognitivLiftTrainingTile = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 729 "..\..\MainWindow.xaml"
     this.CognitivLiftTrainingTile.Click += new System.Windows.RoutedEventHandler(this.CognitivLiftTrainingTile_Click);
     
     #line default
     #line hidden
     return;
     case 197:
     this.CognitivDropTrainingTile = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 733 "..\..\MainWindow.xaml"
     this.CognitivDropTrainingTile.Click += new System.Windows.RoutedEventHandler(this.CognitivDropTrainingTile_Click);
     
     #line default
     #line hidden
     return;
     case 198:
     this.CognitivLeftTrainingTile = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 737 "..\..\MainWindow.xaml"
     this.CognitivLeftTrainingTile.Click += new System.Windows.RoutedEventHandler(this.CognitivLeftTrainingTile_Click);
     
     #line default
     #line hidden
     return;
     case 199:
     this.CognitivRightTrainingTile = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 741 "..\..\MainWindow.xaml"
     this.CognitivRightTrainingTile.Click += new System.Windows.RoutedEventHandler(this.CognitivRightTrainingTile_Click);
     
     #line default
     #line hidden
     return;
     case 200:
     this.CognitivRotateLeftTrainingTile = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 745 "..\..\MainWindow.xaml"
     this.CognitivRotateLeftTrainingTile.Click += new System.Windows.RoutedEventHandler(this.CognitivRotateLeftTrainingTile_Click);
     
     #line default
     #line hidden
     return;
     case 201:
     this.CognitivRotateRightTrainingTile = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 749 "..\..\MainWindow.xaml"
     this.CognitivRotateRightTrainingTile.Click += new System.Windows.RoutedEventHandler(this.CognitivRotateRightTrainingTile_Click);
     
     #line default
     #line hidden
     return;
     case 202:
     this.CognitivRotateClockwiseTrainingTile = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 753 "..\..\MainWindow.xaml"
     this.CognitivRotateClockwiseTrainingTile.Click += new System.Windows.RoutedEventHandler(this.CognitivRotateClockwiseTrainingTile_Click);
     
     #line default
     #line hidden
     return;
     case 203:
     this.CognitivRotateAntiClockwiseTrainingTile = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 757 "..\..\MainWindow.xaml"
     this.CognitivRotateAntiClockwiseTrainingTile.Click += new System.Windows.RoutedEventHandler(this.CognitivRotateAntiClockwiseTrainingTile_Click);
     
     #line default
     #line hidden
     return;
     case 204:
     this.CognitivRotateForwardsTrainingTile = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 761 "..\..\MainWindow.xaml"
     this.CognitivRotateForwardsTrainingTile.Click += new System.Windows.RoutedEventHandler(this.CognitivRotateForwardsTrainingTile_Click);
     
     #line default
     #line hidden
     return;
     case 205:
     this.CognitivRotateBackwardsTrainingTile = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 765 "..\..\MainWindow.xaml"
     this.CognitivRotateBackwardsTrainingTile.Click += new System.Windows.RoutedEventHandler(this.CognitivRotateBackwardsTrainingTile_Click);
     
     #line default
     #line hidden
     return;
     case 206:
     this.CognitivDisappearTrainingTile = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 769 "..\..\MainWindow.xaml"
     this.CognitivDisappearTrainingTile.Click += new System.Windows.RoutedEventHandler(this.CognitivDisappearTrainingTile_Click);
     
     #line default
     #line hidden
     return;
     case 207:
     this.CognitivNeutralTrainingTile = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 773 "..\..\MainWindow.xaml"
     this.CognitivNeutralTrainingTile.Click += new System.Windows.RoutedEventHandler(this.CognitivNeutralTrainingTile_Click);
     
     #line default
     #line hidden
     return;
     case 208:
     this.CognitivLongNeutralTrainingTile = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 777 "..\..\MainWindow.xaml"
     this.CognitivLongNeutralTrainingTile.Click += new System.Windows.RoutedEventHandler(this.CognitivLongNeutralTrainingTile_Click);
     
     #line default
     #line hidden
     return;
     case 209:
     this.CognitivTrainTile = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 781 "..\..\MainWindow.xaml"
     this.CognitivTrainTile.Click += new System.Windows.RoutedEventHandler(this.CognitivTrainTile_Click);
     
     #line default
     #line hidden
     return;
     case 210:
     this.EEGChart = ((Telerik.Windows.Controls.RadCartesianChart)(target));
     return;
     case 211:
     this.ButterworthChart = ((Telerik.Windows.Controls.RadCartesianChart)(target));
     return;
     case 212:
     this.AF4Lbl2 = ((System.Windows.Controls.Label)(target));
     return;
     case 213:
     this.EEGbutval = ((System.Windows.Controls.Label)(target));
     return;
     case 214:
     this.AF4Lbl1 = ((System.Windows.Controls.Label)(target));
     return;
     case 215:
     this.EEGval = ((System.Windows.Controls.Label)(target));
     return;
     case 216:
     
     #line 866 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);
     
     #line default
     #line hidden
     return;
     case 217:
     this.AF4Lbl2_Copy = ((System.Windows.Controls.Label)(target));
     return;
     case 218:
     this.AF4Lbl2_Copy1 = ((System.Windows.Controls.Label)(target));
     return;
     case 219:
     this.ElectrodeComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 220:
     this.AF3item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 221:
     this.F7item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 222:
     this.F3item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 223:
     this.FC5item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 224:
     this.T7item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 225:
     this.P7item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 226:
     this.O1item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 227:
     this.O2item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 228:
     this.P8item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 229:
     this.T8item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 230:
     this.FC6item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 231:
     this.F4item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 232:
     this.F8item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 233:
     this.AF4item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 234:
     this.FilterComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 235:
     this.Filter6_7item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 236:
     this.Filter7_8item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 237:
     this.Filter8_9item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 238:
     this.Filter9_11item = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 239:
     this.AF3Chart = ((Telerik.Windows.Controls.RadCartesianChart)(target));
     return;
     case 240:
     this.F7Chart = ((Telerik.Windows.Controls.RadCartesianChart)(target));
     return;
     case 241:
     this.iRobotCreateToggleSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 974 "..\..\MainWindow.xaml"
     this.iRobotCreateToggleSwitch.Unchecked += new System.EventHandler<System.Windows.RoutedEventArgs>(this.iRobotCreateToggleSwitch_Unchecked);
     
     #line default
     #line hidden
     
     #line 974 "..\..\MainWindow.xaml"
     this.iRobotCreateToggleSwitch.Checked += new System.EventHandler<System.Windows.RoutedEventArgs>(this.iRobotCreateToggleSwitch_Checked);
     
     #line default
     #line hidden
     return;
     case 242:
     this.iRobotCreateMoveForwardBtn = ((System.Windows.Controls.Button)(target));
     
     #line 975 "..\..\MainWindow.xaml"
     this.iRobotCreateMoveForwardBtn.Click += new System.Windows.RoutedEventHandler(this.iRobotCreateMoveForwardBtn_Click);
     
     #line default
     #line hidden
     return;
     case 243:
     this.iRobotCreateMoveBackBtn = ((System.Windows.Controls.Button)(target));
     
     #line 976 "..\..\MainWindow.xaml"
     this.iRobotCreateMoveBackBtn.Click += new System.Windows.RoutedEventHandler(this.iRobotCreateMoveBackBtn_Click);
     
     #line default
     #line hidden
     return;
     case 244:
     this.iRobotCreateTurnLeftBtn = ((System.Windows.Controls.Button)(target));
     
     #line 977 "..\..\MainWindow.xaml"
     this.iRobotCreateTurnLeftBtn.Click += new System.Windows.RoutedEventHandler(this.iRobotCreateTurnLeftBtn_Click);
     
     #line default
     #line hidden
     return;
     case 245:
     this.iRobotCreateTurnRightBtn = ((System.Windows.Controls.Button)(target));
     
     #line 978 "..\..\MainWindow.xaml"
     this.iRobotCreateTurnRightBtn.Click += new System.Windows.RoutedEventHandler(this.iRobotCreateTurnRightBtn_Click);
     
     #line default
     #line hidden
     return;
     case 246:
     this.iRobotCreateStopBtn = ((System.Windows.Controls.Button)(target));
     
     #line 979 "..\..\MainWindow.xaml"
     this.iRobotCreateStopBtn.Click += new System.Windows.RoutedEventHandler(this.iRobotCreateStopBtn_Click);
     
     #line default
     #line hidden
     return;
     case 247:
     this.ComPortTxtBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 248:
     this.VelocityTxtBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 249:
     this.Webcam = ((System.Windows.Controls.Image)(target));
     return;
     case 250:
     this.Light = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 990 "..\..\MainWindow.xaml"
     this.Light.Click += new System.EventHandler<System.Windows.RoutedEventArgs>(this.Light_Click);
     
     #line default
     #line hidden
     return;
     case 251:
     this.ClawUpBtn = ((System.Windows.Controls.Button)(target));
     
     #line 991 "..\..\MainWindow.xaml"
     this.ClawUpBtn.Click += new System.Windows.RoutedEventHandler(this.GrippersUpBtn_Click);
     
     #line default
     #line hidden
     return;
     case 252:
     this.ClawDownBtn = ((System.Windows.Controls.Button)(target));
     
     #line 992 "..\..\MainWindow.xaml"
     this.ClawDownBtn.Click += new System.Windows.RoutedEventHandler(this.GrippersDownBtn_Click);
     
     #line default
     #line hidden
     return;
     case 253:
     this.ElbowUpBtn = ((System.Windows.Controls.Button)(target));
     
     #line 993 "..\..\MainWindow.xaml"
     this.ElbowUpBtn.Click += new System.Windows.RoutedEventHandler(this.ElbowUpBtn_Click);
     
     #line default
     #line hidden
     return;
     case 254:
     this.ElbowownBtn = ((System.Windows.Controls.Button)(target));
     
     #line 994 "..\..\MainWindow.xaml"
     this.ElbowownBtn.Click += new System.Windows.RoutedEventHandler(this.ElbowownBtn_Click);
     
     #line default
     #line hidden
     return;
     case 255:
     this.ArmUpBtn = ((System.Windows.Controls.Button)(target));
     
     #line 995 "..\..\MainWindow.xaml"
     this.ArmUpBtn.Click += new System.Windows.RoutedEventHandler(this.ArmUpBtn_Click);
     
     #line default
     #line hidden
     return;
     case 256:
     this.ArmDownBtn = ((System.Windows.Controls.Button)(target));
     
     #line 996 "..\..\MainWindow.xaml"
     this.ArmDownBtn.Click += new System.Windows.RoutedEventHandler(this.ArmDownBtn_Click);
     
     #line default
     #line hidden
     return;
     case 257:
     this.ArmRotateLeftBtn = ((System.Windows.Controls.Button)(target));
     
     #line 997 "..\..\MainWindow.xaml"
     this.ArmRotateLeftBtn.Click += new System.Windows.RoutedEventHandler(this.ArmRotateLeftBtn_Click);
     
     #line default
     #line hidden
     return;
     case 258:
     this.ArmRotateRightBtn = ((System.Windows.Controls.Button)(target));
     
     #line 998 "..\..\MainWindow.xaml"
     this.ArmRotateRightBtn.Click += new System.Windows.RoutedEventHandler(this.ArmRotateRightBtn_Click);
     
     #line default
     #line hidden
     return;
     case 259:
     this.SecondsTxtBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 260:
     this.Grippers = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 1001 "..\..\MainWindow.xaml"
     this.Grippers.Click += new System.EventHandler<System.Windows.RoutedEventArgs>(this.Grippers_Click);
     
     #line default
     #line hidden
     return;
     case 261:
     this.HandshakeBtn = ((System.Windows.Controls.Button)(target));
     
     #line 1002 "..\..\MainWindow.xaml"
     this.HandshakeBtn.Click += new System.Windows.RoutedEventHandler(this.HandshakeBtn_Click);
     
     #line default
     #line hidden
     return;
     case 262:
     this.R2D2ToggleSwitch_Copy = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 1009 "..\..\MainWindow.xaml"
     this.R2D2ToggleSwitch_Copy.Checked += new System.EventHandler<System.Windows.RoutedEventArgs>(this.R2D2ToggleSwitch_Checked);
     
     #line default
     #line hidden
     
     #line 1009 "..\..\MainWindow.xaml"
     this.R2D2ToggleSwitch_Copy.Unchecked += new System.EventHandler<System.Windows.RoutedEventArgs>(this.R2D2ToggleSwitch_Unchecked);
     
     #line default
     #line hidden
     return;
     case 263:
     this.R2D2MoveForwardBtn = ((System.Windows.Controls.Button)(target));
     
     #line 1010 "..\..\MainWindow.xaml"
     this.R2D2MoveForwardBtn.Click += new System.Windows.RoutedEventHandler(this.R2D2MoveForwardBtn_Click);
     
     #line default
     #line hidden
     return;
     case 264:
     this.R2D2MoveBackBtn = ((System.Windows.Controls.Button)(target));
     
     #line 1011 "..\..\MainWindow.xaml"
     this.R2D2MoveBackBtn.Click += new System.Windows.RoutedEventHandler(this.R2D2MoveBackBtn_Click);
     
     #line default
     #line hidden
     return;
     case 265:
     this.R2D2TurnLeftBtn = ((System.Windows.Controls.Button)(target));
     
     #line 1012 "..\..\MainWindow.xaml"
     this.R2D2TurnLeftBtn.Click += new System.Windows.RoutedEventHandler(this.R2D2TurnLeftBtn_Click);
     
     #line default
     #line hidden
     return;
     case 266:
     this.R2D2TurnRightBtn = ((System.Windows.Controls.Button)(target));
     
     #line 1013 "..\..\MainWindow.xaml"
     this.R2D2TurnRightBtn.Click += new System.Windows.RoutedEventHandler(this.R2D2TurnRightBtn_Click);
     
     #line default
     #line hidden
     return;
     case 267:
     this.R2D2StopBtn = ((System.Windows.Controls.Button)(target));
     
     #line 1014 "..\..\MainWindow.xaml"
     this.R2D2StopBtn.Click += new System.Windows.RoutedEventHandler(this.R2D2StopBtn_Click);
     
     #line default
     #line hidden
     return;
     case 268:
     this.CognitivTrainingPage = ((System.Windows.Controls.Grid)(target));
     return;
     case 269:
     this.BackToMainWindowBtn3 = ((System.Windows.Controls.Button)(target));
     
     #line 1044 "..\..\MainWindow.xaml"
     this.BackToMainWindowBtn3.Click += new System.Windows.RoutedEventHandler(this.BackToMainWindowBtn_Click);
     
     #line default
     #line hidden
     return;
     case 270:
     this.EEGTrainingPageLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 271:
     this.Cube3D = ((System.Windows.Controls.Viewport3D)(target));
     return;
     case 272:
     this.Cube3DPerspectiveCamera = ((System.Windows.Media.Media3D.PerspectiveCamera)(target));
     return;
     case 273:
     this.Camera3DYaw = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target));
     return;
     case 274:
     this.Camera3DPitch = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target));
     return;
     case 275:
     this.Camera3DRoll = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target));
     return;
     case 276:
     this.Brush3DCube = ((System.Windows.Media.SolidColorBrush)(target));
     return;
     case 277:
     
     #line 1178 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_3);
     
     #line default
     #line hidden
     return;
     case 278:
     
     #line 1179 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_4);
     
     #line default
     #line hidden
     return;
     case 279:
     this.EMGPage = ((System.Windows.Controls.Grid)(target));
     return;
     case 280:
     this.BackToMainWindowBtn6 = ((System.Windows.Controls.Button)(target));
     
     #line 1182 "..\..\MainWindow.xaml"
     this.BackToMainWindowBtn6.Click += new System.Windows.RoutedEventHandler(this.BackToMainWindowBtn_Click);
     
     #line default
     #line hidden
     return;
     case 281:
     this.EMGPageLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 282:
     this.EMGLowerFaceActionLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 283:
     this.EMGUpperFaceActionLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 284:
     this.EMGFacialActionsLbl = ((System.Windows.Controls.Label)(target));
     return;
     case 285:
     this.EMGCirclesGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 286:
     this.EyebrowRect1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 287:
     this.Eyebrow1 = ((System.Windows.Controls.Label)(target));
     return;
     case 288:
     this.EyebrowsLbl1 = ((System.Windows.Controls.Label)(target));
     return;
     case 289:
     this.FurrowRect1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 290:
     this.BlinkRect1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 291:
     this.FurrowLbl1 = ((System.Windows.Controls.Label)(target));
     return;
     case 292:
     this.BlinkLbl1 = ((System.Windows.Controls.Label)(target));
     return;
     case 293:
     this.SmileRect1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 294:
     this.Smile1 = ((System.Windows.Controls.Label)(target));
     return;
     case 295:
     this.SmileLbl1 = ((System.Windows.Controls.Label)(target));
     return;
     case 296:
     this.LaughRect1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 297:
     this.ClenchRect1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 298:
     this.Clench1 = ((System.Windows.Controls.Label)(target));
     return;
     case 299:
     this.LaughLbl1 = ((System.Windows.Controls.Label)(target));
     return;
     case 300:
     this.ClenchLbl1 = ((System.Windows.Controls.Label)(target));
     return;
     case 301:
     this.WinkLeftRect1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 302:
     this.WinkRightRect1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 303:
     this.WinkLeftLbl1 = ((System.Windows.Controls.Label)(target));
     return;
     case 304:
     this.WinkRightLbl1 = ((System.Windows.Controls.Label)(target));
     return;
     case 305:
     this.SmirkLeftRect1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 306:
     this.SmirkRightRect1 = ((System.Windows.Shapes.Ellipse)(target));
     return;
     case 307:
     this.SmirkLeftLbl1 = ((System.Windows.Controls.Label)(target));
     return;
     case 308:
     this.SmirkRightLbl1 = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 41
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.PrincipalScreen1 = ((sistemaCorporativo.FORMS.principalScreen.PrincipalScreen)(target));
     
     #line 12 "..\..\..\FORMS\PrincipalScreen.xaml"
     this.PrincipalScreen1.Loaded += new System.Windows.RoutedEventHandler(this.PrincipalScreen1_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.btnPerfil = ((System.Windows.Controls.Button)(target));
     
     #line 103 "..\..\..\FORMS\PrincipalScreen.xaml"
     this.btnPerfil.Click += new System.Windows.RoutedEventHandler(this.btnPerfil_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.grdPrincipal = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.grdPrincipal1 = ((System.Windows.Controls.Grid)(target));
     return;
     case 5:
     
     #line 159 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_2);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 165 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_3);
     
     #line default
     #line hidden
     return;
     case 7:
     
     #line 171 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_4);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 177 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click_1);
     
     #line default
     #line hidden
     return;
     case 9:
     
     #line 183 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((MahApps.Metro.Controls.Tile)(target)).Click += new System.Windows.RoutedEventHandler(this.Tile_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     
     #line 201 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.DenunciaMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 202 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.DenunciaAnonMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 203 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OcorrenciaMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     
     #line 205 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     
     #line 206 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AgenteMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     
     #line 207 "..\..\..\FORMS\PrincipalScreen.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ViaturaMenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.flyoutAgente = ((MahApps.Metro.Controls.Flyout)(target));
     
     #line 218 "..\..\..\FORMS\PrincipalScreen.xaml"
     this.flyoutAgente.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.flyoutAgente_PreviewMouseDown);
     
     #line default
     #line hidden
     return;
     case 17:
     this.btnFzrLogoff = ((System.Windows.Controls.Button)(target));
     
     #line 223 "..\..\..\FORMS\PrincipalScreen.xaml"
     this.btnFzrLogoff.Click += new System.Windows.RoutedEventHandler(this.btnFzrLogoff_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.tgsTema = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 224 "..\..\..\FORMS\PrincipalScreen.xaml"
     this.tgsTema.Checked += new System.EventHandler<System.Windows.RoutedEventArgs>(this.tgsTema_Checked);
     
     #line default
     #line hidden
     
     #line 224 "..\..\..\FORMS\PrincipalScreen.xaml"
     this.tgsTema.IsCheckedChanged += new System.EventHandler(this.tgsTema_IsCheckedChanged);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 42
0
        public void Add_Appliances(string appID, string devName, string devLoc, string watts, Image sa)
        {
            WrapPanel panel = (WrapPanel)FindName("App_stack");
            WrapPanel panel2 = (WrapPanel)FindName("Stat_stack");
            Image i = new Image();
            i.Margin = new Thickness(10, 10, 10, 81);
            i.Source = sa.Source;

            Image i2 = new Image();
            i2.Margin = new Thickness(10, 10, 10, 81);
            i2.Source = sa.Source;

            /*Path info = new Path();
            info.Margin = new Thickness(115, 5, 5, 115);
            info.Style = FindResource("InfoIcon") as Style;
            info.Fill = new SolidColorBrush(Colors.White);
            info.ToolTip = "Turns your appliances On or Off.";*/

            Grid grid = new Grid();
            grid.Name = "g1";
            grid.Height = 140;
            grid.Width = 140;
            grid.Margin = new Thickness(5);
            grid.Background = new SolidColorBrush(Colors.SkyBlue);

            Grid grid2 = new Grid();
            grid2.Name = "g2";
            grid2.Height = 140;
            grid2.Width = 140;
            grid2.Margin = new Thickness(5);
            grid2.Background = new SolidColorBrush(Colors.SkyBlue);

            TextBlock id = new TextBlock();
            id.Name = "txtbx_ID";
            id.Visibility = System.Windows.Visibility.Hidden;
            id.Text = appID;
            id.FontSize = 16;
            id.Foreground = new SolidColorBrush(Color.FromRgb(255, 255, 255));
            id.TextAlignment = TextAlignment.Center;
            id.Margin = new Thickness(5, 64, 5, 47);

            TextBlock id2 = new TextBlock();
            id2.Name = "txtbx_ID2";
            id2.Visibility = System.Windows.Visibility.Hidden;
            id2.Text = appID;
            id2.FontSize = 16;
            id2.Foreground = new SolidColorBrush(Color.FromRgb(255, 255, 255));
            id2.TextAlignment = TextAlignment.Center;
            id2.Margin = new Thickness(5, 64, 5, 47);

            TextBlock name = new TextBlock();
            name.Text = devName;
            name.FontSize = 16;
            name.Foreground = new SolidColorBrush(Color.FromRgb(255, 255, 255));
            name.TextAlignment = TextAlignment.Center;
            name.Margin = new Thickness(5, 64, 5, 47);
            
            TextBlock name2 = new TextBlock();
            name2.Text = devName;
            name2.FontSize = 16;
            name2.Foreground = new SolidColorBrush(Color.FromRgb(255, 255, 255));
            name2.TextAlignment = TextAlignment.Center;
            name2.Margin = new Thickness(5, 64, 5, 47);

            TextBlock loc = new TextBlock();
            loc.Text = devLoc;
            loc.FontSize = 11;
            loc.Foreground = new SolidColorBrush(Color.FromRgb(255, 255, 255));
            loc.TextAlignment = TextAlignment.Center;
            loc.Margin = new Thickness(10, 87, 10, 33);
            
            TextBlock loc2 = new TextBlock();
            loc2.Text = devLoc;
            loc2.FontSize = 11;
            loc2.Foreground = new SolidColorBrush(Color.FromRgb(255, 255, 255));
            loc2.TextAlignment = TextAlignment.Center;
            loc2.Margin = new Thickness(10, 87, 10, 33);
            
            TextBlock w = new TextBlock();
            w.Text = watts + " Watts";
            w.FontSize = 11;
            w.Foreground = new SolidColorBrush(Color.FromRgb(255, 255, 255));
            w.TextAlignment = TextAlignment.Center;
            w.Margin = new Thickness(10, 101, 10, 22);

            ToggleSwitch toggle = new ToggleSwitch();
            toggle.Margin = new Thickness(0, 110, 25, 0);
            toggle.OffSwitchBrush = new SolidColorBrush(Color.FromRgb(17, 158, 218));
            toggle.OnSwitchBrush = new SolidColorBrush(Color.FromRgb(160, 222, 72));
            toggle.Foreground = new SolidColorBrush(Colors.Transparent);
            toggle.HorizontalAlignment = HorizontalAlignment.Center;
            ScaleTransform size = new ScaleTransform(1, 0.5);
            toggle.RenderTransform = size;
            toggle.IsCheckedChanged += async (sender, e) => {
                await Globals.ToggleApplianceState(Convert.ToInt32(((ToggleSwitch)sender).TryFindParent<Grid>().FindChild<TextBlock>("txtbx_ID2").Text));
                await LoadHomeLogs();
                UpdateStatus();
            };

            grid.Children.Add(id);
            grid.Children.Add(name);
            grid.Children.Add(loc);
            grid.Children.Add(w);
            grid.Children.Add(i);

            grid2.Children.Add(id2);
            grid2.Children.Add(name2);
            grid2.Children.Add(loc2);
            grid2.Children.Add(i2);
            grid2.Children.Add(toggle);
            //grid2.Children.Add(info);

            grid.MouseEnter += grid_MouseEnter;
            grid.MouseLeave += grid_MouseLeave;
            grid.MouseDown += grid_MouseDown;
            panel.Children.Insert(0, grid);
            panel2.Children.Insert(0, grid2);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\..\Views\GenerateView.xaml"
                ((MetroDemo.ExampleViews.GenerateView)(target)).Loaded += new System.Windows.RoutedEventHandler(this.GenerateView_OnLoaded);

            #line default
            #line hidden
                return;

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

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

            case 4:
                this.PublisherRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 5:
                this.SpacerRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

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

            #line 76 "..\..\..\..\Views\GenerateView.xaml"
                this.ProductInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);

            #line default
            #line hidden
                return;

            case 7:
                this.InstallMsi = ((System.Windows.Controls.RadioButton)(target));

            #line 82 "..\..\..\..\Views\GenerateView.xaml"
                this.InstallMsi.Checked += new System.Windows.RoutedEventHandler(this.InstallExecutable_OnChecked);

            #line default
            #line hidden
                return;

            case 8:
                this.InstallExecutable = ((System.Windows.Controls.RadioButton)(target));

            #line 86 "..\..\..\..\Views\GenerateView.xaml"
                this.InstallExecutable.Checked += new System.Windows.RoutedEventHandler(this.InstallExecutable_OnChecked);

            #line default
            #line hidden
                return;

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

            #line 114 "..\..\..\..\Views\GenerateView.xaml"
                this.SignInstallerInfo.Click += new System.Windows.RoutedEventHandler(this.SignInstallerInfo_Click);

            #line default
            #line hidden
                return;

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

            #line 123 "..\..\..\..\Views\GenerateView.xaml"
                this.SignInstaller.Checked += new System.Windows.RoutedEventHandler(this.SignWithCert_OnCheck);

            #line default
            #line hidden

            #line 123 "..\..\..\..\Views\GenerateView.xaml"
                this.SignInstaller.Unchecked += new System.Windows.RoutedEventHandler(this.SignWithCert_OnCheck);

            #line default
            #line hidden
                return;

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

            #line 127 "..\..\..\..\Views\GenerateView.xaml"
                this.OpenCertificateBrowser.Click += new System.Windows.RoutedEventHandler(this.OpenCertificateBrowser_OnClick);

            #line default
            #line hidden
                return;

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

            #line 130 "..\..\..\..\Views\GenerateView.xaml"
                this.OpenCertGenerator.Click += new System.Windows.RoutedEventHandler(this.OpenCertGenerator_OnClick);

            #line default
            #line hidden
                return;

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

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

            #line 188 "..\..\..\..\Views\GenerateView.xaml"
                this.VersionInfoGen.Click += new System.Windows.RoutedEventHandler(this.VersionInfoGen_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.MajorVersion = ((MahApps.Metro.Controls.NumericUpDown)(target));
                return;

            case 16:
                this.MinorVersion = ((MahApps.Metro.Controls.NumericUpDown)(target));
                return;

            case 17:
                this.ReleaseVersion = ((MahApps.Metro.Controls.NumericUpDown)(target));
                return;

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

            #line 222 "..\..\..\..\Views\GenerateView.xaml"
                this.SilentInstallInfo.Click += new System.Windows.RoutedEventHandler(this.SilentInstallInfo_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.SilentInstall = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 231 "..\..\..\..\Views\GenerateView.xaml"
                this.SilentInstall.Checked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.SilentInstall_OnChecked);

            #line default
            #line hidden

            #line 231 "..\..\..\..\Views\GenerateView.xaml"
                this.SilentInstall.Unchecked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.SilentInstall_OnChecked);

            #line default
            #line hidden
                return;

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

            #line 248 "..\..\..\..\Views\GenerateView.xaml"
                this.FilePathGen.Click += new System.Windows.RoutedEventHandler(this.FilePathGen_Click);

            #line default
            #line hidden
                return;

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

            #line 256 "..\..\..\..\Views\GenerateView.xaml"
                this.FileSavePath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.FileSavePath_OnTextChanged);

            #line default
            #line hidden
                return;

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

            #line 259 "..\..\..\..\Views\GenerateView.xaml"
                this.SaveButton.Click += new System.Windows.RoutedEventHandler(this.SaveButton_Click);

            #line default
            #line hidden
                return;

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

            #line 260 "..\..\..\..\Views\GenerateView.xaml"
                this.OpenExeFolderButton.Click += new System.Windows.RoutedEventHandler(this.OpenExeFolderButton_OnClick);

            #line default
            #line hidden
                return;

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

            #line 282 "..\..\..\..\Views\GenerateView.xaml"
                this.EmbedOfficeInstall.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);

            #line default
            #line hidden
                return;

            case 25:
                this.IncludeBuild = ((System.Windows.Controls.CheckBox)(target));

            #line 290 "..\..\..\..\Views\GenerateView.xaml"
                this.IncludeBuild.Checked += new System.Windows.RoutedEventHandler(this.IncludeBuild_OnChecked);

            #line default
            #line hidden

            #line 290 "..\..\..\..\Views\GenerateView.xaml"
                this.IncludeBuild.Unchecked += new System.Windows.RoutedEventHandler(this.IncludeBuild_OnChecked);

            #line default
            #line hidden
                return;

            case 26:
                this.SourceFilePath = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 308 "..\..\..\..\Views\GenerateView.xaml"
                this.SourceFilePathGen.Click += new System.Windows.RoutedEventHandler(this.SourceFilePathGen_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.SourcePathLabel = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 319 "..\..\..\..\Views\GenerateView.xaml"
                this.BuildFilePath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.BuildFilePath_OnTextChanged);

            #line default
            #line hidden
                return;

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

            #line 323 "..\..\..\..\Views\GenerateView.xaml"
                this.BrowseSourcePathButton.Click += new System.Windows.RoutedEventHandler(this.BrowseSourcePathButton_OnClick);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 32:
                this.WaitImage = ((System.Windows.Controls.Image)(target));
                return;

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

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

            #line default
            #line hidden
                return;

            case 34:
                this.GenerateButton = ((System.Windows.Controls.Button)(target));

            #line 351 "..\..\..\..\Views\GenerateView.xaml"
                this.GenerateButton.Click += new System.Windows.RoutedEventHandler(this.GenerateButton_OnClick);

            #line default
            #line hidden
                return;

            case 35:
                this.xmlBrowser = ((MahApps.Metro.Controls.XmlBrowser.XmlBrowserControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 44
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 9 "..\..\..\View\ReporteGastos.xaml"
     ((Becarios.View.ReporteGastos)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 22 "..\..\..\View\ReporteGastos.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.panelFiltrar = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 4:
     this.myCombo = ((System.Windows.Controls.ComboBox)(target));
     
     #line 53 "..\..\..\View\ReporteGastos.xaml"
     this.myCombo.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.myCombo_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     this.toggleFiltrar = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 62 "..\..\..\View\ReporteGastos.xaml"
     this.toggleFiltrar.IsCheckedChanged += new System.EventHandler(this.toggleFiltrar_IsCheckedChanged);
     
     #line default
     #line hidden
     return;
     case 6:
     this.reportViewer = ((Microsoft.Reporting.WinForms.ReportViewer)(target));
     
     #line 66 "..\..\..\View\ReporteGastos.xaml"
     this.reportViewer.Load += new System.EventHandler(this.reportViewer_Load);
     
     #line default
     #line hidden
     return;
     case 7:
     this.reportViewerHabitaciones = ((Microsoft.Reporting.WinForms.ReportViewer)(target));
     
     #line 75 "..\..\..\View\ReporteGastos.xaml"
     this.reportViewerHabitaciones.Load += new System.EventHandler(this.reportViewerHabitaciones_Load);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 70 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.LaunchVisualStudioDemo);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 71 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.LaunchFlyoutDemo);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 72 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.LaunchIcons);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 73 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.LauchCleanDemo);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 75 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.InteropDemo);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 76 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.LaunchNavigationDemo);
     
     #line default
     #line hidden
     return;
     case 7:
     
     #line 92 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ThemeLight);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 93 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ThemeDark);
     
     #line default
     #line hidden
     return;
     case 9:
     this.UseAccentForDialogsMenuItem = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 10:
     
     #line 101 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowInputDialog);
     
     #line default
     #line hidden
     return;
     case 11:
     
     #line 102 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowMessageDialog);
     
     #line default
     #line hidden
     return;
     case 12:
     
     #line 103 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowProgressDialog);
     
     #line default
     #line hidden
     return;
     case 13:
     
     #line 104 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowSimpleDialog);
     
     #line default
     #line hidden
     return;
     case 14:
     
     #line 105 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowDialogOutside);
     
     #line default
     #line hidden
     return;
     case 15:
     this.enabledSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 16:
     this.visibleSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 17:
     this.waitingTextBox = ((System.Windows.Controls.TextBox)(target));
     return;
     case 18:
     this.test1 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 19:
     this.test2 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 20:
     this.test = ((MahApps.Metro.Controls.NumericUpDown)(target));
     return;
     case 21:
     this.groupingComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 22:
     this.horizSlider = ((System.Windows.Controls.Slider)(target));
     return;
     case 23:
     this.indeterminateCB = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 24:
     
     #line 1096 "..\..\..\MainWindow.xaml"
     ((MahApps.Metro.Controls.MetroTabControl)(target)).TabItemClosingEvent += new MahApps.Metro.Controls.BaseMetroTabControl.TabItemClosingEventHandler(this.MetroTabControl_TabItemClosingEvent);
     
     #line default
     #line hidden
     return;
     case 25:
     this.transitioning = ((MahApps.Metro.Controls.TransitioningContentControl)(target));
     return;
     case 26:
     this.customTransitioning = ((MahApps.Metro.Controls.TransitioningContentControl)(target));
     return;
     case 27:
     this.CustomTransition = ((System.Windows.VisualState)(target));
     return;
     case 28:
     this.SecondcustomTransitioning = ((MahApps.Metro.Controls.TransitioningContentControl)(target));
     return;
     case 29:
     this.SecondCustomTransition = ((System.Windows.VisualState)(target));
     return;
     case 30:
     this.ShowBannerCheckBox = ((System.Windows.Controls.CheckBox)(target));
     return;
     case 31:
     
     #line 1321 "..\..\..\MainWindow.xaml"
     ((MahApps.Metro.Controls.FlipView)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FlipView_SelectionChanged);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 11 "..\..\..\..\ExampleViews\UpdateView.xaml"
     ((MetroDemo.ExampleViews.UpdateView)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UpdateView_OnLoaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.Product = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.MainTabControl = ((MahApps.Metro.Controls.MetroAnimatedSingleRowTabControl)(target));
     return;
     case 4:
     this.OptionalTab = ((System.Windows.Controls.TabItem)(target));
     return;
     case 5:
     this.EnabledSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 80 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.EnabledSwitch.IsCheckedChanged += new System.EventHandler(this.EnabledSwitch_OnIsCheckedChanged);
     
     #line default
     #line hidden
     return;
     case 6:
     this.BranchInfo = ((System.Windows.Controls.Button)(target));
     
     #line 94 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.BranchInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 7:
     this.UpdateBranch = ((System.Windows.Controls.ComboBox)(target));
     
     #line 101 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.UpdateBranch.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.UpdateBranch_OnSelectionChanged);
     
     #line default
     #line hidden
     return;
     case 8:
     this.UpdatePathInfo = ((System.Windows.Controls.Button)(target));
     
     #line 121 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.UpdatePathInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 9:
     this.UpdateUpdatePath = ((System.Windows.Controls.TextBox)(target));
     
     #line 129 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.UpdateUpdatePath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.UpdateUpdatePath_OnTextChanged);
     
     #line default
     #line hidden
     return;
     case 10:
     this.UpdatePath = ((System.Windows.Controls.Button)(target));
     
     #line 133 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.UpdatePath.Click += new System.Windows.RoutedEventHandler(this.UpdatePath_OnClick);
     
     #line default
     #line hidden
     return;
     case 11:
     this.OpenFolderButton = ((System.Windows.Controls.Button)(target));
     
     #line 136 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.OpenFolderButton.Click += new System.Windows.RoutedEventHandler(this.OpenFolderButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 12:
     this.TargetVersionInfo = ((System.Windows.Controls.Button)(target));
     
     #line 147 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.TargetVersionInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 13:
     this.UpdateTargetVersion = ((System.Windows.Controls.ComboBox)(target));
     
     #line 157 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.UpdateTargetVersion.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.UpdateBranch_OnSelectionChanged);
     
     #line default
     #line hidden
     return;
     case 14:
     this.DeadlineInfo = ((System.Windows.Controls.Button)(target));
     
     #line 170 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.DeadlineInfo.Click += new System.Windows.RoutedEventHandler(this.ProductInfo_OnClick);
     
     #line default
     #line hidden
     return;
     case 15:
     this.UpdateDeadline = ((System.Windows.Controls.DatePicker)(target));
     
     #line 175 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.UpdateDeadline.PreviewKeyUp += new System.Windows.Input.KeyEventHandler(this.UpdateDeadline_OnPreviewKeyUp);
     
     #line default
     #line hidden
     
     #line 176 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.UpdateDeadline.SelectedDateChanged += new System.EventHandler<System.Windows.Controls.SelectionChangedEventArgs>(this.UpdateDeadline_OnSelectedDateChanged);
     
     #line default
     #line hidden
     return;
     case 16:
     this.DeadlineTimeHour = ((System.Windows.Controls.TextBox)(target));
     
     #line 181 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.DeadlineTimeHour.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.DeadlineTimeHour_OnKeyDown);
     
     #line default
     #line hidden
     
     #line 182 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.DeadlineTimeHour.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.DeadlineTimeHour_OnTextChanged);
     
     #line default
     #line hidden
     return;
     case 17:
     this.DeadlineTimeMinute = ((System.Windows.Controls.TextBox)(target));
     
     #line 185 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.DeadlineTimeMinute.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.DeadlineTimeMinute_OnPreviewKeyDown);
     
     #line default
     #line hidden
     
     #line 186 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.DeadlineTimeMinute.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.DeadlineTimeMinute_OnTextChanged);
     
     #line default
     #line hidden
     return;
     case 18:
     this.PreviousButton = ((System.Windows.Controls.Button)(target));
     
     #line 211 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.PreviousButton.Click += new System.Windows.RoutedEventHandler(this.PreviousButton_OnClick);
     
     #line default
     #line hidden
     return;
     case 19:
     this.NextButton = ((System.Windows.Controls.Button)(target));
     
     #line 212 "..\..\..\..\ExampleViews\UpdateView.xaml"
     this.NextButton.Click += new System.Windows.RoutedEventHandler(this.NextButton_OnClick);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 47
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Root = ((DGP_Snap.Views.WallpaperView)(target));

            #line 10 "..\..\..\Views\WallpaperView.xaml"
                this.Root.Loaded += new System.Windows.RoutedEventHandler(this.Root_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.OpacityMaskRect = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

            case 4:
                this.BottomBar = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.SwitchBaidu = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 46 "..\..\..\Views\WallpaperView.xaml"
                this.SwitchBaidu.IsCheckedChanged += new System.EventHandler(this.ToggleSwitch_IsCheckedChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.Switch360 = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 47 "..\..\..\Views\WallpaperView.xaml"
                this.Switch360.IsCheckedChanged += new System.EventHandler(this.ToggleSwitch_IsCheckedChanged);

            #line default
            #line hidden
                return;

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

            #line 48 "..\..\..\Views\WallpaperView.xaml"
                this.SwitchBing.IsCheckedChanged += new System.EventHandler(this.ToggleSwitch_IsCheckedChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.WallPaperImageOpacitySlider = ((System.Windows.Controls.Slider)(target));
                return;

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

            #line 65 "..\..\..\Views\WallpaperView.xaml"
                this.DownloadWallPaperButton.Click += new System.Windows.RoutedEventHandler(this.DownloadWallPaperButton_Click);

            #line default
            #line hidden
                return;

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

            #line 66 "..\..\..\Views\WallpaperView.xaml"
                this.SwitchWallPaperButton.Click += new System.Windows.RoutedEventHandler(this.SwitchWallPaperButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 48
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.QuizWindowName = ((TwitchChatBotGUI.MenuItems.QuizSettings)(target));
     return;
     case 2:
     this.TimeBetweenQuestions = ((System.Windows.Controls.TextBox)(target));
     return;
     case 3:
     this.TimeBetweenHints = ((System.Windows.Controls.TextBox)(target));
     return;
     case 4:
     this.DelayBetweenQuestions = ((System.Windows.Controls.TextBox)(target));
     return;
     case 5:
     this.OpenFile = ((System.Windows.Controls.Button)(target));
     
     #line 65 "..\..\..\MenuItems\QuizSettings.xaml"
     this.OpenFile.Click += new System.Windows.RoutedEventHandler(this.OpenFileClick);
     
     #line default
     #line hidden
     return;
     case 6:
     this.QuizFile = ((System.Windows.Controls.TextBox)(target));
     return;
     case 7:
     this.RandomizeSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 8:
     this.ForgiveSmallMissplelling = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 9:
     
     #line 84 "..\..\..\MenuItems\QuizSettings.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AcceptClick);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 49
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainWindow = ((WXBWPF.Window1)(target));

            #line 7 "..\..\Window1.xaml"
                this.MainWindow.Loaded += new System.Windows.RoutedEventHandler(this.MainWindow_Loaded);

            #line default
            #line hidden
                return;

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

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

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

            case 5:
                this.checkBox1 = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 6:
                this.checkBox4 = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

            case 7:
                this.checkBox2 = ((MahApps.Metro.Controls.ToggleSwitch)(target));
                return;

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

            #line 26 "..\..\Window1.xaml"
                this.textBox2.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged);

            #line default
            #line hidden
                return;

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

            #line 28 "..\..\Window1.xaml"
                this.checkBox5.Checked += new System.Windows.RoutedEventHandler(this.CheckBox5_Checked);

            #line default
            #line hidden

            #line 28 "..\..\Window1.xaml"
                this.checkBox5.IsEnabledChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.CheckBox5_IsEnabledChanged);

            #line default
            #line hidden

            #line 28 "..\..\Window1.xaml"
                this.checkBox5.Click += new System.Windows.RoutedEventHandler(this.CheckBox5_Click);

            #line default
            #line hidden
                return;

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

            #line 29 "..\..\Window1.xaml"
                this.button2.Click += new System.Windows.RoutedEventHandler(this.Button2_Click);

            #line default
            #line hidden
                return;

            case 11:

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

            #line default
            #line hidden
                return;

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

            #line 31 "..\..\Window1.xaml"
                this.checkBox5_Copy.Checked += new System.Windows.RoutedEventHandler(this.CheckBox_Checked);

            #line default
            #line hidden

            #line 31 "..\..\Window1.xaml"
                this.checkBox5_Copy.IsEnabledChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.CheckBox5_IsEnabledChanged);

            #line default
            #line hidden
                return;

            case 13:

            #line 32 "..\..\Window1.xaml"
                ((System.Windows.Controls.Label)(target)).MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp);

            #line default
            #line hidden
                return;

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

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

            #line 34 "..\..\Window1.xaml"
                this.button3.Click += new System.Windows.RoutedEventHandler(this.Button3_Click);

            #line default
            #line hidden
                return;

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

            #line 35 "..\..\Window1.xaml"
                this.button4.Click += new System.Windows.RoutedEventHandler(this.Button4_Click);

            #line default
            #line hidden
                return;

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

            #line 36 "..\..\Window1.xaml"
                this.l2.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.L2_MouseUp);

            #line default
            #line hidden
                return;

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

            #line 37 "..\..\Window1.xaml"
                this.button4_Copy.Click += new System.Windows.RoutedEventHandler(this.Button4_Copy_Click);

            #line default
            #line hidden
                return;

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

            #line 38 "..\..\Window1.xaml"
                this.button2_Copy.Click += new System.Windows.RoutedEventHandler(this.Button2_Copy_Click);

            #line default
            #line hidden
                return;

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

            #line 39 "..\..\Window1.xaml"
                this.button2_Copy1.Click += new System.Windows.RoutedEventHandler(this.Button2_Copy1_Click);

            #line default
            #line hidden
                return;

            case 21:

            #line 40 "..\..\Window1.xaml"
                ((System.Windows.Controls.Label)(target)).MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseUp_2);

            #line default
            #line hidden
                return;

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

            #line 41 "..\..\Window1.xaml"
                this.button2_Copy2.Click += new System.Windows.RoutedEventHandler(this.Button2_Copy2_Click);

            #line default
            #line hidden
                return;

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

            #line 42 "..\..\Window1.xaml"
                this.button2_Copy3.Click += new System.Windows.RoutedEventHandler(this.Button2_Copy3_Click);

            #line default
            #line hidden
                return;

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

            #line 43 "..\..\Window1.xaml"
                this.button2_Copy4.Click += new System.Windows.RoutedEventHandler(this.Button2_Copy4_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.checkBox5_Copy1 = ((System.Windows.Controls.CheckBox)(target));

            #line 44 "..\..\Window1.xaml"
                this.checkBox5_Copy1.IsEnabledChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.CheckBox5_IsEnabledChanged);

            #line default
            #line hidden

            #line 44 "..\..\Window1.xaml"
                this.checkBox5_Copy1.Checked += new System.Windows.RoutedEventHandler(this.CheckBox5_Copy1_Checked);

            #line default
            #line hidden

            #line 44 "..\..\Window1.xaml"
                this.checkBox5_Copy1.Click += new System.Windows.RoutedEventHandler(this.CheckBox5_Copy1_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 50
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.progressBarBattery = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 2:
     this.progressBarHackingProgress = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 3:
     this.progressBarAlert = ((System.Windows.Controls.ProgressBar)(target));
     return;
     case 4:
     this.circleButtonE = ((System.Windows.Controls.Button)(target));
     
     #line 62 "..\..\MainWindow.xaml"
     this.circleButtonE.Click += new System.Windows.RoutedEventHandler(this.circleButtonE_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.circleButtonS = ((System.Windows.Controls.Button)(target));
     
     #line 66 "..\..\MainWindow.xaml"
     this.circleButtonS.Click += new System.Windows.RoutedEventHandler(this.circleButtonS_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.circleButtonF = ((System.Windows.Controls.Button)(target));
     
     #line 70 "..\..\MainWindow.xaml"
     this.circleButtonF.Click += new System.Windows.RoutedEventHandler(this.circleButtonF_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.tabControl = ((System.Windows.Controls.TabControl)(target));
     return;
     case 8:
     this.mailTab = ((System.Windows.Controls.TabItem)(target));
     return;
     case 9:
     this.mailsListBox = ((System.Windows.Controls.ListBox)(target));
     
     #line 80 "..\..\MainWindow.xaml"
     this.mailsListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.mailsListBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 10:
     this.terminalOutputTextBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 11:
     this.textBoxTerminal = ((System.Windows.Controls.TextBox)(target));
     
     #line 104 "..\..\MainWindow.xaml"
     this.textBoxTerminal.KeyDown += new System.Windows.Input.KeyEventHandler(this.textBoxTerminal_KeyDown);
     
     #line default
     #line hidden
     return;
     case 12:
     this.selfDestructToggle = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     
     #line 112 "..\..\MainWindow.xaml"
     this.selfDestructToggle.Checked += new System.EventHandler<System.Windows.RoutedEventArgs>(this.selfDestructToggle_Checked);
     
     #line default
     #line hidden
     return;
     case 13:
     this.selfDestructButton = ((System.Windows.Controls.Button)(target));
     
     #line 117 "..\..\MainWindow.xaml"
     this.selfDestructButton.Click += new System.Windows.RoutedEventHandler(this.selfDestructButton_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.buttonHack = ((System.Windows.Controls.Button)(target));
     
     #line 124 "..\..\MainWindow.xaml"
     this.buttonHack.Click += new System.Windows.RoutedEventHandler(this.buttonHack_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.buttonStop = ((System.Windows.Controls.Button)(target));
     
     #line 130 "..\..\MainWindow.xaml"
     this.buttonStop.Click += new System.Windows.RoutedEventHandler(this.buttonStop_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.textBlockPassword = ((System.Windows.Controls.TextBox)(target));
     
     #line 133 "..\..\MainWindow.xaml"
     this.textBlockPassword.KeyDown += new System.Windows.Input.KeyEventHandler(this.textBlockPassword_KeyDown);
     
     #line default
     #line hidden
     
     #line 134 "..\..\MainWindow.xaml"
     this.textBlockPassword.GotFocus += new System.Windows.RoutedEventHandler(this.TextBox_GotFocus);
     
     #line default
     #line hidden
     return;
     case 17:
     this.buttonLogOut = ((System.Windows.Controls.Button)(target));
     
     #line 142 "..\..\MainWindow.xaml"
     this.buttonLogOut.Click += new System.Windows.RoutedEventHandler(this.buttonLogOut_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.buttonHelp = ((System.Windows.Controls.Button)(target));
     
     #line 148 "..\..\MainWindow.xaml"
     this.buttonHelp.Click += new System.Windows.RoutedEventHandler(this.buttonHelp_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 51
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 38 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.SettingsOpen);

            #line default
            #line hidden

            #line 38 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.SettingsGridEnter);

            #line default
            #line hidden

            #line 38 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.SettingsGridLeave);

            #line default
            #line hidden
                return;

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

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

            case 4:

            #line 45 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.InternetOpen);

            #line default
            #line hidden

            #line 45 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.InternetGridEnter);

            #line default
            #line hidden

            #line 45 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.InternetGridLeave);

            #line default
            #line hidden
                return;

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

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

            case 7:

            #line 52 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.DatabaseOpen);

            #line default
            #line hidden

            #line 52 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.DBGridEnter);

            #line default
            #line hidden

            #line 52 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.DBGridLeave);

            #line default
            #line hidden
                return;

            case 8:
                this.DBimage = ((System.Windows.Controls.Image)(target));
                return;

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

            case 10:

            #line 59 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.PrinterOpen);

            #line default
            #line hidden

            #line 59 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.PrinterGridEnter);

            #line default
            #line hidden

            #line 59 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.PrinterGridLeave);

            #line default
            #line hidden
                return;

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

            case 12:
                this.printertext = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 72 "..\..\VpnClient.xaml"
                this.clockbox.Loaded += new System.Windows.RoutedEventHandler(this.ClockLoad);

            #line default
            #line hidden
                return;

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

            case 15:

            #line 93 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenActiveServices);

            #line default
            #line hidden
                return;

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

            case 17:

            #line 112 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowDatabase);

            #line default
            #line hidden
                return;

            case 18:

            #line 113 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowUpload);

            #line default
            #line hidden
                return;

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

            case 20:
                this.proxyswitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 127 "..\..\VpnClient.xaml"
                this.proxyswitch.Click += new System.EventHandler <System.Windows.RoutedEventArgs>(this.ToogleProxy);

            #line default
            #line hidden
                return;

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

            case 22:

            #line 145 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenPrint);

            #line default
            #line hidden
                return;

            case 23:

            #line 146 "..\..\VpnClient.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenPrintQueue);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 52
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.cbProjects = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 2:
     this.ToggleSwitch1 = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 3:
     this.ButtonCancel = ((System.Windows.Controls.Button)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 53
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ServerRate = ((MahApps.Metro.Controls.NumericUpDown)(target));

            #line 64 "..\..\..\GUI\UserControl1.xaml"
                this.ServerRate.MouseLeave += new System.Windows.Input.MouseEventHandler(this.ServerRateChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.LogDebug = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 83 "..\..\..\GUI\UserControl1.xaml"
                this.LogDebug.MouseLeave += new System.Windows.Input.MouseEventHandler(this.LogDebugChanged);

            #line default
            #line hidden
                return;

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

            #line 99 "..\..\..\GUI\UserControl1.xaml"
                this.Autofarm.MouseLeave += new System.Windows.Input.MouseEventHandler(this.AutofarmChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.BroadcasterInterval = ((MahApps.Metro.Controls.NumericUpDown)(target));

            #line 112 "..\..\..\GUI\UserControl1.xaml"
                this.BroadcasterInterval.MouseLeave += new System.Windows.Input.MouseEventHandler(this.BroadcasterIntervalChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.CraftWhileFarming = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 131 "..\..\..\GUI\UserControl1.xaml"
                this.CraftWhileFarming.MouseLeave += new System.Windows.Input.MouseEventHandler(this.CraftWhileFarmingChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.FilterLoot = ((MahApps.Metro.Controls.ToggleSwitch)(target));

            #line 147 "..\..\..\GUI\UserControl1.xaml"
                this.FilterLoot.MouseLeave += new System.Windows.Input.MouseEventHandler(this.FilterLootChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.UserControl = ((Orange.Preferences)(target));
     
     #line 12 "..\..\..\..\Main\DialogUserControls\Preferences.xaml"
     this.UserControl.Unloaded += new System.Windows.RoutedEventHandler(this.UserControl_Unloaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
     
     #line 14 "..\..\..\..\Main\DialogUserControls\Preferences.xaml"
     this.LayoutRoot.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.LayoutRoot_MouseDown);
     
     #line default
     #line hidden
     return;
     case 3:
     this.TopmostToggleSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 4:
     this.TrayToggleSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 5:
     this.LanguageCombobox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 22 "..\..\..\..\Main\DialogUserControls\Preferences.xaml"
     this.LanguageCombobox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.LanguageCombobox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 6:
     this.English = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 7:
     this.Korean = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 8:
     this.japanese = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 9:
     this.french = ((System.Windows.Controls.ComboBoxItem)(target));
     return;
     case 10:
     this.confirmBtn = ((System.Windows.Controls.Button)(target));
     
     #line 32 "..\..\..\..\Main\DialogUserControls\Preferences.xaml"
     this.confirmBtn.Click += new System.Windows.RoutedEventHandler(this.confirmBtn_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.enabledSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 2:
     this.visibleSwitch = ((MahApps.Metro.Controls.ToggleSwitch)(target));
     return;
     case 3:
     this.DownButton = ((MahApps.Metro.Controls.DropDownButton)(target));
     return;
     case 4:
     this.DownButton1 = ((MahApps.Metro.Controls.DropDownButton)(target));
     return;
     case 5:
     this.SplitButton0 = ((MahApps.Metro.Controls.SplitButton)(target));
     return;
     case 6:
     this.SplitButton1 = ((MahApps.Metro.Controls.SplitButton)(target));
     return;
     }
     this._contentLoaded = true;
 }