예제 #1
0
        /// <summary>
        /// Shows the dialog with specify config of dialog.
        /// </summary>
        /// <param name="configure">A delegate to configure how to show dialog.</param>
        public void Show(Action <DialogOption> configure)
        {
            var options = new DialogOption();

            configure(options);

            Modal          = new DialogModel(options);
            Modal.OnClose += Close;
            OnDialogUpdated?.Invoke();
        }
예제 #2
0
 /// <summary>
 /// Closes this instance.
 /// </summary>
 void Close()
 {
     Dispose();
     OnDialogUpdated?.Invoke();
 }