Exemple #1
0
 public MessageBox.Result Show(string msg, string title, MessageBox.Type eType)
 {
     this.Message = msg;
     this.Title   = title;
     this.MBType  = eType;
     return(this.Show());
 }
Exemple #2
0
 public MessageBox()
 {
     this.Title   = "Set Title!";
     this.Message = "Set Message!";
     this.OK      = "OK";
     this.CANCEL  = "CANCEL";
     this.MBType  = MessageBox.Type.OK;
 }
Exemple #3
0
        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);
        }