Ejemplo n.º 1
0
 private Class6(Enum1 type, string exePath, string relaunchFile, string errorMessage)
 {
     this.enum1_0  = type;
     this.string_0 = exePath;
     this.string_1 = relaunchFile;
     this.string_2 = errorMessage;
 }
Ejemplo n.º 2
0
        public void Test1()
        {
            Map.Extensions = TypeExtension.GetExtensions("Mapping.xml");

            Enum1 e1 = (Enum1)Map.ValueToEnum("3", typeof(Enum1));

            Assert.AreEqual(Enum1.Value2, e1);

            Enum2 e2 = (Enum2)Map.ValueToEnum("3", typeof(Enum2));

            Assert.AreEqual(Enum2.Value2, e2);

            Enum3 e3 = (Enum3)Map.ValueToEnum("4", typeof(Enum3));

            Assert.AreEqual(Enum3.Value2, e3);

            Enum4 e4 = (Enum4)Map.ValueToEnum("4", typeof(Enum4));

            Assert.AreEqual(Enum4.Value2, e4);

            Dest o = (Dest)Map.ObjectToObject(new Source(), typeof(Dest));

            Assert.AreEqual(Enum1.Value2, o.Field1);
            Assert.AreEqual(Enum1.Value1, o.Field2);
            Assert.AreEqual(Enum2.Value1, o.Field3);
        }
Ejemplo n.º 3
0
 public Class109(GenericAudioStream stream1_1, Device device_1, int int_5)
 {
     this.stream1_0 = new Stream4(stream1_1, 16);
     this.int_1 = this.stream1_0.vmethod_0().method_0(int_5);
     this.int_1 -= this.int_1 % 5;
     this.int_0 = this.int_1 / 5;
     this.double_0 = (double)this.stream1_0.vmethod_0().int_0 * (double)this.stream1_0.vmethod_0().short_1 / 1000.0;
     this.byte_0 = new byte[this.int_0];
     this.device_0 = device_1;
     if (this.device_0 == null)
     {
         this.device_0 = new Device();
         this.device_0.SetCooperativeLevel(Class109.GetDesktopWindow(), CooperativeLevel.Normal);
         this.bool_0 = true;
     }
     this.secondaryBuffer_0 = new SecondaryBuffer(new BufferDescription
     {
         BufferBytes = this.int_1,
         ControlPositionNotify = true,
         CanGetCurrentPosition = true,
         ControlVolume = true,
         GlobalFocus = true,
         StickyFocus = true,
         Format = Class109.smethod_0(this.stream1_0.vmethod_0())
     }, this.device_0);
     this.secondaryBuffer_0.SetCurrentPosition(0);
     this.int_2 = 0;
     this.secondaryBuffer_0.Volume = 0;
     this.autoResetEvent_0 = new AutoResetEvent(false);
     this.bufferPositionNotify_1[0].EventNotifyHandle = this.autoResetEvent_0.Handle;
     this.enum1_0 = Enum1.const_0;
 }
    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);
    }
Ejemplo n.º 5
0
 // Token: 0x060011BA RID: 4538 RVA: 0x00003AB0 File Offset: 0x00001CB0
 public void DeviceStatusChange(GInterface2 pDevice, Enum1 NewStatus)
 {
     if (this.delegate47_0 != null)
     {
         this.delegate47_0(pDevice, NewStatus);
         return;
     }
 }
Ejemplo n.º 6
0
 private Class1(int goodLength, int maxLazy, int niceLength, int maxChainLength, Enum1 flavor)
 {
     this.int_0   = goodLength;
     this.int_1   = maxLazy;
     this.int_2   = niceLength;
     this.int_3   = maxChainLength;
     this.enum1_0 = flavor;
 }
Ejemplo n.º 7
0
 // Token: 0x06000649 RID: 1609 RVA: 0x00006161 File Offset: 0x00004361
 public void method_3(Enum1 enum1_1)
 {
     if (this.enum1_0 == enum1_1)
     {
         return;
     }
     this.enum1_0 = enum1_1;
     this.bool_1  = true;
 }
Ejemplo n.º 8
0
        public void GetUnderlyingValue()
        {
            Enum1 enum1 = Enum1.B;

            enum1.GetUnderlyingValue <int>().ShouldBe(2);
            Enum2 enum2 = Enum2.C;

            enum2.GetUnderlyingValue <byte>().ShouldBe((byte)3);
        }
