Exemplo n.º 1
0
        private void uiShowStatusesButton_Click(object sender, EventArgs e)
        {
            var statuses = DbStatusWorker.GetStatuses();

            foreach (var text in statuses)
            {
                uiOutTextBox.Text += text + Environment.NewLine;
            }
        }
Exemplo n.º 2
0
 private void GetStatuses()
 {
     _totalRequest++;
     try
     {
         var frs = VkWorker.GetFriends();
         DbStatusWorker.SaveStatuses(frs);
         _successRequest++;
     }
     catch (Exception ex)
     {
         _failRequest++;
         uiOutTextBox.Text += ex.Message + Environment.NewLine;
     }
     Text = "total:" + _totalRequest + " success:" + _successRequest + " fail:" + _failRequest;
 }