상속: PowerArgs.Cli.ConsolePanel
예제 #1
0
파일: Page.cs 프로젝트: kentcb/PowerArgs
        public void ShowProgressOperationsDialog()
        {
            if (PageStack.CurrentPage != this)
            {
                throw new InvalidOperationException("Not the current page");
            }

            if (progressOperationManagerDialog != null && Application.LayoutRoot.Controls.Contains(progressOperationManagerDialog))
            {
                return;
            }

            var progressOperationManagerControl = new ProgressOperationManagerControl(this.ProgressOperationManager);

            progressOperationManagerDialog = new Dialog(progressOperationManagerControl)
            {
                MaxHeight = 40
            };
            progressOperationManagerDialog.AllowEscapeToCancel = true;

            Application.LayoutRoot.Add(progressOperationManagerDialog);
        }
예제 #2
0
        public void ShowProgressOperationsDialog()
        {
            if (PageStack.CurrentPage != this)
            {
                throw new InvalidOperationException("Not the current page");
            }

            if (progressOperationManagerDialog != null && Application.LayoutRoot.Controls.Contains(progressOperationManagerDialog))
            {
                return;
            }

            var progressOperationManagerControl = new ProgressOperationManagerControl(this.ProgressOperationManager);
            progressOperationManagerDialog = new Dialog(progressOperationManagerControl) { MaxHeight = 40 };
            progressOperationManagerDialog.AllowEscapeToCancel = true;

            Application.LayoutRoot.Add(progressOperationManagerDialog);
        }