| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- //
- // System.Windows.Forms.MessageBox.cs
- //
- // Author:
- // stubbed out by Paul Osman ([email protected])
- // Dennis Hayes ([email protected])
- // WINELib implementation started by John Sohn ([email protected])
- //
- // (C) 2002 Ximian, Inc
- //
- using System;
- using System.Reflection;
- using System.Globalization;
- //using System.Windows.Forms.AccessibleObject.IAccessible;
- using System.Drawing;
- namespace System.Windows.Forms {
- /// <summary>
- /// Most items complete
- /// </summary>
- public class MessageBox {
- //
- // -- Public Methods
- //
- //Compact Framework
- [MonoTODO]
- public override bool Equals(object o)
- {
- throw new NotImplementedException ();
- }
-
- //public static bool Equals(object o1, object o2)
- //{
- // throw new NotImplementedException ();
- //}
-
- //Compact Framework
- [MonoTODO]
- public override int GetHashCode()
- {
- //FIXME add our proprities
- return base.GetHashCode();
- }
-
- //Compact Framework
- //public Type GetType() {
- // throw new NotImplementedException ();
- //}
-
- //Compact Framework
- public static DialogResult Show(string text)
- {
- return (DialogResult)
- Win32.MessageBoxA ((IntPtr) 0, text, "",
- Win32.MB_OK);
- }
-
- public static DialogResult Show (IWin32Window w, string text)
- {
- return (DialogResult)
- Win32.MessageBoxA (w.Handle, text, "",
- Win32.MB_OK);
- }
-
- //Compact Framework
- public static DialogResult Show (string text, string caption)
- {
- return (DialogResult)
- Win32.MessageBoxA ((IntPtr) 0, text, caption,
- Win32.MB_OK);
- }
-
- public static DialogResult Show (IWin32Window w, string text,
- string caption)
- {
- return (DialogResult)
- Win32.MessageBoxA (w.Handle, text, caption,
- Win32.MB_OK);
- }
-
- public static DialogResult Show (string text, string caption,
- MessageBoxButtons mb)
- {
- return (DialogResult)
- Win32.MessageBoxA ((IntPtr) 0, text, caption,
- (uint) mb);
- }
-
- public static DialogResult Show (
- IWin32Window w, string text,
- string caption, MessageBoxButtons mb)
- {
- return (DialogResult)
- Win32.MessageBoxA (w.Handle, text, caption,
- (uint) mb);
- }
-
- public static DialogResult Show (
- string text, string caption, MessageBoxButtons mb,
- MessageBoxIcon mi)
- {
- return (DialogResult)
- Win32.MessageBoxA ((IntPtr) 0, text, caption,
- (uint) (mb | mi) );
- }
-
- public static DialogResult Show (
- IWin32Window w, string text, string caption,
- MessageBoxButtons mb, MessageBoxIcon mi)
- {
- return (DialogResult)
- Win32.MessageBoxA (w.Handle, text, caption,
- (uint) (mb | mi) );
- }
-
- //Compact Framework
- public static DialogResult Show (
- string text, string caption, MessageBoxButtons mb,
- MessageBoxIcon mi, MessageBoxDefaultButton md)
- {
- return (DialogResult)
- Win32.MessageBoxA ((IntPtr) 0, text, caption,
- (uint) (mb | mi | md) );
- }
-
- public static DialogResult Show (
- IWin32Window w, string text, string caption,
- MessageBoxButtons mb, MessageBoxIcon mi,
- MessageBoxDefaultButton md)
- {
- return (DialogResult)
- Win32.MessageBoxA (w.Handle, text, caption,
- (uint) (mb | mi | md) );
- }
-
- public static DialogResult
- Show (string text, string caption,
- MessageBoxButtons mb, MessageBoxIcon mi,
- MessageBoxDefaultButton md, MessageBoxOptions mo)
- {
- return (DialogResult)
- Win32.MessageBoxA ((IntPtr) 0, text, caption,
- (uint) (mb | mi | md | mo) );
- }
-
- public static DialogResult Show (
- IWin32Window w, string text, string caption,
- MessageBoxButtons mb, MessageBoxIcon mi,
- MessageBoxDefaultButton md, MessageBoxOptions mo)
- {
- return (DialogResult)
- Win32.MessageBoxA (w.Handle, text, caption,
- (uint) (mb | mi | md | mo) );
- }
- //Compact Framework
- [MonoTODO]
- public override string ToString () {
- throw new NotImplementedException ();
- }
- //Compact Framework
- [MonoTODO]
- ~MessageBox () {
- throw new NotImplementedException ();
- }
- //Compact Framework
- [MonoTODO]
- protected object MemberWiseClone () {
- throw new NotImplementedException ();
- }
- }
- }
|