MahApps.Metro.Controls.Dialogs.ProgressDialogController.ProgressDialogController C# (CSharp) 메소드

ProgressDialogController() 개인적인 메소드

private ProgressDialogController ( ProgressDialog dialog, Func closeCallBack ) : System
dialog ProgressDialog
closeCallBack Func
리턴 System
        internal ProgressDialogController(ProgressDialog dialog, Func<Task> closeCallBack)
        {
            this.WrappedDialog = dialog;
            this.CloseCallback = closeCallBack;

            this.IsOpen = dialog.IsVisible;

            this.WrappedDialog.Invoke(() => { this.WrappedDialog.PART_NegativeButton.Click += this.PART_NegativeButton_Click; });

            dialog.CancellationToken.Register(() => { this.PART_NegativeButton_Click(null, new RoutedEventArgs()); });
        }