public virtual IProgressDialog Progress(ProgressConfig config) {
            var dlg = this.CreateDialogInstance();
            dlg.Title = config.Title;
            dlg.IsDeterministic = config.IsDeterministic;

            if (config.OnCancel != null) 
                dlg.SetCancel(config.OnCancel, config.CancelText);
            
            if (config.AutoShow) 
                dlg.Show();
            
            return dlg;
        }
Пример #2
0
        public virtual IProgressDialog Progress(ProgressConfig config)
        {
            var dlg = this.CreateDialogInstance();

            dlg.Title           = config.Title;
            dlg.IsDeterministic = config.IsDeterministic;

            if (config.OnCancel != null)
            {
                dlg.SetCancel(config.OnCancel, config.CancelText);
            }

            if (config.AutoShow)
            {
                dlg.Show();
            }

            return(dlg);
        }