private void ButtonNewAccount_Click(object sender, RoutedEventArgs e)
 {
     var req = ctx.Kbtter.GetRequest();
     var naw = new NewAccountWindow(req.RequestUri);
     req.PinCode = naw.GetPIN();
     var atk = ctx.Kbtter.GetAccessToken(req);
     if (atk == null) return;
     tokens.Add(atk);
     File.WriteAllText("accounts.json", JsonConvert.SerializeObject(tokens.ToArray()));
     ListBoxAccounts.Items.Add(String.Format("@{0}({1})", atk.ScreenName, atk.UserId));
 }
        private void ButtonNewAccount_Click(object sender, RoutedEventArgs e)
        {
            var req = ctx.Kbtter.GetRequest();
            var naw = new NewAccountWindow(req.RequestUri);

            req.PinCode = naw.GetPIN();
            var atk = ctx.Kbtter.GetAccessToken(req);

            if (atk == null)
            {
                return;
            }
            tokens.Add(atk);
            File.WriteAllText("accounts.json", JsonConvert.SerializeObject(tokens.ToArray()));
            ListBoxAccounts.Items.Add(String.Format("@{0}({1})", atk.ScreenName, atk.UserId));
        }