public static long EnumTest(__arglist)
    {
        ArgIterator args = new ArgIterator(__arglist);
        long        S    = 0;

        while (args.GetRemainingCount() > 0)
        {
            if (args.GetNextArgType().Equals(typeof(Enum1).TypeHandle))
            {
                Enum1 e = __refvalue(args.GetNextArg(), Enum1);
                Console.WriteLine("Got Enum1, value = " + e + " = " + (long)e);
                S += (long)e;
            }
            if (args.GetNextArgType().Equals(typeof(Enum8).TypeHandle))
            {
                Enum8 e = __refvalue(args.GetNextArg(), Enum8);
                Console.WriteLine("Got Enum8, value = " + e + " = " + (long)e);
                S += (long)e;
            }
            if (args.GetNextArgType().Equals(typeof(Enum16).TypeHandle))
            {
                Enum16 e = __refvalue(args.GetNextArg(), Enum16);
                Console.WriteLine("Got Enum16, value = " + e + " = " + (long)e);
                S += (long)e;
            }
            if (args.GetNextArgType().Equals(typeof(Enuml).TypeHandle))
            {
                Enuml e = __refvalue(args.GetNextArg(), Enuml);
                Console.WriteLine("Got Enuml, value = " + e + " = " + (long)e);
                S += (long)e;
            }
        }
        return(S);
    }
Пример #2
0
        // Token: 0x06001620 RID: 5664 RVA: 0x00035874 File Offset: 0x00033A74
        protected override void WndProc(ref Message m)
        {
            Enum16 msg = (Enum16)m.Msg;

            if (msg <= Enum16.const_103)
            {
                switch (msg)
                {
                case Enum16.const_5:
                {
                    uint num = (uint)((int)m.WParam);
                    if (num == 0U)
                    {
                        this.OnLostFocus(EventArgs.Empty);
                    }
                    break;
                }

                case Enum16.const_6:
                    break;

                case Enum16.const_7:
                    if (this.bool_1)
                    {
                        return;
                    }
                    break;

                default:
                    if (msg == Enum16.const_103)
                    {
                        Enum71 @enum = (Enum71)((int)m.WParam);
                        if (@enum == Enum71.const_0 && this.eventHandler_3 != null)
                        {
                            this.eventHandler_3(this, EventArgs.Empty);
                            return;
                        }
                    }
                    break;
                }
            }
            else if (msg != Enum16.const_139)
            {
                if (msg == Enum16.const_155)
                {
                    if (this.bool_0 && this.eventHandler_1 != null)
                    {
                        this.eventHandler_1(this, EventArgs.Empty);
                    }
                }
            }
            else if (this.eventHandler_0 != null)
            {
                this.eventHandler_0(this, EventArgs.Empty);
                this.bool_0 = true;
            }
            base.WndProc(ref m);
        }
Пример #3
0
        protected override void WndProc(ref Message m)
        {
            Enum16 msg = (Enum16)m.Msg;

            if (msg == Enum16.const_67)
            {
                base.RecreateHandle();
            }
            base.WndProc(ref m);
        }
Пример #4
0
 internal void method_9(Cell cell_2)
 {
     if (!this.string_1.IsNullOrEmpty())
     {
         Match match;
         Aisino.Framework.Plugin.Core.ExcelXml.Range range;
         Enum16 enum2 = Class129.smethod_2(this.string_1, out match);
         if (cell_2 == null)
         {
             throw new ArgumentNullException("cell");
         }
         if (Class129.smethod_4(cell_2, match, out range, enum2 == ((Enum16)3)))
         {
             this.string_1 = "";
             this.cell_0   = range.cell_0;
             this.cell_1   = range.cell_1;
         }
     }
 }
 public static extern IntPtr SendMessage_5(HandleRef hwnd, Enum16 wMsg, int wParam, int lParam);
 public static extern IntPtr SendMessage_3(IntPtr hwnd, Enum16 wMsg, int wParam, int lParam);
 public static extern IntPtr SendMessageTimeout(IntPtr hWnd, Enum16 Msg, IntPtr wParam, ref Struct20 lParam, Enum88 fuFlags, uint uTimeout, out IntPtr lpdwResult);
 public static extern IntPtr SendMessage_1(IntPtr hWnd, Enum16 Msg, IntPtr wParam, ref Struct20 lParam);
 public static extern IntPtr SendMessage(IntPtr hWnd, Enum16 Msg, IntPtr wParam, IntPtr lParam);
 public static extern bool PostMessage(IntPtr hWnd, Enum16 Msg, int wParam, int lParam);
 public static extern bool SendNotifyMessage(IntPtr hWnd, Enum16 msg, Enum71 wParam, int lParam);
Пример #12
0
 extern static void SetValue(ref Enum16 x);
Пример #13
0
 public override void FromNetworkObject(NetworkObject fellowship)
 {
     Name     = NetworkObjectField.ReadStringField(fellowship.GetField(0));
     Unknown1 = (Enum16)NetworkObjectField.ReadIntField(fellowship.GetField(1));
 }
Пример #14
0
 public FellowshipObject(string name, Enum16 unknown1)
 {
     Name     = name;
     Unknown1 = unknown1;
 }