Ejemplo n.º 9
0
        public void GetDescription()
        {
            Enum1 enum1 = Enum1.B;

            enum1.GetDescription().ShouldBe("B2");
            Enum1 enum2 = Enum1.C;

            enum2.GetDescription(false).ShouldBeNull();
        }
Ejemplo n.º 10
0
 private void VistaButton_LostFocus(object sender, EventArgs e)
 {
     this.pNyYswXrwU = (Enum1)0;
     if (this.style_0 == Style.Flat)
     {
         this.int_0 = 0;
     }
     this.timer_0.Stop();
     this.timer_1.Start();
 }
 public GroupSelectionRegime()
 {
     itsState               = Enum1.START;
     itsEntryDecade         = 0;
     itsReentryInterval     = 0;
     itsTargetCut           = 0;
     itsStandProportion     = 0;
     itsMeanGroupSize       = 0;
     itsStandardDeviation   = 0;
     itsTotalNumberOfStands = 0;
 }
Ejemplo n.º 12
0
 // Token: 0x06000654 RID: 1620 RVA: 0x000061E9 File Offset: 0x000043E9
 private static Interface8 smethod_3(Enum1 enum1_1)
 {
     if (enum1_1 == (Enum1)1)
     {
         return(null);
     }
     if (enum1_1 != (Enum1)2)
     {
         throw new InvalidOperationException("Padding mode is not supported");
     }
     return(new Class181());
 }
Ejemplo n.º 13
0
 // Token: 0x06000650 RID: 1616 RVA: 0x000061BF File Offset: 0x000043BF
 private static PaddingMode smethod_2(Enum1 enum1_1)
 {
     if (enum1_1 == (Enum1)1)
     {
         return(PaddingMode.None);
     }
     if (enum1_1 != (Enum1)2)
     {
         throw new InvalidOperationException("Padding mode is not supported");
     }
     return(PaddingMode.PKCS7);
 }
Ejemplo n.º 14
0
        static void Main(string[] args)
        {
            Enum1      enum1      = Enum1.MyValue | Enum1.OtherValue;
            Enum1Flags enum1Flags = Enum1Flags.MyValue | Enum1Flags.OtherValue;

            //Enum1: 3
            Console.WriteLine($"Enum1      : {enum1}");
            //Enum1Flags: MyValue, OtherValue
            Console.WriteLine($"Enum1Flags : {enum1Flags}");

            Console.ReadKey();
        }
Ejemplo n.º 15
0
        protected int split(int icell, Enum1 iface)
        {
            double[] x = new double[3];

            Grid.ChildCell[] cells = sparta.grid.cells;

            // x = center point on face

            x[0] = 0.5 * (cells[icell].lo[0] + cells[icell].hi[0]);
            x[1] = 0.5 * (cells[icell].lo[1] + cells[icell].hi[1]);
            x[2] = 0.5 * (cells[icell].lo[2] + cells[icell].hi[2]);
            if (sparta.domain.dimension == 2)
            {
                x[2] = 0.0;
            }

            if (iface == Enum1.XLO)
            {
                x[0] = cells[icell].lo[0];
            }
            else if (iface == Enum1.XHI)
            {
                x[0] = cells[icell].hi[0];
            }
            else if (iface == Enum1.YLO)
            {
                x[1] = cells[icell].lo[1];
            }
            else if (iface == Enum1.YHI)
            {
                x[1] = cells[icell].hi[1];
            }
            else if (iface == Enum1.ZLO)
            {
                x[2] = cells[icell].lo[2];
            }
            else if (iface == Enum1.ZHI)
            {
                x[2] = cells[icell].hi[2];
            }

            int splitcell;

            if (dimension == 2)
            {
                splitcell = sparta.update.split2d(icell, x);
            }
            else
            {
                splitcell = sparta.update.split3d(icell, x);
            }
            return(splitcell);
        }
Ejemplo n.º 16
0
        public static bool Read(IReader reader, ref Enum1 val, string name = null)
        {
            int tmp = 0;

            if (!reader.Read(ref tmp, name))
            {
                return(false);
            }

            val = (Enum1)tmp;
            return(true);
        }
