public static UserPassBox SendSpaceRegister() { UserPassBox upb = new UserPassBox("SendSpace Registration...", "John Doe", "*****@*****.**", "JohnDoe", ""); upb.ShowDialog(); if (upb.DialogResult == DialogResult.OK) { SendSpace sendSpace = new SendSpace(); upb.Success = sendSpace.AuthRegister(upb.UserName, upb.FullName, upb.Email, upb.Password); if (!upb.Success && sendSpace.Errors.Count > 0) { MessageBox.Show(sendSpace.ToErrorString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } return(upb); }
public static string GetTinyPicShuk() { UserPassBox ub = new UserPassBox("Enter TinyPic Email Address and Password", string.IsNullOrEmpty(Engine.conf.TinyPicUserName) ? "*****@*****.**" : Engine.conf.TinyPicUserName, Engine.conf.TinyPicPassword) { Icon = Resources.zss_main }; ub.ShowDialog(); if (ub.DialogResult == DialogResult.OK) { TinyPicUploader tpu = new TinyPicUploader(Engine.TINYPIC_ID, Engine.TINYPIC_KEY); if (Engine.conf.RememberTinyPicUserPass) { Engine.conf.TinyPicUserName = ub.UserName; Engine.conf.TinyPicPassword = ub.Password; } return(tpu.UserAuth(ub.UserName, ub.Password)); } return(null); }