Beispiel #1
0
 private void BtnAdv_Click(object sender, EventArgs e)
 {
     BtnAdv.Enabled    = false;
     LblStatus.Visible = true;
     try
     {
         if (!BckGrdWorkerWebRepo.IsBusy)
         {
             if (BtnAdv.Text == "See advanced")
             {
                 BckGrdWorkerWebRepo.RunWorkerAsync(true);
                 BtnAdv.Text = "See public";
             }
             else
             {
                 BckGrdWorkerWebRepo.RunWorkerAsync();
                 BtnAdv.Text = "See advanced";
             }
         }
     }
     catch (Exception Ex)
     {
         if (!VarGlobal.LessVerbose)
         {
             Console.WriteLine("{0}{1}{2}", Ex.Message, Environment.NewLine, Ex.StackTrace);
         }
     }
 }
Beispiel #2
0
 public RepoManager()
 {
     InitializeComponent();
     if (BckGrdWorkerWebRepo.IsBusy == false)
     {
         BckGrdWorkerWebRepo.RunWorkerAsync();
     }
 }