Пример #1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     foreach (DataGridViewRow row in dataGridView1.Rows)
     {
         if (row.Cells[0].Value != null)
         {
             string url      = row.Cells[0].Value.ToString();
             var    received = Posts.getContent(url);
             if (received.upvoteCount != (int)row.Cells[1].Value) // If there is a change, show notify to us
             {
                 notify.url     = url;
                 notify.upCount = received.upvoteCount;
                 notify.sbd     = received.totalSbd;
                 notify n = new notify(); n.Show();
                 row.Cells[1].Value = received.upvoteCount;
             }
         }
     }
 }
Пример #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     notify n = new notify(); n.Show();
 }