public static DialogResult Show(MyMessageBoxInformation info)
        {
            using var form = new MyMessageBoxTemplateForm();
            var owner = info.EffectiveOwner;

            form.Initialize(info);
            return(owner == null?form.ShowDialog() : form.ShowDialog(owner));
        }
예제 #2
0
 public static DialogResult Show(
     MyMessageBoxInformation information)
 {
     return(MyMessageBoxImplementation.Show(information));
 }
 internal void Initialize(
     MyMessageBoxInformation info)
 {
     _info = info;
 }