Пример #1
0
        private void OnBtnImportClicked(object sender, EventArgs e)
        {
            if (import != null && import.IsBusy)
            {
                import.CancelAsync();
                btnImport.Sensitive = false;
            }
            else
            {
                progress.Fraction = .0;
                progress.Text     = string.Empty;

                import.RunAsync();
                btnImport.Label      = LBL_ABORT;
                btnClose.Sensitive   = false;
                fcDatabase.Sensitive = false;
            }
        }