Beispiel #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CardEdit = ((Card_Editor.MainWindow)(target));
                return;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            case 16:
                this.loadCard = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CardEdit = ((Card_Editor.MainWindow)(target));
                return;

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

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

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

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

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

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

            #line 44 "..\..\..\View\MainWindow.xaml"
                this.artworkSelect.Click += new System.Windows.RoutedEventHandler(this.artworkSelect_Click);

            #line default
            #line hidden
                return;

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

            #line 45 "..\..\..\View\MainWindow.xaml"
                this.saveCard.Click += new System.Windows.RoutedEventHandler(this.saveCard_Click);

            #line default
            #line hidden
                return;

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

            #line 46 "..\..\..\View\MainWindow.xaml"
                this.loadCard.Click += new System.Windows.RoutedEventHandler(this.loadCard_Click);

            #line default
            #line hidden
                return;

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

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

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

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

            case 14:
                this.image = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }