private void Render()
        {
            ModuleView.Children.Clear();

            var filter = CategorySelector.SelectedItem.ToString();

            EcalcModule[] matchs = null;

            if (string.IsNullOrEmpty(SearchBox.Text))
                matchs = App.Modules.SelectCategory(filter);
            else
                matchs = App.Modules.Search(SearchBox.Text);

            foreach (var match in matchs)
            {
                var t = new Tile();
                t.ToolTip = match.ModuleName;
                t.Title = match.ModuleName;
                t.Background = match.BackColor;
                var icon = new Image();
                icon.Source = match.Icon;
                t.Content = icon;
                t.Click += Tile_Click;
                ModuleView.Children.Add(t);

            }
        }
Example #2
0
        public async Task TemplateBindingShouldGetTheFontSize()
        {
            await TestHost.SwitchToAppThread();

            var testTile = new Tile();
            var window = await WindowHelpers.CreateInvisibleWindowAsync<MetroWindow>(w =>
                {
                    var grid = new Grid();
                    grid.Children.Add(testTile);
                    w.Content = grid;
                }).ConfigureAwait(false);

            window.Invoke(() =>
                {
                    // default values

                    Assert.Equal(16d, testTile.FindChild<AccessText>(string.Empty).FontSize);
                    Assert.Equal(28d, testTile.FindChild<TextBlock>(string.Empty).FontSize);

                    // now change it

                    var fontSize = 42d;

                    testTile.TitleFontSize = fontSize;
                    Assert.Equal(fontSize, testTile.FindChild<AccessText>(string.Empty).FontSize);

                    testTile.CountFontSize = fontSize;
                    Assert.Equal(fontSize, testTile.FindChild<TextBlock>(string.Empty).FontSize);
                });
        }
        private UserControl GetControl(Tile t)
        {
            UserControl control = null;

            switch (t.Title)
            {
                case "Calculator":
                    control = new Calculator();
                    break;
                case "Equation System Solver":
                    control = new EquationSystemSolver();
                    break;
                case "Unit Converter":
                    control = new UnitConverterPage();
                    break;
                case "Currency Converter":
                    control = new CurrencyConverter();
                    break;
                case "Function Plot":
                    control = new Graphing();
                    break;
                default:
                    var title = t.ToolTip.ToString();
                    control = App.Modules.RunByName(title);
                    break;
            }

            return control;
        }
