Exemple #1
0
 private void ShowProgressBar(bool show)
 {
     if (show)
     {
         ProcessCount          += 1;
         ProgressBar.Visibility = ViewStates.Visible;
         CSIBaseObject.DisableEnableControls(false, Layout);
     }
     else
     {
         ProcessCount -= ProcessCount == 0 ? 0 : 1;
         if (ProcessCount == 0)
         {
             ProgressBar.Visibility = ViewStates.Invisible;
             CSIBaseObject.DisableEnableControls(true, Layout);
         }
     }
     CloseImage.Visibility = HasTitle ? ViewStates.Gone : ViewStates.Visible;
 }
 private void ShowProgressBar(bool show)
 {
     if (show)
     {
         ProcessCount          += 1;
         ProgressBar.Visibility = ViewStates.Visible;
         CSIBaseObject.DisableEnableControls(false, Layout);
     }
     else
     {
         ProcessCount -= ProcessCount == 0 ? 0 : 1;
         if (ProcessCount == 0)
         {
             ProgressBar.Visibility = ViewStates.Invisible;
             CSIBaseObject.DisableEnableControls(true, Layout);
         }
     }
     CloseImage.Visibility = HasTitle ? ViewStates.Gone : ViewStates.Visible;
     UserEdit.Enabled      = SaveUserSwitch.Enabled && SaveUserSwitch.Checked;
     PasswordEdit.Enabled  = SavePasswordSwitch.Enabled && SavePasswordSwitch.Checked;
 }