Inheritance: System.Windows.Window, IComponentConnector
コード例 #1
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.wndEditor = (wndThemeEditor)target;
                return;

            case 2:
                this.cbEditorType = (ComboBox)target;
                this.cbEditorType.SelectionChanged += new SelectionChangedEventHandler(this.cbEditorType_SelectionChanged);
                return;

            case 3:
                this.lvGames = (ListView)target;
                return;

            case 4:
                this.gvcSerial = (GridViewColumn)target;
                return;

            case 5:
                this.spEditor = (StackPanel)target;
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
                case 1:
                    this.wndEditor = (wndThemeEditor) target;
                    return;

                case 2:
                    this.cbEditorType = (ComboBox) target;
                    this.cbEditorType.SelectionChanged += new SelectionChangedEventHandler(this.cbEditorType_SelectionChanged);
                    return;

                case 3:
                    this.lvGames = (ListView) target;
                    return;

                case 4:
                    this.gvcSerial = (GridViewColumn) target;
                    return;

                case 5:
                    this.spEditor = (StackPanel) target;
                    return;
            }
            this._contentLoaded = true;
        }