Exemple #1
0
        protected override bool Validate(string username, string password)
        {
            if (MicroblogClient.CredentialsValid(username, password))
            {
                Microblog.Connect(username, password);
                return(true);
            }

            return(false);
        }
Exemple #2
0
        public static void Connect(string username, string password)
        {
            if (string.IsNullOrEmpty(username) || string.IsNullOrEmpty(password))
            {
                Log.Error(MissingCredentialsMsg);
                return;
            }

            client = new MicroblogClient(username, password, prefs.ActiveService);
            client.StatusUpdated   += OnStatusUpdated;
            client.MessageFound    += DirectMessageFound;
            client.TimelineUpdated += OnTimelineUpdated;
        }