Exemple #1
0
        public override object EXECUTE(params object[] po)
        {
            string cap = "";
            string msg = "";

            if (po != null && po.Length > 1)
            {
                cap = po[0] + "";
                msg = po[1] + "";
            }
            else if (po != null && po.Length > 0)
            {
                msg = po[0] + "";
            }
            Collection.MiMFa_MessageType typ = Collection.MiMFa_MessageType.Null;
            if (_alertmsg)
            {
                typ = Collection.MiMFa_MessageType.Alert;
            }
            else if (_errormsg)
            {
                typ = Collection.MiMFa_MessageType.Error;
            }
            else if (_informationmsg)
            {
                typ = Collection.MiMFa_MessageType.Text;
            }
            else if (_riskmsg)
            {
                typ = Collection.MiMFa_MessageType.Risk;
            }
            else if (_successmsg)
            {
                typ = Collection.MiMFa_MessageType.Success;
            }
            var dr = show(msg, cap, typ);

            if (_binary)
            {
                if (dr == System.Windows.Forms.DialogResult.Yes)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            return(dr);
        }
Exemple #2
0
 public System.Windows.Forms.DialogResult show(string message, string caption = "", Collection.MiMFa_MessageType typ = Collection.MiMFa_MessageType.Text)
 {
     if (_circleview)
     {
         return(MiMFa_MessageBoxService.ShowFormCircle(caption, _translate, typ, message));
     }
     return((MCL.UserInterface == null) ? MiMFa_MessageBoxService.ShowConsole(caption, _translate, typ, message): MiMFa_MessageBoxService.ShowMessageBox(caption, _translate, typ, message));
 }