public MessageBox.Result Show(string msg, string title, MessageBox.Type eType) { this.Message = msg; this.Title = title; this.MBType = eType; return(this.Show()); }
public MessageBox() { this.Title = "Set Title!"; this.Message = "Set Message!"; this.OK = "OK"; this.CANCEL = "CANCEL"; this.MBType = MessageBox.Type.OK; }
public static ulong Show(double timeoutSeconds, MessageBox.Type type, string title, string message, string buttonOneLabel, string buttonTwoLabel, string buttonThreeLabel) { var titleManagedString = MarshalExtensions.NativeUtf8FromString(title); var messageManagedString = MarshalExtensions.NativeUtf8FromString(message); var buttonOneLabelManagedString = MarshalExtensions.NativeUtf8FromString(buttonOneLabel); var buttonTwoLabelManagedString = MarshalExtensions.NativeUtf8FromString(buttonTwoLabel); var buttonThreeLabelManagedString = MarshalExtensions.NativeUtf8FromString(buttonThreeLabel); ulong response = showMessageBox(timeoutSeconds, Convert.ToUInt64(type), titleManagedString, messageManagedString, buttonOneLabelManagedString, buttonTwoLabelManagedString, buttonThreeLabelManagedString); return(response); }