本文整理匯總了C#中XenAdmin.Dialogs.ActionProgressDialog.Show方法的典型用法代碼示例。如果您正苦於以下問題:C# ActionProgressDialog.Show方法的具體用法?C# ActionProgressDialog.Show怎麽用?C# ActionProgressDialog.Show使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類XenAdmin.Dialogs.ActionProgressDialog
的用法示例。
在下文中一共展示了ActionProgressDialog.Show方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: PageLeave
public override void PageLeave(PageLoadedDirection direction, ref bool cancel)
{
if (direction == PageLoadedDirection.Forward && IsDirty)
{
cancel = true;
IsDirty = false;
SetButtonNextEnabled(false);
m_buttonPreviousEnabled = false;
OnPageUpdated();
ImportXvaAction = new ImportVmAction(m_targetHost == null ? m_targetConnection : m_targetHost.Connection,
m_targetHost,
FilePath,
SR);
ImportXvaAction.Completed += m_importXvaAction_Completed;
m_actionDialog = new ActionProgressDialog(ImportXvaAction, ProgressBarStyle.Blocks) {ShowCancel = true};
// Now we want to start a scanning thread to search for the task ref on the vms
ThreadPool.QueueUserWorkItem(ScanTask, null);
m_alreadyFoundVM = false;
m_actionDialog.Show(this);
}
base.PageLeave(direction, ref cancel);
}