예제 #1
0
 public static DialogResult Show(string title, string description, string BoxName = "i")
 {
     using (var form = new CustomMessageForm(description, title, BoxName))
     {
         Desc_   = description;
         Title_  = title;
         BoxNum_ = BoxName;
         form.ShowDialog();
     }
     return(dialog);
 }
예제 #2
0
 public static async Task <object> Show(string title, string description, Task <object> t)
 {
     using (var form = new CustomMessageForm(description, title, "l"))
     {
         Desc_   = description;
         Title_  = title;
         BoxNum_ = "l";
         Task_   = t;
         form.ShowDialog();
     }
     return(await t);
 }