Ejemplo n.º 17
0
    public static void Main()
    {
        Enum1 e = Enum1.V1;

        System.Console.WriteLine(e == Enum1.V1);
        System.Console.WriteLine(e == Enum1.V2);
        if (e == Enum1.V2)
        {
            System.Console.WriteLine(true);
        }
        Method1(e);
    }
 public override void Read(StreamReader inFile)
 {
     if (itsState == Enum1.START)
     {
         base.Read(inFile);
         itsState = Enum1.ENTRYPENDING;
     }
     else
     {
         throw new Exception("Illegal call to GroupSelectionRegime.read");
     }
 }
Ejemplo n.º 19
0
 public Class117(GenericAudioStream stream1_1)
 {
     this.stream1_0 = stream1_1;
     this.class120_0 = (Class120.smethod_2() ?? new Class120());
     this.enum12_0 = Class119.smethod_10(stream1_1.vmethod_0());
     this.int_0 = stream1_1.vmethod_0().int_0;
     this.double_0 = (double)stream1_1.vmethod_0().int_0 * (double)stream1_1.vmethod_0().short_1 / 1000.0;
     this.int_1 = stream1_1.vmethod_0().method_0(80);
     this.int_2 = 5;
     this.intptr_0 = Marshal.AllocHGlobal(this.int_1);
     this.intptr_1 = Class119.smethod_2();
     this.intptr_2 = Class119.smethod_8(this.int_2);
     this.enum1_0 = Enum1.const_0;
 }
Ejemplo n.º 20
0
    public static S5 NewS5(int age, string name, Enum1 ef)
    {
        S4 s4 = new S4();

        s4.age  = age;
        s4.name = name;

        S5 s5 = new S5();

        s5.s4 = s4;
        s5.ef = ef;

        return(s5);
    }
Ejemplo n.º 21
0
 private void VistaButton_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         this.pNyYswXrwU = (Enum1)2;
         if (this.style_0 != Style.Flat)
         {
             this.int_0 = 0xff;
         }
         this.timer_0.Stop();
         this.timer_1.Stop();
         base.Invalidate();
     }
 }
Ejemplo n.º 22
0
 private void VistaButton_MouseUp(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         this.pNyYswXrwU = (Enum1)1;
         this.timer_0.Stop();
         this.timer_1.Stop();
         base.Invalidate();
         if (this.bool_0)
         {
             this.OnClick(EventArgs.Empty);
             this.bool_0 = false;
         }
     }
 }
Ejemplo n.º 23
0
 public Class163(GenericAudioStream stream1_1, int int_4, int int_5)
 {
     this.stream1_0 = stream1_1;
     this.int_1 = int_4;
     this.int_2 = int_5;
     this.double_0 = (double)stream1_1.vmethod_0().int_0 * (double)stream1_1.vmethod_0().short_1 / 1000.0;
     this.delegate4_0 = new Class162.Delegate4(this.method_2);
     this.queue_1 = new Queue<Class163.Class164>();
     this.queue_0 = new Queue<Class158>(5);
     this.autoResetEvent_0 = new AutoResetEvent(false);
     this.object_0 = new object();
     this.thread_0 = new Thread(new ThreadStart(this.method_1));
     this.thread_0.Start();
     this.enum1_0 = Enum1.const_0;
     this.method_0(stream1_1);
 }
Ejemplo n.º 24
0
 public Class155(GenericAudioStream stream1_1, bool bool_1)
 {
     if (stream1_1.Length <= 0L)
     {
         throw new Exception("WinMM2Player: Invalid Stream.");
     }
     this.class16_0 = stream1_1.vmethod_1();
     if (this.class16_0.waveFormat_0.waveFormatTag_0 != WaveFormatTag.PCM && this.class16_0.waveFormat_0.waveFormatTag_0 != WaveFormatTag.IEEEFloat)
     {
         throw new Exception("WinMM2Player: Only PCM is supported.");
     }
     this.stream1_0 = stream1_1;
     this.bool_0 = bool_1;
     this.imethod_2(0);
     this.enum1_0 = Enum1.const_0;
 }
Ejemplo n.º 25
0
        public void HasRequiredArgumentIgnoreCaseTest()
        {
            const Enum1 expectedValue = Enum1.Value2;

            this.cakeArgs.Setup(
                m => m.HasArgument(requiredArgName)
                ).Returns(true);

            this.cakeArgs.SetupGetArgumentSingle(
                requiredArgName,
                expectedValue.ToString().ToLowerInvariant()
                );

            RequiredArgumentIgnoreCase uut = ArgumentBinderAliases.CreateFromArguments <RequiredArgumentIgnoreCase>(this.cakeContext.Object);

            Assert.AreEqual(expectedValue, uut.Enum1Property);
        }
Ejemplo n.º 26
0
        public void UpdateRandomAnimalSoundCountry(int chance)
        {
            const int kNumRandomSoundsCountry = 20;
            int       r = Utilities.GetRand(chance);

            if (r == 0)
            {
                Enum1[] soundId = new Enum1[20]
                {
                    Enum1.kSoundEffect_PigOink4, Enum1.kSoundEffect_PigOink5, Enum1.kSoundEffect_PigOink6, Enum1.kSoundEffect_Baa1, Enum1.kSoundEffect_Baa2, Enum1.kSoundEffect_Baa3, Enum1.kSoundEffect_Baa4
                    , Enum1.kSoundEffect_Baa5, Enum1.kSoundEffect_Rooster, Enum1.kSoundEffect_Goat, Enum1.kSoundEffect_Horse, Enum1.kSoundEffect_ChickenCluck1, Enum1.kSoundEffect_Rooster,
                    Enum1.kSoundEffect_Goat, Enum1.kSoundEffect_Horse, Enum1.kSoundEffect_ChickenCluck1, Enum1.kSoundEffect_Rooster, Enum1.kSoundEffect_Goat, Enum1.kSoundEffect_Horse,
                    Enum1.kSoundEffect_ChickenCluck1
                };
                int   whichSound = Utilities.GetRand(kNumRandomSoundsCountry);
                float volume     = Utilities.GetRandBetweenP1(0.3f, 0.65f);
                (SoundEngine.Instance()).PlayFinchSoundP1((int)soundId[whichSound], volume);
            }
        }
Ejemplo n.º 27
0
        public void UpdateRandomAnimalSoundFarm(int chance)
        {
            const int kNumFarmRandomSounds = 29;
            int       r = Utilities.GetRand(chance);

            if (r == 0)
            {
                Enum1[] soundId = new Enum1[29]
                {
                    Enum1.kSoundEffect_PigOink1, Enum1.kSoundEffect_PigOink2, Enum1.kSoundEffect_PigOink3, Enum1.kSoundEffect_Baa1, Enum1.kSoundEffect_Baa2, Enum1.kSoundEffect_Baa3, Enum1.kSoundEffect_Baa4
                    , Enum1.kSoundEffect_Baa5, Enum1.kSoundEffect_Goat, Enum1.kSoundEffect_Horse, Enum1.kSoundEffect_Howl, Enum1.kSoundEffect_Bark1, Enum1.kSoundEffect_Bark2, Enum1.kSoundEffect_Bark3
                    , Enum1.kSoundEffect_Rooster, Enum1.kSoundEffect_Goat, Enum1.kSoundEffect_Horse, Enum1.kSoundEffect_Howl, Enum1.kSoundEffect_Bark1, Enum1.kSoundEffect_Bark2,
                    Enum1.kSoundEffect_Bark3, Enum1.kSoundEffect_Rooster, Enum1.kSoundEffect_Goat, Enum1.kSoundEffect_Horse, Enum1.kSoundEffect_Howl, Enum1.kSoundEffect_Bark1, Enum1.kSoundEffect_Bark2
                    , Enum1.kSoundEffect_Bark3, Enum1.kSoundEffect_Rooster
                };
                int whichSound = Utilities.GetRand(kNumFarmRandomSounds);
                (SoundEngine.Instance()).PlayFinchSound((int)soundId[whichSound]);
            }
        }
Ejemplo n.º 28
0
 private void method_5()
 {
     if (!this.bool_0)
     {
         this.enum1_0 = Enum1.const_1;
         for (int i = 0; i < 5; i++)
         {
             this.class158_0[i].method_1();
         }
         this.bool_0 = true;
     }
     this.method_6();
 }
Ejemplo n.º 29
0
 public SubmainObj(KaitaiStream p__io, Enum1.MainObj p__parent = null, Enum1 p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root;
     _read();
 }
Ejemplo n.º 30
0
 public void imethod_3()
 {
     switch (this.enum1_0)
     {
     case Enum1.const_1:
         return;
     case Enum1.const_2:
         Class119.alSourcePlay(this.intptr_1);
         this.stopwatch_0.Start();
         this.enum1_0 = Enum1.const_1;
         return;
     default:
     {
         while (Class119.smethod_4(this.intptr_1, Enum11.const_5) > 0)
         {
             Class119.smethod_6(this.intptr_1);
         }
         IntPtr[] array = this.intptr_2;
         for (int i = 0; i < array.Length; i++)
         {
             IntPtr intPtr = array[i];
             int num;
             lock (this.stream1_0)
             {
                 num = this.stream1_0.vmethod_3(this.intptr_0, this.int_1);
             }
             Class119.alBufferData(intPtr, this.enum12_0, this.intptr_0, num, this.int_0);
         }
         Class119.alSourceQueueBuffers(this.intptr_1, this.intptr_2.Length, this.intptr_2);
         if (!this.bool_1)
         {
             ThreadPool.QueueUserWorkItem(new WaitCallback(this.method_3));
         }
         Class119.alSourcef(this.intptr_1, Enum10.const_4, 0f);
         Class119.alSourcePlay(this.intptr_1);
         this.stopwatch_0.Start();
         this.enum1_0 = Enum1.const_1;
         this.method_0();
         return;
     }
     }
 }
Ejemplo n.º 31
0
 public static void Method1(Enum1 e)
 {
     System.Console.WriteLine((int)e);
 }
Ejemplo n.º 32
0
    public static S5 NewS5(int age, string name,Enum1 ef)
    {
        S4 s4 = new S4();
        s4.age = age;
        s4.name = name;

        S5 s5 = new S5();
        s5.s4 = s4;
        s5.ef = ef;

        return s5;
    }
Ejemplo n.º 33
0
 public void imethod_4()
 {
     if (this.class159_0 != null)
     {
         if (this.enum1_0 == Enum1.const_1)
         {
             this.enum1_0 = Enum1.const_2;
             this.class159_0.method_4();
             return;
         }
     }
 }
Ejemplo n.º 34
0
            public void ReturnsCorrectValueForTryParseMethod(string input, bool ignoreCase, Enum1? expectedResult)
            {
                Enum1 result;

                var parseResult = Enum<Enum1>.TryParse(input, ignoreCase, out result);

                if (!expectedResult.HasValue && !parseResult)
                {
                    return;
                }

                Assert.IsTrue(parseResult);
                Assert.AreEqual(expectedResult.Value, result);
            }
Ejemplo n.º 35
0
 public void imethod_5()
 {
     this.secondaryBuffer_0.Volume = -10000;
     this.method_0();
     this.method_9();
     this.secondaryBuffer_0.Stop();
     this.enum1_0 = Enum1.const_0;
 }
Ejemplo n.º 36
0
 public static void Method1(Enum1 e)
 {
     System.Console.WriteLine((int)e);
 }
Ejemplo n.º 37
0
 public static bool Write(IWriter writer, Enum1 val, string name = null)
 {
     return(writer.Write((int)val, name));
 }
Ejemplo n.º 38
0
 private void VistaButton_GotFocus(object sender, EventArgs e)
 {
     this.pNyYswXrwU = (Enum1)1;
     this.timer_1.Stop();
     this.timer_0.Start();
 }
Ejemplo n.º 39
0
 private void method_1()
 {
     bool flag = false;
     while (this.enum1_0 != Enum1.const_0 && !flag)
     {
         if (this.bool_0)
         {
             this.bool_0 = false;
             Class119.alSourcef(this.intptr_1, Enum10.const_4, this.float_0);
         }
         if (this.enum1_0 != Enum1.const_2)
         {
             int num = 0;
             int num2;
             do
             {
                 Class119.alGetSourcei(this.intptr_1, Enum11.const_6, out num2);
                 if (num > 50)
                 {
                     Thread.Sleep(1);
                 }
                 else
                 {
                     num++;
                 }
             }
             while (num2 == 0);
             while (num2-- != 0)
             {
                 IntPtr intPtr = Class119.smethod_6(this.intptr_1);
                 int num3;
                 lock (this.stream1_0)
                 {
                     num3 = this.stream1_0.vmethod_3(this.intptr_0, this.int_1);
                 }
                 if (num3 < this.int_1)
                 {
                     flag = true;
                 }
                 Class119.alBufferData(intPtr, this.enum12_0, this.intptr_0, num3, this.int_0);
                 Class119.smethod_5(this.intptr_1, ref intPtr);
                 this.int_3 += this.int_1;
                 this.stopwatch_0.Reset();
                 this.stopwatch_0.Start();
             }
             int num4;
             Class119.alGetSourcei(this.intptr_1, Enum11.const_5, out num4);
             if (num4 <= 0)
             {
                 break;
             }
             if (Class119.smethod_4(this.intptr_1, Enum11.const_4) != 4114)
             {
                 Class119.alSourcePlay(this.intptr_1);
             }
         }
     }
     if (!flag)
     {
         return;
     }
     while (Class119.smethod_4(this.intptr_1, Enum11.const_6) != this.int_2)
     {
     }
     Stream arg_188_0 = this.stream1_0;
     this.int_3 = 0;
     arg_188_0.Position = 0L;
     this.enum1_0 = Enum1.const_0;
     Class119.alSourceStop(this.intptr_1);
     this.stopwatch_0.Reset();
     Class119.smethod_7(this.intptr_1, this.intptr_2.Length);
 }
Ejemplo n.º 40
0
 public void imethod_5()
 {
     this.thread_0.Abort();
     this.enum1_0 = Enum1.const_0;
     Class119.alSourceStop(this.intptr_1);
     this.stopwatch_0.Reset();
     Class119.smethod_7(this.intptr_1, this.intptr_2.Length);
 }
Ejemplo n.º 41
0
 public void imethod_4()
 {
     Class119.alSourcePause(this.intptr_1);
     this.stopwatch_0.Stop();
     this.enum1_0 = Enum1.const_2;
 }
Ejemplo n.º 42
0
 private void method_5()
 {
     int num = 0;
     while (this.bool_1)
     {
         if (this.bool_2)
         {
             return;
         }
         this.autoResetEvent_0.WaitOne(-1, true);
         if (!this.method_6())
         {
             num = this.int_2 / this.int_0;
             this.bool_1 = this.method_7();
         }
     }
     Array.Clear(this.byte_0, 0, this.byte_0.Length);
     bool flag = true;
     while (flag)
     {
         this.autoResetEvent_0.WaitOne(-1, true);
         flag = this.method_6();
     }
     int num2 = this.int_2 / this.int_0;
     this.method_8();
     int int_ = (int)(this.long_0 % (long)this.int_1);
     this.method_3(int_);
     bool flag2 = false;
     while (!flag2)
     {
         this.autoResetEvent_0.WaitOne(-1, true);
         int num3 = this.secondaryBuffer_0.PlayPosition / this.int_0;
         if (!(flag2 = (num3 == num | num3 == num2)))
         {
             this.int_3++;
         }
     }
     this.secondaryBuffer_0.Stop();
     this.enum1_0 = Enum1.const_0;
 }
Ejemplo n.º 43
0
 private void method_0()
 {
     if (this.enum1_0 == Enum1.const_2)
     {
         this.secondaryBuffer_0.Play(0, BufferPlayFlags.Looping);
         this.enum1_0 = Enum1.const_1;
     }
 }
Ejemplo n.º 44
0
 public Enum2 Field3(Enum2?arg1, Enum1 arg2, Enum2?arg3 = Enum2.SomeValue2, Enum1?arg4 = Enum1.Option3) => arg3 ?? Enum2.SomeValue1;
Ejemplo n.º 45
0
 public void imethod_4()
 {
     if (this.enum1_0 == Enum1.const_1)
     {
         this.secondaryBuffer_0.Stop();
         this.enum1_0 = Enum1.const_2;
     }
 }
Ejemplo n.º 46
0
 public void imethod_5()
 {
     if (this.class159_0 != null && this.enum1_0 != Enum1.const_0)
     {
         this.enum1_0 = Enum1.const_0;
         try
         {
             this.class159_0.Dispose();
         }
         finally
         {
             this.class159_0 = null;
         }
         return;
     }
 }
Ejemplo n.º 47
0
            public void ReturnsCorrectFlags(Enum1 flags, Enum1[] expectedValues)
            {
                var actualValues = Enum <Enum1> .Flags.GetValues(flags);

                Assert.AreEqual(expectedValues, actualValues);
            }
Ejemplo n.º 48
0
 public void imethod_3()
 {
     WaitCallback waitCallback = null;
     if (this.enum1_0 == Enum1.const_1)
     {
         return;
     }
     if (this.class159_0 != null && this.enum1_0 == Enum1.const_2 && !this.class159_0.method_5())
     {
         this.enum1_0 = Enum1.const_1;
         this.class159_0.method_2(0f);
         this.class159_0.method_3();
         if (waitCallback == null)
         {
             waitCallback = new WaitCallback(this.method_2);
         }
         ThreadPool.QueueUserWorkItem(waitCallback);
         return;
     }
     this.imethod_5();
     this.enum1_0 = Enum1.const_1;
     this.class159_0 = new Class159(-1, this.class16_0.waveFormat_0, 200, this.float_0, this.bool_0, new Delegate3(this.method_0));
 }
Ejemplo n.º 49
0
 public void imethod_3()
 {
     if (this.enum1_0 != Enum1.const_1)
     {
         this.enum1_0 = Enum1.const_1;
         if (Thread.CurrentThread.ManagedThreadId != this.thread_0.ManagedThreadId)
         {
             lock (this.queue_1)
             {
                 this.queue_1.Enqueue(new Class163.Class164(Class163.Enum19.const_3, null));
                 this.autoResetEvent_0.Set();
             }
             return;
         }
         this.method_5();
     }
 }
Ejemplo n.º 50
0
            public void ReturnsCorrectFlags(Enum1 flags, Enum1[] expectedValues)
            {
                var actualValues = Enum<Enum1>.Flags.GetValues(flags);

                Assert.AreEqual(expectedValues, actualValues);
            }
Ejemplo n.º 51
0
 public void imethod_4()
 {
     if (this.enum1_0 != Enum1.const_1)
     {
         return;
     }
     int num = this.vmethod_0();
     this.imethod_5();
     this.stream1_0.Position = (long)(this.int_3 = num);
     this.enum1_0 = Enum1.const_2;
 }
Ejemplo n.º 52
0
 public Enum1(KaitaiStream p__io, KaitaiStruct p__parent = null, Enum1 p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root ?? this;
     _read();
 }
Ejemplo n.º 53
0
 public void imethod_5()
 {
     if (Thread.CurrentThread.ManagedThreadId != this.thread_0.ManagedThreadId)
     {
         lock (this.queue_1)
         {
             this.queue_1.Enqueue(new Class163.Class164(Class163.Enum19.const_1, null));
             this.autoResetEvent_0.Set();
         }
         return;
     }
     this.enum1_0 = Enum1.const_0;
     this.bool_0 = false;
     Enum18 @enum;
     lock (this.object_0)
     {
         @enum = Class162.waveOutReset(this.intptr_0);
     }
     if (@enum != Enum18.const_0)
     {
         throw new Exception4(@enum, "waveOutReset");
     }
     this.stopwatch_0.Reset();
 }
Ejemplo n.º 54
0
 // Token: 0x06000E36 RID: 3638
 // RVA: 0x0000EB44 File Offset: 0x0000CD44
 public Class18(Class32 class32_0)
 {
     this.int_0 = class32_0.ReadInt32();
     this.enum1_0 = (Enum1)class32_0.ReadByte();
 }
Ejemplo n.º 55
0
 public void imethod_3()
 {
     if (this.enum1_0 == Enum1.const_2)
     {
         this.method_0();
         return;
     }
     if (this.enum1_0 == Enum1.const_0)
     {
         this.method_9();
         this.method_2(5);
         this.long_0 = 0L;
         this.int_2 = 0;
         this.secondaryBuffer_0.SetCurrentPosition(0);
         this.method_4();
         for (int i = 0; i < 5; i++)
         {
             this.method_7();
         }
         this.secondaryBuffer_0.SetCurrentPosition(0);
         this.secondaryBuffer_0.Volume = 0;
         this.secondaryBuffer_0.Play(0, BufferPlayFlags.Looping);
         this.enum1_0 = Enum1.const_1;
     }
 }