Exemplo n.º 1
0
 protected void lkb_stop_pool_Click(object sender, EventArgs e)
 {
     lkb_stop_pool.Enabled   = false;
     lkb_start_pool.Enabled  = true;
     t_refresh.Interval      = 99999999;
     lkb_stop_pool.CssClass  = "btn btn-default btn-lg";
     lkb_start_pool.CssClass = "btn btn-primary btn-lg";
     if (RunningCathe.PoolRunning)
     {
         //RunningCathe.oneKeyStop();
         RunningCathe.stopAllPool();
         RunningCathe.PoolRunning = false;
     }
 }
Exemplo n.º 2
0
 protected void lkb_stop_source_Click(object sender, EventArgs e)
 {
     t_refresh.Enabled         = false;
     lkb_start_source.Enabled  = true;
     lkb_stop_source.Enabled   = false;
     t_refresh.Interval        = 99999999;
     lkb_start_source.CssClass = "btn btn-primary btn-lg";
     lkb_stop_source.CssClass  = "btn btn-default btn-lg";
     if (RunningCathe.SourceRunning)
     {
         RunningCathe.stopRefreshAllSource();
         RunningCathe.SourceRunning = false;
     }
 }
Exemplo n.º 3
0
 protected void lkb_start_pool_Click(object sender, EventArgs e)
 {
     t_refresh.Enabled       = true;
     lkb_stop_pool.Enabled   = true;
     lkb_start_pool.Enabled  = false;
     t_refresh.Interval      = refreshTimeSpan;
     lkb_start_pool.CssClass = "btn btn-default btn-lg";
     lkb_stop_pool.CssClass  = "btn btn-primary btn-lg";
     if (!RunningCathe.PoolRunning)
     {
         //RunningCathe.oneKeyStart(true);
         //RunningCathe.initialConfigurations();
         RunningCathe.startAllPool();
         RunningCathe.PoolRunning = true;
     }
 }