public virtual void Auth(AuthorizingEventArgs authArgs)
		{
			authArgs.Authorized = SiteCredentialsManager.Instance.Settings.HasCredentials &&
				(authArgs.LightCheck ||
					FileStorageManager.Instance.UseLocalMode ||
					IsAuthorized(
						authArgs.AuthServer,
						SiteCredentialsManager.Instance.Settings.Login,
						SiteCredentialsManager.Instance.Settings.GetPassword()));
		}
		public override void Auth(AuthorizingEventArgs authArgs)
		{
			base.Auth(authArgs);
			if (authArgs.Authorized) return;
			if (SiteCredentialsManager.Instance.SettingsFile.ExistsLocal())
				File.Delete(SiteCredentialsManager.Instance.SettingsFile.LocalPath);
			FormStart.CloseProgress();
			using (var authForm = new FormLogin())
			{
				authForm.SetSiteUrl(authArgs.AuthServer);
				authForm.Logining += (o, e) =>
				{
					e.Accepted = IsAuthorized(authArgs.AuthServer, e.Login, e.Password);
					if (e.Accepted)
					{
						SiteCredentialsManager.Instance.Settings.Login = e.Login;
						SiteCredentialsManager.Instance.Settings.SetPassword(e.Password);
						SiteCredentialsManager.Instance.Settings.Save();
					}
				};
				authArgs.Authorized = authForm.ShowDialog() == DialogResult.OK;
			}
			FormStart.ShowProgress();
		}
		private void Authorize()
		{
			if (Authorizing == null) return;
			var args = new AuthorizingEventArgs(_authServer);
			Authorizing(this, args);
			Activated = args.Authorized;
		}