コード例 #1
0
        private async void Blogger_PostProgressEvent(object sender, ProgressChangedEventArgs e)
        {
            Message = string.Format("Post : {0} / {1}", e.ProgressPercentage, UploadResults.Count);

            if (e.ProgressPercentage == UploadResults.Count)
            {
                await MahDialog.ShowMessage("", "Blogger posting finished!", MessageDialogStyle.Affirmative);
            }
        }
コード例 #2
0
        public async void StartLogin()
        {
            LoginFlag flag = 0;

            flag |= LoginFlag.Blogger;
            if (ImgChili.Enabled)
            {
                flag |= LoginFlag.ImgChili;
            }
            if (ImgRock.Enabled)
            {
                flag |= LoginFlag.ImgRock;
            }
            if (PixSense.Enabled)
            {
                flag |= LoginFlag.PixSense;
            }
            if (GetMega)
            {
                flag |= LoginFlag.MEGA;
            }
            if (GetRapidgator)
            {
                flag |= LoginFlag.Rapidgator;
            }
            if (GetUploadGIG)
            {
                flag |= LoginFlag.UploadGIG;
            }
            if (Zippyshare.Enabled)
            {
                flag |= LoginFlag.Zippyshare;
            }

            if (await Login(flag))
            {
                await MahDialog.ShowMessage("Login", "Login Success!", MessageDialogStyle.Affirmative);
            }
            else
            {
                await MahDialog.ShowMessage("Login", "Login Failed!", MessageDialogStyle.Affirmative);
            }
        }