Example #4
0
        private void MetroWindow_Loaded(object sender, RoutedEventArgs e)
        {
            foreach (var button in BussinessApplication.Current.Buttons)
                TitleButton.Items.Add(button);
            BussinessApplication.Current.Buttons.CollectionChanged += Buttons_CollectionChanged;

            StartMenu = new StartMenu();
            StartMenuItem.Tag = StartMenu;
            foreach (var flow in Flows)
            {
                StartMenuGroup group = new StartMenuGroup();
                Label name = new Label();
                name.FontSize = 48;
                name.Content = flow.Name;
                name.Foreground = Brushes.Black;
                group.Header = name;

                foreach (var item in flow.Items.OrderBy(t => t.Order))
                {
                    Tile tile = new Tile();
                    tile.Title = item.Name;
                    tile.Background = Brushes.Green;
                    if (item.SmallSize)
                        tile.Width = 120;
                    else
                        tile.Width = 248;
                    tile.Height = 120;
                    tile.Click += Tile_Click;
                    tile.Tag = item;
                    if (item.Icon != null)
                        tile.Content = new Rectangle { Fill = new VisualBrush(item.Icon) { Stretch = Stretch.Uniform }, Width = item.IconSize.Width, Height = item.IconSize.Height };
                    tile.Margin = new Thickness(4);

                    group.Items.Add(tile);
                }

                StartMenu.Items.Add(group);
            }
            ContentControl.Content = StartMenu;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MetroMainWindow = ((RFIDBackground.MainWindow)(target));
     
     #line 6 "..\..\MainWindow.xaml"
     this.MetroMainWindow.Closing += new System.ComponentModel.CancelEventHandler(this.MetroMainWindow_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.SetButton = ((System.Windows.Controls.Button)(target));
     
     #line 9 "..\..\MainWindow.xaml"
     this.SetButton.Click += new System.Windows.RoutedEventHandler(this.SetButton_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.SetFlyout = ((MahApps.Metro.Controls.Flyout)(target));
     return;
     case 4:
     this.SerialComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 5:
     this.BaudComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 6:
     this.MainControl = ((MahApps.Metro.Controls.TransitioningContentControl)(target));
     return;
     case 7:
     this.MainPanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 8:
     this.TopPanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 9:
     this.SwitchButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 47 "..\..\MainWindow.xaml"
     this.SwitchButton.Click += new System.Windows.RoutedEventHandler(this.SwitchButton_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.SwitchDropShadowEffect = ((System.Windows.Media.Effects.DropShadowEffect)(target));
     return;
     case 11:
     this.IndicateStatusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
     return;
     case 12:
     this.StatusRing = ((MahApps.Metro.Controls.ProgressRing)(target));
     return;
     case 13:
     this.StatusTextBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
Example #6
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;
 }
Example #7
0
        void Transition(object sender, EventArgs e)
        {
            var transitionInfo = m_TimerCollection[((DispatcherTimer)sender).Tag.ToString()];
            var tile = new Tile();
            tile.Click += Tile_Click;
            if (transitionInfo.TransTileSize == TransitionDispatcher.TileSize.Large)
            {
                tile.Width = 240;
                tile.Height = 125;
            }
            else
            {
                tile.Width = 120;
                tile.Height = 125;
            }
            var transitioning = transitionInfo.TransControl;
            if (transitioning.Content == null || ((Tile)transitioning.Content).Tag.ToString() == "Text")
            {

                //tile.TitleFontSize = 10;
                tile.Background = new ImageBrush(new BitmapImage(new Uri(Environment.CurrentDirectory + string.Format("/Resources/Images/{0}", transitionInfo.ImageLogo), UriKind.Relative)));
                tile.Tag = "Logo";
            }
            else
            {
                tile.Background = new ImageBrush(new BitmapImage(new Uri(Environment.CurrentDirectory + string.Format("/Resources/Images/{0}", transitionInfo.ImageText), UriKind.Relative)));
                tile.Tag = "Text";
            }
            transitioning.Content = tile;// new BitmapImage(new Uri(""));
            transitionInfo.TransTimer.Interval = new TimeSpan(0, 0, rndInterval.Next(5));
            //timer.Interval = new TimeSpan(0, 0, rndInterval.Next(5));
        }
Example #8
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.tileCliente = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 26 "..\..\..\View\OptionMenu.xaml"
     this.tileCliente.Click += new System.Windows.RoutedEventHandler(this.tileCliente_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     this.tileReservaciones = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 30 "..\..\..\View\OptionMenu.xaml"
     this.tileReservaciones.Click += new System.Windows.RoutedEventHandler(this.tileReservaciones_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.tileHabitaciones = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 34 "..\..\..\View\OptionMenu.xaml"
     this.tileHabitaciones.Click += new System.Windows.RoutedEventHandler(this.tileHabitaciones_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.tileRestaurante = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 38 "..\..\..\View\OptionMenu.xaml"
     this.tileRestaurante.Click += new System.Windows.RoutedEventHandler(this.tileRestaurante_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.tileConsultas = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 42 "..\..\..\View\OptionMenu.xaml"
     this.tileConsultas.Click += new System.Windows.RoutedEventHandler(this.tileConsultas_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.tileExit = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 46 "..\..\..\View\OptionMenu.xaml"
     this.tileExit.Click += new System.Windows.RoutedEventHandler(this.tileExit_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\MainWindow.xaml"
                ((BPC_ProjetX_Launcher.MainWindow)(target)).Closed += new System.EventHandler(this.MetroWindow_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.MainWindow_Menu_Login = ((System.Windows.Controls.MenuItem)(target));

            #line 24 "..\..\MainWindow.xaml"
                this.MainWindow_Menu_Login.Click += new System.Windows.RoutedEventHandler(this.MainWindow_Menu_Login_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.MainWindow_Menu_Logout = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 4:
                this.MainWindow_Menu_Debug = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 5:
                this.MainWindow_Menu_Debug_LiveLog = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 6:
                this.MainWindow_Menu_Debug_LiveEvent = ((System.Windows.Controls.MenuItem)(target));
                return;

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

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

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

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

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

            case 12:
                this.MainWindow_Status_ServeurAuthentification_Rct = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

            case 14:
                this.MainWindow_Status_ModsCheck_Rct = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

            case 16:
                this.MainWindow_Status_GameLinkConnection_Rct = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

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

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 59 "..\..\MainWindow.xaml"
                this.MainWindow_Tile_Arma3Settings.Click += new System.Windows.RoutedEventHandler(this.MainWindow_Tile_Arma3Settings_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #10
0
        private void GrabAlbums()
        {
            WrapPanel.Children.Clear();
              var albums = Itemsource.SongLibrary.GroupBy(x => x.Album).Select(x => x.First()).ToList();

              foreach (var item in albums)
              {
            var tagFile = File.Create(item.FileName);

            var newTile = new Tile
            {
              VerticalContentAlignment = VerticalAlignment.Bottom,
              Width = 175,
              ToolTip = item.Album + " - " + item.Artist,
              Height = 175,
              Margin = new Thickness(5),
              FontSize = 14,
              Title = item.Album,
              Foreground = Brushes.Transparent
            };

            //newTile.Foreground = (Brush)FindResource("AccentColorBrush");
            newTile.Click += Album_OnClick;

            try
            {
              var pic = tagFile.Tag.Pictures[0];
              var ms = new MemoryStream(pic.Data.Data);
              ms.Seek(0, SeekOrigin.Begin);

              var bitmap = new BitmapImage();
              bitmap.BeginInit();
              bitmap.StreamSource = ms;
              bitmap.EndInit();

              newTile.Background = new ImageBrush {ImageSource = bitmap};
            }
            catch
            {
              newTile.Foreground = Brushes.White;
              newTile.Background = (Brush) FindResource("AccentColorBrush2");
            }
            WrapPanel.Children.Add(newTile);
              }
        }
Example #11
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

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

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

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

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden
                return;

            case 5:

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

            #line default
            #line hidden
                return;

            case 6:

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

            #line default
            #line hidden
                return;

            case 7:

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

            #line default
            #line hidden
                return;

            case 8:

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

            #line default
            #line hidden
                return;

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

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

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

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

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

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

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

            #line default
            #line hidden

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

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

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

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

            #line default
            #line hidden

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

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

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

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

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

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

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

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

            #line default
            #line hidden
                return;

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

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

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #12
0
        private void AddMangaSearchTile(Manga m, ImageSource img)
        {
            MangaBox box = new MangaBox();
            box.MangaTitle = m.Title;
            box.DatabaseText = (m.DatabaseParent == null ? "Local" : m.DatabaseParent.Name);

            Grid grid = FragmentHelper.ExtractUI<Grid>(box);
            Tile tile = new Tile();
            tile.Width = 225;
            tile.Height = 180;
            tile.Content = grid;
            tile.Click += delegate
            {
                Reader read = new Reader(m);
                read.Show();
                this.Hide();
            };
            Tiles.Children.Add(tile);

            box.MangaCover = img;
        }
Example #13
0
        /// <summary>
        /// Advance: 初始化 Advance Query 第一層
        /// </summary>
        private void InitAdvanceCatalog()
        {
            lvwAdvanceClassify.ItemsSource = null;
            lvwAdvanceClassify.Items.Clear();

            dynamic fileCatalogs = GetOnlyFileCatalog();
            lvwAdvanceClassify.View = lvwAdvanceClassify.FindResource("TileView") as ViewBase;
            foreach (var catalog in fileCatalogs)
            {
                BitmapImage bitmap = new BitmapImage();
                bitmap.BeginInit();
                bitmap.CacheOption = BitmapCacheOption.OnLoad;
                bitmap.UriSource = new Uri(@"pack://application:,,,/WFTP;component/Icons/folder.ico");
                bitmap.EndInit();
                Image img = new Image();
                img.Width = 60;
                img.Height = 60;
                img.Source = bitmap;
                string title = Convert.ToString(catalog.NickName);
                Tile tile = new Tile();
                tile.FontFamily = new FontFamily("Microsoft JhengHei");
                tile.Width = 120;
                tile.Height = 120;
                tile.Margin = new Thickness(5);
                tile.Content = img;
                tile.Tag = catalog.Id;
                tile.ToolTip = title;
                tile.Title = title.Length > 12 ? String.Format("{0}…", title.Substring(0, 11)) : title;
                tile.Click += new RoutedEventHandler(tileAdvance_Click);
                tile.MouseDoubleClick += new MouseButtonEventHandler(tileAdvance_MouseDoubleClick);
                lvwAdvanceClassify.Items.Add(tile);
            }
        }
 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;
 }
Example #15
0
        void PopulateTiles()
        {
            Logo.Visibility = System.Windows.Visibility.Hidden;
            panelContainer.Children.Clear();

            CodeFiles.ForEach(f =>
            {
                Tile t = new Tile();
                t.Title = f.Name;
                t.Click += t_Click;
                t.Count = f.Type.ToString();
                t.CommandParameter = f.Name;
                t.Margin = new Thickness(10, 10, 10, 10);
                t.Padding = new Thickness(3);
                t.Width = 300d;
                t.TiltFactor = 2;
                t.Background = (SolidColorBrush)(new BrushConverter().ConvertFrom("#008299"));
                panelContainer.Children.Add(t);
            });
            txtMsg.Visibility = System.Windows.Visibility.Visible;
            lblStatus.Text = "Files generated successfully";
        }
Example #16
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            var context = new MyHWEntities();
            bool foundUser = false;
            foreach (Teacher currentTeacher in context.Teachers)
            {
                if (usernameBox.Text == currentTeacher.username && md5 (md5 (passwordBox.Password) + "8c4f4370c53e0c1e1ae9acd577dddbed") == currentTeacher.password)
                {
                    atmTeacher = currentTeacher;
                    foundUser = true;
                    break;
                }
            }
            if (!foundUser)
            {
                this.ShowMessageAsync ("Грешка", "Грешно потребителско име или парола!");
                return;
            }

            TabItem firstTab = tabControl.Items[0] as TabItem,
                            secondTab = tabControl.Items[1] as TabItem;
            secondTab.Header = "Групи";
            firstTab.Header = "";
            secondTab.IsSelected = true;
            firstTab.IsSelected = false;

            firstName.Content = atmTeacher.firstName;
            lastName.Content = atmTeacher.lastName;

                var currentGroup = context.Groups.Where (t => (t.teacherId == atmTeacher.id)).Select(t => t.name);

            int x=0, y=0, z = 0;

            foreach (var item in currentGroup)
            {
                Tile testasd = new Tile ();
                testasd.Background = new SolidColorBrush (Color.FromArgb (0xFF, 0x41, 0xB1, 0xE1));
                Tiles.Children.Add (testasd);
                Grid.SetColumn (testasd, x);
                Grid.SetRow (testasd, y);
                testasd.Content = item;
                x++;
                if (x != 0 && x % 3 == 0)
                { y++; x = 0; }
                z++;

            }

            //var currentGroup = context.TeachersGroups.Where (t => (t.teacherId == atmTeacher.id)).Select (t => t.groupId);
            /*
            Tile test = new Tile();
            test.Background = new SolidColorBrush (Color.FromArgb (0xFF, 0x41, 0xB1, 0xE1));
            Tiles.Children.Add (test);
            Tile test2 = new Tile ();
            test2.Background = new SolidColorBrush (Color.FromArgb (0xFF, 0x41, 0xB1, 0xE1));
            Tiles.Children.Add (test2);
            Tile test3 = new Tile ();
            test3.Background = new SolidColorBrush (Color.FromArgb (0xFF, 0x41, 0xB1, 0xE1));
            Tiles.Children.Add (test3);
            Tile test4 = new Tile ();
            test4.Background = new SolidColorBrush (Color.FromArgb (0xFF, 0x41, 0xB1, 0xE1));
            Tiles.Children.Add (test4);
            //test.Margin = new Thickness(10, 10, 383, 372);
            Grid.SetColumn (test, 0);
            Grid.SetRow (test, 0);
            Grid.SetColumn (test2, 1);
            Grid.SetRow (test2, 0);
            Grid.SetColumn (test3, 2);
            Grid.SetRow (test3, 0);
            Grid.SetColumn (test4, 0);
            Grid.SetRow (test4, 1);*/

            //test +=
            //test.Parent =
            /* < Controls:Tile Title = "Mail" Background = "#41B1E1" Margin = "10,10,383,372" >
                                  < Grid Width = "44"
                           Background = "{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:Tile}}}" >
                                 < Grid.OpacityMask >
                                     < VisualBrush Stretch = "Fill"
                                          Visual = "{DynamicResource appbar_people_multiple}" />
                                 </ Grid.OpacityMask >
                             </ Grid >
                         </ Controls:Tile >*/
        }
Example #17
0
        private void AllApps_OnClick(object sender, RoutedEventArgs e)
        {
            if (ProgramList.Visibility == Visibility.Hidden)
            {
                ProgramList.Visibility = Visibility.Visible;
                ProgramParent.Visibility = Visibility.Visible;
                var StartPrograms = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu) + "\\Programs";
                AllPrograms.Margin = new Thickness { Left = 5, Top = SystemParameters.FullPrimaryScreenHeight - 210 };
                //fill with the contents for start menu
                var info = new DirectoryInfo(StartPrograms);
                foreach (var file in info.GetFiles())
                {
                    var imgsrc = SmartThumnailProvider.GetThumbInt(file.FullName, 24, 24, ThumbOptions.BiggerOk);
                    var tile= new Tile
                    {
                        Margin = new Thickness {Left=10, Top = 1, Right = 10},
                        Width = 150,
                        Height = 30,
                    };

                    var panel = new StackPanel
                    {
                        Width = 150,
                        Orientation = Orientation.Horizontal,
                    };
                    var bord = new Border
                    {
                        Width = 25,
                        Height = 25,
                        Background = new SolidColorBrush(Color.FromRgb(0x56,0x56,0x56)),
                        HorizontalAlignment = HorizontalAlignment.Left,
                    };
                    var img = new Image
                    {
                        Width = 25,
                        Height = 25,
                        Source = imgsrc,
                        Stretch = Stretch.Fill,
                        HorizontalAlignment = HorizontalAlignment.Left,

                    };
                    var text =  new TextBlock
                    {
                        Text = file.Name,
                        TextTrimming = TextTrimming.CharacterEllipsis,
                        MaxWidth = 120,
                        FontSize = 14,
                        HorizontalAlignment = HorizontalAlignment.Left,
                        VerticalAlignment = VerticalAlignment.Center,
                        Margin = new Thickness { Left=4},
                    };
                    bord.Child = img;
                    panel.Children.Add(bord);
                    panel.Children.Add(text);
                    tile.Content = panel;
                    ProgramList.Children.Add(tile);

                }
                foreach (var folder in info.GetDirectories())
                {
                    var imgsrc = SmartThumnailProvider.GetThumbInt(folder.FullName, 24, 24, ThumbOptions.BiggerOk);
                    var tile = new Tile
                    {
                        Margin = new Thickness { Left = 10, Top = 1, Right = 10 },
                        Width = 150,
                        Height = 30,
                    };

                    var panel = new StackPanel
                    {
                        Width = 150,
                        Orientation = Orientation.Horizontal,
                    };
                    var bord = new Border
                    {
                        Width = 25,
                        Height = 25,
                        Background = new SolidColorBrush(Color.FromRgb(0x56, 0x56, 0x56)),
                        HorizontalAlignment = HorizontalAlignment.Left,
                    };
                    var img = new Image
                    {
                        Width = 25,
                        Height = 25,
                        Source = imgsrc,
                        Stretch = Stretch.Fill,
                        HorizontalAlignment = HorizontalAlignment.Left,

                    };
                    var text = new TextBlock
                    {
                        Text = folder.Name,
                        TextTrimming = TextTrimming.CharacterEllipsis,
                        MaxWidth = 120,
                        FontSize = 14,
                        HorizontalAlignment = HorizontalAlignment.Left,
                        VerticalAlignment = VerticalAlignment.Center,
                        Margin = new Thickness { Left = 4 },
                    };
                    bord.Child = img;
                    panel.Children.Add(bord);
                    panel.Children.Add(text);
                    tile.Content = panel;
                    ProgramList.Children.Add(tile);

                }

            }
            else
            {
                ProgramList.Visibility = Visibility.Hidden;
                ProgramParent.Visibility = Visibility.Hidden;
                AllPrograms.Margin = new Thickness{Left = 5};

            }
        }
 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;
 }
Example #19
0
        private Button createFileButton(Easyshare.Classes.File iFile)
        {
            int random = getrandom.Next(0, 5);
            List<string> colours = new List<string>();
            colours.Add("#D2691E");
            colours.Add("#da542e");
            colours.Add("#92009c");
            colours.Add("#029801");
            colours.Add("#2396A6");
            colours.Add("#593D91");
            // main image contain
            /*
            StackPanel dock = new StackPanel();
            dock.Orientation = Orientation.Vertical;
            dock.Height = 40;

            /// creating image
            Image img = new Image();
            img.Width = 32;
            img.Height = 32;
            img.Source = new BitmapImage(new Uri(@"../extra/folder-icon.png", UriKind.Relative));
            dock.Children.Add(img);
            */

            Tile x = new Tile();
            x.Title = iFile.name.ToString();
            //x.Content = dock;

            x.Tag = iFile.id;
            x.Background = new SolidColorBrush((Color)(ColorConverter.ConvertFromString(colours[random])));
            //x.Click += this.clickFile;

            x.Height = 100;
            x.Width = 140;
            x.TitleFontSize = 13;
            //x.FontSize = 9;
            //x.Margin = new Thickness(5);
            x.Padding = new Thickness(2);

            return x;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MetroOperateWindow = ((RFIDStorageUltimate.OperateWindow)(target));
     
     #line 7 "..\..\OperateWindow.xaml"
     this.MetroOperateWindow.Closing += new System.ComponentModel.CancelEventHandler(this.MetroOperateWindow_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.SetButton = ((System.Windows.Controls.Button)(target));
     
     #line 10 "..\..\OperateWindow.xaml"
     this.SetButton.Click += new System.Windows.RoutedEventHandler(this.SetButton_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.SetFlyout = ((MahApps.Metro.Controls.Flyout)(target));
     return;
     case 4:
     this.SerialComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 5:
     this.IntQComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 6:
     this.PowerComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 7:
     this.OperateComboBox = ((System.Windows.Controls.ComboBox)(target));
     
     #line 39 "..\..\OperateWindow.xaml"
     this.OperateComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.OperateComboBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 8:
     this.MainControl = ((MahApps.Metro.Controls.TransitioningContentControl)(target));
     return;
     case 9:
     this.MainPanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 10:
     this.TopPanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 11:
     this.MenuPanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 12:
     this.SwitchButton = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 55 "..\..\OperateWindow.xaml"
     this.SwitchButton.Click += new System.Windows.RoutedEventHandler(this.SwitchButton_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.SwitchDropShadowEffect = ((System.Windows.Media.Effects.DropShadowEffect)(target));
     return;
     case 14:
     this.ShowUserControl = ((MahApps.Metro.Controls.TransitioningContentControl)(target));
     return;
     case 15:
     this.ShowUserTextBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 16:
     this.ShowOperateControl = ((MahApps.Metro.Controls.TransitioningContentControl)(target));
     return;
     case 17:
     this.ShowOperateTextBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 18:
     this.ShowScanCountControl = ((MahApps.Metro.Controls.TransitioningContentControl)(target));
     return;
     case 19:
     this.ShowScanCountTextBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 20:
     this.ShowScanKnowCountControl = ((MahApps.Metro.Controls.TransitioningContentControl)(target));
     return;
     case 21:
     this.ShowScanKnowCountTextBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 22:
     this.ShowScanUnknowCountControl = ((MahApps.Metro.Controls.TransitioningContentControl)(target));
     return;
     case 23:
     this.ShowScanUnknowCountTextBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 24:
     this.ViewPanel = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 25:
     this.OperateDataGrid = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 26:
     this.IndicateStatusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
     return;
     case 27:
     this.StatusRing = ((MahApps.Metro.Controls.ProgressRing)(target));
     return;
     case 28:
     this.StatusTextBlock = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
Example #21
0
        private void AddMangaTile(Manga m)
        {
            MangaBox box = new MangaBox();
            box.MangaTitle = m.Title;
            box.DatabaseText = (m.DatabaseParent == null ? "Local" : m.DatabaseParent.Name);

            Grid grid = FragmentHelper.ExtractUI<Grid>(box);
            Tile tile = new Tile();
            tile.Width = 225;
            tile.Height = 180;
            tile.Content = grid;
            tile.Click += delegate
            {
                Reader read = new Reader(m);
                read.Show();
                this.Hide();
            };
            this.grid.Children.Add(tile);

            Request request = new Request();
            request.manga = m;
            request.box = box;
            this.request.Add(request);
        }
Example #22
0
 public MenuTileClickedEventArgs(Tile tileClicked, Tile previouslySelectedTile)
 {
     TileClicked            = tileClicked;
     PreviouslySelectedTile = previouslySelectedTile;
 }
Example #23
0
        /// <summary>
        /// Query:取得目錄內容
        /// </summary>
        /// <param name="level">目錄階層</param>
        private void GetCatalog(int level)
        {
            lvwClassify.ItemsSource = null;
            lvwClassify.Items.Clear();

            // display mode switch btn
            if (level == 6)
            {
                btnListView.Visibility = Visibility.Visible;
                btnTileView.Visibility = Visibility.Visible;
            }
            else
            {
                btnListView.Visibility = Visibility.Hidden;
                btnTileView.Visibility = Visibility.Hidden;
            }

            // 取得各階層資料
            dynamic classify = null;

            switch (level)
            {
                case 1:
                    classify = GetLv1Catalog();
                    break;
                case 2:
                    classify = GetLv2Catalog();
                    break;
                case 3:
                    classify = GetLv3Catalog();
                    break;
                case 4:
                    classify = GetLv4Catalog();
                    break;
                case 5:
                    classify = GetFileCatalog();
                    break;
                case 6:
                    classify = GetFileList();
                    break;
            }

            ApiHelper api = new ApiHelper();
            List<string> remoteFolderFullPathList = api.Dir(_ftpPath).ToList();
            Dictionary<string, string> remoteFileList = new Dictionary<string, string>();
            foreach (var item in remoteFolderFullPathList)
            {
                remoteFileList.Add(item.Substring(item.LastIndexOf('/') + 1), item);
            }

            System.Collections.ObjectModel.ObservableCollection<FileInfo> fileCollection =
                new System.Collections.ObjectModel.ObservableCollection<FileInfo>();

            foreach (var classifyItem in classify)
            {
                if (remoteFileList.ContainsKey(classifyItem.Name))
                {
                    Dictionary<string, string> dicInfo = new Dictionary<string, string>();
                    dicInfo.Add("Id", classifyItem.Id.ToString());
                    dicInfo.Add("Name", classifyItem.Name);
                    dicInfo.Add("NickName", classifyItem.NickName);

                    if (_isTileView || level < 6)
                    {
                        bool isImageFile = false;

                        lvwClassify.View = lvwClassify.FindResource("TileView") as ViewBase;

                        BitmapImage bitmap = new BitmapImage();
                        bitmap.BeginInit();
                        bitmap.CacheOption = BitmapCacheOption.OnLoad;
                        if (level < 6)
                        {
                            bitmap.UriSource = new Uri(@"pack://application:,,,/WFTP;component/Icons/folder.ico");
                        }
                        else
                        {
                            ExtensionHelper helper = new ExtensionHelper();

                            string iconPath = helper.GetIconPath(
                                System.IO.Path.GetExtension(classifyItem.NickName));

                            if (iconPath != "img.ico")
                            {
                                bitmap.UriSource = new Uri(iconPath);
                            }
                            else
                            {
                                isImageFile = true;
                                bitmap.UriSource = new Uri(String.Format(GlobalHelper.ApiThumb, remoteFileList[classifyItem.Name]));
                            }
                        }
                        bitmap.EndInit();

                        Image img = new Image();
                        if (!isImageFile)
                        {
                            img.Width = 60;
                            img.Height = 60;
                        }
                        else
                        {
                            img.Width = 120;
                            img.Height = 120;
                        }
                        img.Source = bitmap;

                        Tile tile = new Tile();
                        tile.FontFamily = new FontFamily("Microsoft JhengHei");
                        tile.Width = 120;
                        tile.Height = 120;
                        tile.Margin = new Thickness(5);
                        tile.Content = img;

                        if (level < 6)
                        {
                            if (level == 4)
                            {
                                tile.Count = classifyItem.Counts.ToString();
                            }
                            else
                            {
                                tile.Count = Convert.ToString(api.GetCount(_ftpPath + dicInfo["Name"]));
                            }
                        }
                        else
                        {
                            tile.Count = "";
                        }

                        tile.Tag = dicInfo;
                        ToolTip tip = new ToolTip();
                        tip.Content = dicInfo["NickName"];
                        tile.ToolTip = tip;
                        tile.Click += new RoutedEventHandler(tile_Click);
                        tile.MouseDoubleClick += new MouseButtonEventHandler(tile_MouseDoubleClick);

                        if (tile.Count == "0")
                        {
                            tile.Background = new SolidColorBrush(Color.FromRgb(255, 93, 93));
                        }
                        if (isImageFile)
                        {
                            tile.Background = new SolidColorBrush(Color.FromArgb(0, 0, 0, 0));
                        }
                        else
                        {
                            tile.Title = dicInfo["NickName"].Length > 12 ? String.Format("{0}…", dicInfo["NickName"].Substring(0, 11)) : dicInfo["NickName"];
                        }

                        lvwClassify.Items.Add(tile);
                    }
                    else
                    {
                        lvwClassify.View = lvwClassify.FindResource("ListView") as ViewBase;

                        fileCollection.Add(new FileInfo
                        {
                            FileName = classifyItem.Name,
                            FilePath = remoteFileList[classifyItem.Name],
                            FileId = classifyItem.Id
                        });
                    }
                }
            }
            if (!_isTileView && level == 6)
            {
                lvwClassify.ItemsSource = fileCollection;
            }
        }
 private void PopulateTiles()
 {
     int count = 0;
     Action<string, string> addTile = (name, command) =>
     {
         Tile t = new Tile();
         t.Title = name;
         t.Click += t_Click;
         t.Count = (++count).ToString();
         t.CommandParameter = command;
         t.Margin = new Thickness(10, 10, 10, 0);
         t.Padding = new Thickness(3);
         t.Width = 300d;
         t.Background = (SolidColorBrush)(new BrushConverter().ConvertFrom("#008299"));
         panelContainer.Children.Add(t);
     };
     panelContainer.Children.Clear();
     addTile("Route Script", "sql");
     addTile("XLSX Request", "xlsx");
     addTile("Mocha Test", "mocha");
 }
Example #25
0
        // Advance:執行把資料建置到Listview
        private void GenerateListviewItem(int page)
        {
            lvwAdvanceClassify.ItemsSource = null;
            lvwAdvanceClassify.Items.Clear();
            cmbPager.ItemsSource = null;
            _dataPager.Clear();

            dynamic files = GetAdvanceFileList();
            int totalRecordNum = Enumerable.Count(files);
            _advCurrentPage = page;

            if (totalRecordNum <= _advPageSize)
            {
                _advTotalPage = 1;
                cmbPager.Visibility = System.Windows.Visibility.Hidden;
            }
            else
            {
                _advTotalPage = totalRecordNum % _advPageSize == 0 ?
                             totalRecordNum / _advPageSize :
                             totalRecordNum / _advPageSize + 1;
                if (_advTotalPage == 0)
                    _advTotalPage = 1;

                for (int i = 1; i <= _advTotalPage; i++)
                {
                    _dataPager.Add(i);
                }
                cmbPager.Visibility = System.Windows.Visibility.Visible;
                cmbPager.SelectedItem = page ;
            }
            cmbPager.ItemsSource = _dataPager;
            int skipNum = (_advCurrentPage - 1) * _advPageSize;
            files = GetAdvanceFileList(skipNum, _advPageSize);

             // For list mode datasource
             System.Collections.ObjectModel.ObservableCollection<FileInfo> fileCollection =
                 new System.Collections.ObjectModel.ObservableCollection<FileInfo>();

            ApiHelper api = new ApiHelper();
            foreach (var file in files)
            {
                if (_isAdvanceTileView)
                {
                    bool isImageFile = false;
                    lvwAdvanceClassify.View = lvwAdvanceClassify.FindResource("TileView") as ViewBase;

                    // Using store procedure to get full path.
                    string path = DBHelper.GenerateFileFullPath(file.Id);
                    if (api.CheckPath(path))
                    {
                        BitmapImage bitmap = new BitmapImage();
                        bitmap.BeginInit();
                        bitmap.CacheOption = BitmapCacheOption.OnLoad;

                        ExtensionHelper helper = new ExtensionHelper();
                        string iconPath = helper.GetIconPath(
                            System.IO.Path.GetExtension(file.NickName));

                        if (iconPath != "img.ico")
                        {
                            bitmap.UriSource = new Uri(iconPath);
                        }
                        else
                        {
                            isImageFile = true;
                            bitmap.UriSource = new Uri(String.Format(GlobalHelper.ApiThumb, path));
                        }

                        bitmap.EndInit();
                        Image img = new Image();
                        if (!isImageFile)
                        {
                            img.Width = 60;
                            img.Height = 60;
                        }
                        else
                        {
                            img.Width = 120;
                            img.Height = 120;
                        }

                        img.Source = bitmap;
                        string title = Convert.ToString(file.NickName);
                        Tile tile = new Tile();
                        tile.FontFamily = new FontFamily("Microsoft JhengHei");
                        tile.Width = 120;
                        tile.Height = 120;
                        tile.Margin = new Thickness(5);
                        tile.Content = img;
                        tile.Tag = path; // Download Path
                        tile.ToolTip = file.NickName;
                        tile.Click += new RoutedEventHandler(tileAdvance_Click);
                        tile.MouseDoubleClick += new MouseButtonEventHandler(tileAdvance_MouseDoubleClick);
                        if (isImageFile)
                        {
                            tile.Background = new SolidColorBrush(Color.FromArgb(0, 0, 0, 0));
                        }
                        else
                        {
                            tile.Title = title.Length > 12 ? String.Format("{0}…", title.Substring(0, 11)) : title;
                        }
                        lvwAdvanceClassify.Items.Add(tile);
                    }
                }
                else
                {
                    lvwAdvanceClassify.View = lvwAdvanceClassify.FindResource("AdvanceListView") as ViewBase;
                     string path = DBHelper.GenerateFileFullPath(file.Id);
                     if (api.CheckPath(path))
                     {
                         fileCollection.Add(new FileInfo
                         {
                             FileName = file.Name,
                             FilePath = DBHelper.GenerateFileFullPath(file.Id),
                             FileId = file.Id
                         });
                     }
                }
            }
            // 修改Listview Datasource
            if (!_isAdvanceTileView)
            {
                lvwAdvanceClassify.ItemsSource = fileCollection;
            }
            if (lvwAdvanceClassify.Items.Count == 0)
            {
                lbMessage.Visibility = System.Windows.Visibility.Visible;
                lbMessage.Content = "搜尋完成,無資料紀錄";
            }
            else
            {
                lbMessage.Visibility = System.Windows.Visibility.Hidden;
                lbMessage.Content = "";
            }
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 8 "..\..\MainWindow.xaml"
     ((BPC_ProjetX_Launcher.MainWindow)(target)).Closed += new System.EventHandler(this.MetroWindow_Closed);
     
     #line default
     #line hidden
     return;
     case 2:
     this.MainWindow_Menu_Login = ((System.Windows.Controls.MenuItem)(target));
     
     #line 24 "..\..\MainWindow.xaml"
     this.MainWindow_Menu_Login.Click += new System.Windows.RoutedEventHandler(this.MainWindow_Menu_Login_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.MainWindow_Menu_Logout = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 4:
     this.MainWindow_Menu_Debug = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 5:
     this.MainWindow_Menu_Debug_LiveLog = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 6:
     this.MainWindow_Menu_Debug_LiveEvent = ((System.Windows.Controls.MenuItem)(target));
     return;
     case 7:
     this.MainWindow_Status_ServeurStatus = ((System.Windows.Controls.Label)(target));
     return;
     case 8:
     this.MainWindow_Status_ServeurStatus_Rct = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 9:
     this.MainWindow_Status_ServeurConnectionStatus = ((System.Windows.Controls.Label)(target));
     return;
     case 10:
     this.MainWindow_Status_ServeurConnectionStatus_Rct = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 11:
     this.MainWindow_Status_ServeurAuthentification = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.MainWindow_Status_ServeurAuthentification_Rct = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 13:
     this.MainWindow_Status_ModsCheck = ((System.Windows.Controls.Label)(target));
     return;
     case 14:
     this.MainWindow_Status_ModsCheck_Rct = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 15:
     this.MainWindow_Status_GameLinkConnection = ((System.Windows.Controls.Label)(target));
     return;
     case 16:
     this.MainWindow_Status_GameLinkConnection_Rct = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 17:
     this.MainWindow_Tile_LaunchProjetX = ((MahApps.Metro.Controls.Tile)(target));
     return;
     case 18:
     this.MainWindow_Tile_OpenSite = ((MahApps.Metro.Controls.Tile)(target));
     return;
     case 19:
     this.MainWindow_Tile_LaunchVanilla = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 57 "..\..\MainWindow.xaml"
     this.MainWindow_Tile_LaunchVanilla.Click += new System.Windows.RoutedEventHandler(this.MainWindow_Tile_LaunchVanilla_Click);
     
     #line default
     #line hidden
     return;
     case 20:
     this.MainWindow_Tile_ModCheck = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 58 "..\..\MainWindow.xaml"
     this.MainWindow_Tile_ModCheck.Click += new System.Windows.RoutedEventHandler(this.MainWindow_Tile_ModCheck_Click);
     
     #line default
     #line hidden
     return;
     case 21:
     this.MainWindow_Tile_Arma3Settings = ((MahApps.Metro.Controls.Tile)(target));
     
     #line 59 "..\..\MainWindow.xaml"
     this.MainWindow_Tile_Arma3Settings.Click += new System.Windows.RoutedEventHandler(this.MainWindow_Tile_Arma3Settings_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Example #27
0
        private void GrabArtists()
        {
            var isGray = false;
              WrapPanel.Children.Clear();
              var artists = Itemsource.SongLibrary.GroupBy(x => x.Artist).Select(x => x.First()).ToList();

              foreach (var song in artists)
              {
            var newTile = new Tile
            {
              Width = 600,
              Height = 50,
              Margin = new Thickness(5),
              FontSize = 14,
              Title = song.Artist,
              Foreground = Brushes.Transparent
            };

            //newTile.Foreground = (Brush)FindResource("AccentColorBrush");
            newTile.Click += Artist_OnClick;

            newTile.Foreground = Brushes.White;
            if (!isGray)
            {
              newTile.Background = (Brush) FindResource("AccentColorBrush2");
              isGray = true;
            }
            else
            {
              newTile.Background = (Brush) FindResource("AccentColorBrush3");
              isGray = false;
            }
            WrapPanel.Children.Add(newTile);
              }
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\..\UI\PasswordChange.xaml"
                ((ProdigyConfigToolWPF.PasswordChange)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MetroWindow_Loaded);

            #line default
            #line hidden

            #line 13 "..\..\..\UI\PasswordChange.xaml"
                ((ProdigyConfigToolWPF.PasswordChange)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MetroWindow_Closing);

            #line default
            #line hidden
                return;

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

            #line 25 "..\..\..\UI\PasswordChange.xaml"
                this.TitleBarHelpButton.Click += new System.Windows.RoutedEventHandler(this.TitleBarHelpButton_Click);

            #line default
            #line hidden
                return;

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

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

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

            case 6:
                this.UserLoginValue = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 7:
                this.UserPassword = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            case 9:
                this.UserNewPassword = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 10:
                this.UserNewPasswordValue = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 11:
                this.UserRepeatNewPassword = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 12:
                this.UserRepeatNewPasswordValue = ((System.Windows.Controls.PasswordBox)(target));

            #line 91 "..\..\..\UI\PasswordChange.xaml"
                this.UserRepeatNewPasswordValue.KeyDown += new System.Windows.Input.KeyEventHandler(this.UserRepeatNewPasswordValue_KeyDown);

            #line default
            #line hidden
                return;

            case 13:
                this.Buttons = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            #line 97 "..\..\..\UI\PasswordChange.xaml"
                this.LoginOK_Tile.Click += new System.Windows.RoutedEventHandler(this.ButtonChange_Click);

            #line default
            #line hidden
                return;

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

            #line 101 "..\..\..\UI\PasswordChange.xaml"
                this.LoginCancel_Tile.Click += new System.Windows.RoutedEventHandler(this.ButtonCancel_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.HelpFlyout = ((MahApps.Metro.Controls.Flyout)(target));
                return;
            }
            this._contentLoaded = true;
        }