예제 #1
0
파일: Form1.cs 프로젝트: Gerz-inc/mminer
 private void refresh_workers_display()
 {
     foreach (Control c in panel1.Controls)
     {
         if (c is work_item)
         {
             work_item item = c as work_item;
             item.refresh();
         }
     }
 }
예제 #2
0
파일: Form1.cs 프로젝트: Gerz-inc/mminer
 private void timer4_Tick(object sender, EventArgs e)
 {
     if (is_running.Value && is_miner_running.Value) //times
     {
         db.update_or_insert("insert into times (id_pool, dat) values (" + current_id_running + ", '" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "'); ");
         foreach (Control c in panel1.Controls)
         {
             if (c is work_item)
             {
                 work_item item = c as work_item;
                 if (item.get_id() == current_id_running)
                 {
                     item.refresh();
                 }
             }
         }
     }
 }