Exemple #1
0
 void IComponentConnector.Connect(int connectionId, object target)
 {
     if (connectionId == 1)
     {
         this.ShowRegistrationScreen = (FlatButton)target;
         return;
     }
     if (connectionId != 2)
     {
         this._contentLoaded = true;
         return;
     }
     this.ResetPassword = (VisualCaptionButton)target;
 }
 void IComponentConnector.Connect(int connectionId, object target)
 {
     if (connectionId == 1)
     {
         this.ConnectToBestP2PServer = (FlatButton)target;
         return;
     }
     if (connectionId != 2)
     {
         this._contentLoaded = true;
         return;
     }
     this.OpenServerList = (VisualCaptionButton)target;
 }
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Close = (FlatCloseButton)target;
                return;

            case 2:
                this.TurnOn = (FlatButton)target;
                return;

            case 3:
                this.OpenArticle = (VisualCaptionButton)target;
                return;

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