Esempio n. 1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.vmMainWindow = ((CIMS.ViewModel.MainWindowViewModel)(target));
                return;

            case 2:
                this.mainTab = ((MahApps.Metro.Controls.MetroAnimatedTabControl)(target));
                return;

            case 3:
                this.logIn = ((MahApps.Metro.Controls.MetroTabItem)(target));
                return;

            case 4:
                this.ucLogIn = ((CIMS.View.LogInView)(target));
                return;

            case 5:
                this.home = ((MahApps.Metro.Controls.MetroTabItem)(target));
                return;

            case 6:
                this.ucHome = ((CIMS.View.HomeView)(target));
                return;

            case 7:
                this.user = ((MahApps.Metro.Controls.MetroTabItem)(target));
                return;

            case 8:
                this.ucUser = ((CIMS.View.UserView)(target));
                return;

            case 9:
                this.employee = ((MahApps.Metro.Controls.MetroTabItem)(target));
                return;

            case 10:
                this.ucEmployee = ((CIMS.View.EmployeeView)(target));
                return;

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

            case 12:
                this.ucSupplier = ((CIMS.View.SupplierView)(target));
                return;

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

            case 14:
                this.ucUnit = ((CIMS.View.UnitView)(target));
                return;

            case 15:
                this.product = ((MahApps.Metro.Controls.MetroTabItem)(target));
                return;

            case 16:
                this.bom = ((MahApps.Metro.Controls.MetroTabItem)(target));
                return;

            case 17:
                this.transaction = ((MahApps.Metro.Controls.MetroTabItem)(target));
                return;

            case 18:
                this.report = ((MahApps.Metro.Controls.MetroTabItem)(target));
                return;

            case 19:
                this.database = ((MahApps.Metro.Controls.MetroTabItem)(target));
                return;

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

            case 21:
                this.homeButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 71 "..\..\..\View\MainWindow.xaml"
                this.homeButton.Click += new System.Windows.RoutedEventHandler(this.HomeButton_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.profileButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.vmMainWindow = ((CIMS.ViewModel.MainWindowViewModel)(target));
                return;

            case 2:
                this.title = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 3:
                this.content = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 4:
                this.employeeGrid = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 5:
                this.buttons = ((System.Windows.Controls.WrapPanel)(target));
                return;

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

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

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

            case 9:
                this.employeeTable = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 10:
                this.employeeCRUD = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 11:
                this.employeeName = ((System.Windows.Controls.WrapPanel)(target));
                return;

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

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

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

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

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

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

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

            case 19:
                this.clearButton = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }