Example #1
0
        public void MessageBox(string title, string description, bool error = false)
        {
            IntPtr titlePtr       = MarshalHelper.StringToUTF8(title);
            IntPtr descriptionPtr = MarshalHelper.StringToUTF8(description);

            if (error)
            {
                uiMsgBoxError(handle, titlePtr, descriptionPtr);
            }
            else
            {
                uiMsgBox(handle, titlePtr, descriptionPtr);
            }
            Marshal.FreeHGlobal(titlePtr);
            Marshal.FreeHGlobal(descriptionPtr);
        }