Exemple #1
0
 void IComponentConnector.Connect(int connectionId, object target)
 {
     if (connectionId == 1)
     {
         this.ElementPickerControl = (ElementPicker)target;
     }
     else
     {
         this._contentLoaded = true;
     }
 }
Exemple #2
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ElementBindingPickerEditorControl = (ElementBindingPickerEditor)target;
                break;

            case 2:
                this.ElementPicker = (ElementPicker)target;
                break;

            case 3:
                ((ButtonBase)target).Click += new RoutedEventHandler(this.InvokeDataBindDialog);
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }