Esempio n. 1
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainGrid = (Grid)target;
                return;

            case 2:
                this.contentGrid = (Grid)target;
                return;

            case 3:
                this.deviceChooserPanel                 = (Popup)target;
                this.deviceChooserPanel.Opened         += new EventHandler(this.deviceChooserPanel_Opened);
                this.deviceChooserPanel.PreviewKeyDown += new KeyEventHandler(this.deviceChooserPanel_PreviewKeyDown);
                return;

            case 4:
                this.chooser = (DeviceChooser)target;
                return;

            case 5:
                this.settingsAndHelp = (StackPanel)target;
                return;

            case 6:
                this.updateSettings = (Button)target;
                return;

            case 7:
                this.help = (Button)target;
                return;

            case 8:
                this.deviceStatus = (StackPanel)target;
                return;

            case 9:
                this.phoneImage = (Image)target;
                return;

            case 10:
                this.phoneName = (TextBlock)target;
                return;

            case 11:
                this.deviceChooserButton = (Button)target;
                return;

            case 12:
                this.phoneModel = (TextBlock)target;
                return;

            case 13:
                this.batteryVoltage = (TextBlock)target;
                return;

            case 14:
                this.mainTabs = (StackPanel)target;
                return;

            case 15:
                this.PCTab        = (Button)target;
                this.PCTab.Click += new RoutedEventHandler(this.mainTab_Click);
                return;

            case 0x10:
                this.PhoneTab        = (Button)target;
                this.PhoneTab.Click += new RoutedEventHandler(this.mainTab_Click);
                return;

            case 0x11:
                this.WebTab        = (Button)target;
                this.WebTab.Click += new RoutedEventHandler(this.mainTab_Click);
                return;

            case 0x12:
                this.contentHeader = (Grid)target;
                return;

            case 0x13:
                this.MusicPanel = (Button)target;
                return;

            case 20:
                this.PhotosVideosPanel = (Button)target;
                return;

            case 0x15:
                this.MoviesTVPanel = (Button)target;
                return;

            case 0x16:
                this.PodcastsPanel = (Button)target;
                return;

            case 0x17:
                this.RingtonesPanel = (Button)target;
                return;

            case 0x18:
                this.searchText = (TextBox)target;
                return;

            case 0x19:
                this.footerPanel = (Grid)target;
                return;

            case 0x1a:
                this.storageGauge = (StorageGaugePanel)target;
                return;

            case 0x1b:
                this.syncProgress = (SyncProgressPanel)target;
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
                case 1:
                    this.mainGrid = (Grid) target;
                    return;

                case 2:
                    this.contentGrid = (Grid) target;
                    return;

                case 3:
                    this.deviceChooserPanel = (Popup) target;
                    this.deviceChooserPanel.Opened += new EventHandler(this.deviceChooserPanel_Opened);
                    this.deviceChooserPanel.PreviewKeyDown += new KeyEventHandler(this.deviceChooserPanel_PreviewKeyDown);
                    return;

                case 4:
                    this.chooser = (DeviceChooser) target;
                    return;

                case 5:
                    this.settingsAndHelp = (StackPanel) target;
                    return;

                case 6:
                    this.updateSettings = (Button) target;
                    return;

                case 7:
                    this.help = (Button) target;
                    return;

                case 8:
                    this.deviceStatus = (StackPanel) target;
                    return;

                case 9:
                    this.phoneImage = (Image) target;
                    return;

                case 10:
                    this.phoneName = (TextBlock) target;
                    return;

                case 11:
                    this.deviceChooserButton = (Button) target;
                    return;

                case 12:
                    this.phoneModel = (TextBlock) target;
                    return;

                case 13:
                    this.batteryVoltage = (TextBlock) target;
                    return;

                case 14:
                    this.mainTabs = (StackPanel) target;
                    return;

                case 15:
                    this.PCTab = (Button) target;
                    this.PCTab.Click += new RoutedEventHandler(this.mainTab_Click);
                    return;

                case 0x10:
                    this.PhoneTab = (Button) target;
                    this.PhoneTab.Click += new RoutedEventHandler(this.mainTab_Click);
                    return;

                case 0x11:
                    this.WebTab = (Button) target;
                    this.WebTab.Click += new RoutedEventHandler(this.mainTab_Click);
                    return;

                case 0x12:
                    this.contentHeader = (Grid) target;
                    return;

                case 0x13:
                    this.MusicPanel = (Button) target;
                    return;

                case 20:
                    this.PhotosVideosPanel = (Button) target;
                    return;

                case 0x15:
                    this.MoviesTVPanel = (Button) target;
                    return;

                case 0x16:
                    this.PodcastsPanel = (Button) target;
                    return;

                case 0x17:
                    this.RingtonesPanel = (Button) target;
                    return;

                case 0x18:
                    this.searchText = (TextBox) target;
                    return;

                case 0x19:
                    this.footerPanel = (Grid) target;
                    return;

                case 0x1a:
                    this.storageGauge = (StorageGaugePanel) target;
                    return;

                case 0x1b:
                    this.syncProgress = (SyncProgressPanel) target;
                    return;
            }
            this._contentLoaded = true;
        }