private async Task StartMonitoring()
{
try
- {
- if (Settings.Accounts == null)
- {
- Settings.Accounts=new AccountsCollection();
- Settings.Save();
- return;
- }
-
+ {
foreach (var account in Settings.Accounts)
{
await MonitorAccount(account);
public void GoToSite(AccountInfo account)
{
- var site = String.Format("{0}/ui/?token={1}&user={2}",
+ /*var site = String.Format("{0}/ui/?token={1}&user={2}",
account.SiteUri,account.Token,
- account.UserName);
- Process.Start(site);
+ account.UserName);*/
+ Process.Start(account.SiteUri);
}
public void ShowFileProperties()
CloudClient.UsePithos = true;
CloudClient.AuthenticationUrl = this.AuthenticationUrl;
- _accountInfo = CloudClient.Authenticate();
+ _accountInfo = CloudClient.Authenticate();
+ _accountInfo.SiteUri = AuthenticationUrl;
_accountInfo.AccountPath = RootPath;