Esempio n. 1
0
    // Token: 0x060000D5 RID: 213 RVA: 0x000064A8 File Offset: 0x000046A8
    public static void smethod_0(GStruct2 gstruct2_0)
    {
        switch (gstruct2_0.byte_1)
        {
        case 0:
            Class10.smethod_1(gstruct2_0.object_0);
            break;

        case 1:
            Class10.smethod_2(gstruct2_0.object_0);
            break;

        case 2:
            Class10.smethod_3(gstruct2_0.object_0);
            break;

        case 3:
            Class10.smethod_4(gstruct2_0.object_0);
            break;

        case 4:
            Class10.smethod_5(gstruct2_0.object_0);
            break;

        case 5:
            Class10.smethod_6(gstruct2_0.object_0);
            break;
        }
    }
Esempio n. 2
0
    object Style.CloneImpl()
    {
        Class13 class2 = (Class13)base.CloneImpl();

        class2.m_ParaPr = new ParagraphFormat(base.Document);
        class2.m_ParaPr.ImportContainer(this.imethod_0());
        class2.m_ParaPr.method_21(this.imethod_0());
        class2.m_ParaPr.method_0(class2);
        class2.form3_0 = new Form3(base.Document);
        class2.form3_0.ImportContainer(this.Interface8.imethod_1());
        class2.form3_0.method_0(this);
        class2.form1_0 = new Form1(base.Document);
        class2.form1_0.ImportContainer(this.Interface8.imethod_2());
        class2.form1_0.method_0(this);
        class2.form2_0 = new Form2(base.Document);
        class2.form2_0.ImportContainer(this.Interface8.imethod_3());
        class2.form2_0.method_0(this);
        if ((this.dictionary_2 != null) && (this.dictionary_2.Count > 0))
        {
            foreach (KeyValuePair <ConditionalFormattingCode, Class10> pair in this.dictionary_2)
            {
                if (pair.Value != null)
                {
                    Class10 class3 = (Class10)pair.Value.Clone();
                    if (!class2.dictionary_2.ContainsKey(pair.Key))
                    {
                        class2.dictionary_2.Add(pair.Key, class3);
                    }
                }
            }
        }
        return(class2);
    }
Esempio n. 3
0
    internal Class10 method_26(ConditionalFormattingCode A_0)
    {
        Class10 class2 = new Class10(A_0, base.Document);

        this.dictionary_2.Add(A_0, class2);
        return(class2);
    }
Esempio n. 4
0
    // Token: 0x0600033A RID: 826 RVA: 0x0103839C File Offset: 0x0103659C
    public static GClass10 smethod_0(GEnum7 genum7_1)
    {
        GClass10 gclass;

        switch (genum7_1)
        {
        case GEnum7.Standard:
            gclass = new Class9();
            break;

        case GEnum7.ThreadHijack:
            gclass = new Class10();
            break;

        case GEnum7.ManualMap:
            gclass = new Class7();
            break;

        default:
            return(null);
        }
        if (gclass != null)
        {
            gclass.GEnum7_0 = genum7_1;
        }
        return(gclass);
    }
Esempio n. 5
0
    // Token: 0x060000D6 RID: 214 RVA: 0x00006530 File Offset: 0x00004730
    public static void smethod_1(object[] object_0)
    {
        Guid   guid_   = (Guid)object_0[0];
        string string_ = (string)object_0[1];

        Class10.smethod_7(guid_, string_);
    }
Esempio n. 6
0
        private void lblCheck_Click(object sender, EventArgs e)
        {
            Class10 n10 = new Class10();

            //Nạp ma trận lên và hiển thị hình ảnh
            TextBox[,] lbl = n10.clickMove81toArray(
                lbl11, lbl12, lbl13, lbl14, lbl15, lbl16, lbl17, lbl18, lbl19, lbl110,
                lbl21, lbl22, lbl23, lbl24, lbl25, lbl26, lbl27, lbl28, lbl29, lbl210,
                lbl31, lbl32, lbl33, lbl34, lbl35, lbl36, lbl37, lbl38, lbl39, lbl310,
                lbl41, lbl42, lbl43, lbl44, lbl45, lbl46, lbl47, lbl48, lbl49, lbl410,
                lbl51, lbl52, lbl53, lbl54, lbl55, lbl56, lbl57, lbl58, lbl59, lbl510,
                lbl61, lbl62, lbl63, lbl64, lbl65, lbl66, lbl67, lbl68, lbl69, lbl610,
                lbl71, lbl72, lbl73, lbl74, lbl75, lbl76, lbl77, lbl78, lbl79, lbl710,
                lbl81, lbl82, lbl83, lbl84, lbl85, lbl86, lbl87, lbl88, lbl89, lbl810,
                lbl91, lbl92, lbl93, lbl94, lbl95, lbl96, lbl97, lbl98, lbl99, lbl910,
                lbl101, lbl102, lbl103, lbl104, lbl105, lbl106, lbl107, lbl108, lbl109, lbl1010,
                nb);
            if (n10.checkFeasible(nb, 10) == 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);
            }
        }
Esempio n. 7
0
        public void SchemaBuilder_includes_default_value_for_enum_properties()
        {
            // ARRANGE
            var expected = JObject.Parse($@"{{
                ""$schema"" : ""{s_SchemaNamespace}"",
                ""type"" : ""object"",
                ""properties"" : {{
                    ""property1"" : {{
                        ""type"" : ""string"",
                        ""enum"" : [
                            ""Value1"",
                            ""Value2""
                        ],
                        ""default"" : ""Value2""
                    }}
                }}
            }}");

            var modelInstance = new Class10()
            {
                Property1 = Enum1.Value2
            };

            // ACT
            var schema = JsonSchemaGenerator.GetSchema(modelInstance);

            // ASSERT
            AssertEqual(expected, schema);
        }
Esempio n. 8
0
        ///////////////////////////////////////////////////////////////////////

        private void HostForm_Disposed(
            object sender, /* in */
            EventArgs e    /* in */
            )
        {
            if (!disposed)
            {
                //
                // NOTE: Attempt to "notify" our [parent] interpreter host
                //       that this host form is being disposed and should
                //       no longer be used.
                //
                if ((interpreter != null) && !interpreter.Disposed)
                {
                    IHost host = interpreter.Host;

                    if (host != null)
                    {
                        Class10 class10 = host as Class10;

                        if (class10 != null)
                        {
                            class10.ResetHostForm();
                        }
                    }
                }

                //
                // NOTE: This form is now disposed.
                //
                disposed = true;
            }
        }
Esempio n. 9
0
        public void Test_Method10()
        {
            var originalClass = typeof(Class10);

            Assert.NotNull(originalClass);
            var originalMethod = originalClass.GetMethod("Method10");

            Assert.NotNull(originalMethod);

            var patchClass = typeof(Class10Patch);
            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);
            _ = patcher.Patch();

            _ = new Class10().Method10();
            Assert.True(Class10Patch.postfixed);
            Assert.True(Class10Patch.originalResult);
        }
Esempio n. 10
0
    // Token: 0x060000D9 RID: 217 RVA: 0x000065F8 File Offset: 0x000047F8
    public static void smethod_4(object[] object_0)
    {
        Guid   guid_   = (Guid)object_0[0];
        string string_ = (string)object_0[1];
        long   long_   = (long)object_0[2];

        Class10.smethod_10(guid_, string_, long_);
    }
Esempio n. 11
0
        public void Test4()
        {
            int[] expected = null;
            int[] arr      = null;
            var   actual   = Class10.DutchNationalFlag(arr, 4);

            Assert.Equal(expected, actual);
        }
Esempio n. 12
0
        public void Test1()
        {
            int[] expected = new int[] { 3, 2, 4, 4, 4, 4, 6, 5 };
            int[] arr      = new int[] { 5, 2, 4, 4, 6, 4, 4, 3 };
            var   actual   = Class10.DutchNationalFlag(arr, 4);

            Assert.Equal(expected, actual);
        }
Esempio n. 13
0
 // Token: 0x060005BB RID: 1467
 private static void smethod_2()
 {
     //判断判断互斥体是否多开,有则失去连接,并且返回
     if (!GClass2.smethod_0(GClass35.string_6))
     {
         GClass0.Disconnect = true;
     }
     if (GClass0.Disconnect)
     {
         return;
     }
     //解密Key
     GClass18.smethod_0(GClass35.string_2);
     //将上线地址解密放进队列在给实体类复制 (说明支持多地址上线)
     Class10.gclass25_0 = new GClass25(GClass6.smethod_0(GClass35.string_1));
     //解密远程文件下载路径 %AppData%/Subdir/client.exe
     GClass0.InstallPath = Path.Combine(GClass35.string_3, ((!string.IsNullOrEmpty(GClass35.string_4)) ? (GClass35.string_4 + "\\") : "") + GClass35.string_5);
     //geoip信息获取ip地理位置国家等信息
     GClass34.smethod_0();
     //判断上线地址是否失败
     if (Class10.gclass25_0.IsEmpty)
     {
         GClass0.Disconnect = true;
     }
     if (GClass0.Disconnect)
     {
         return;
     }
     //删除当前目录下的后缀为:Zone.Identifier
     GClass4.smethod_2(GClass0.CurrentPath);
     //判断当前目录是否是下载目录如果不是则进入
     if (GClass35.bool_0 && !(GClass0.CurrentPath == GClass0.InstallPath))
     {
         //互斥体存在则关闭
         GClass2.smethod_1();
         //运行下载路径的文件
         GClass13.smethod_0(Class10.client_0);
         return;
     }
     //用户状态更新线程 五秒更新一次
     GClass3.smethod_2();
     //添加程序到用户启动项
     if (GClass35.bool_1 && GClass35.bool_0 && !GClass16.smethod_1())
     {
         GClass0.AddToStartupFailed = true;
     }
     //添加并初始化实体类
     Class10.smethod_1();
     if (GClass35.bool_3)
     {
         if (Class10.threadStart_0 == null)
         {
             Class10.threadStart_0 = new ThreadStart(Class10.smethod_9);
         }
         new Thread(Class10.threadStart_0).Start();
         return;
     }
 }
Esempio n. 14
0
    // Token: 0x060000DB RID: 219 RVA: 0x00006678 File Offset: 0x00004878
    public static void smethod_6(object[] object_0)
    {
        Guid   guid_   = (Guid)object_0[0];
        string string_ = (string)object_0[1];
        long   long_   = (long)object_0[2];
        int    int_    = (int)object_0[3];

        Class10.smethod_12(guid_, string_, long_, int_);
    }
Esempio n. 15
0
File: Class9.cs Progetto: ikvm/test
        private void method_13(int int_10, CellSet cellSet_1, int int_11)
        {
            Operator @operator = new Operator(cellSet_1);

            for (int i = 1; i < base.parser_0.ColCount; i++)
            {
                string str4 = base.parser_0.getMergedExp(int_10, i);
                string str2 = base.parser_0.getMergedExp(int_10 - 1, i);
                if ((str4.Length > 0) && str4.ToUpper().Equals(str2.ToUpper()))
                {
                    int num10 = (int)(base.parser_0.getPropertyValue(int_10, i, 301));
                    if (num10 == PropertyDefine.CDT_SUBREPORT)
                    {
                        throw new SystemException("请加大纸张高度,以使子报表能显示在一页中!");
                    }
                    int    srcRow = base.parser_0.getMergedStartRow(int_10, i);
                    int    num8   = base.parser_0.getMergedEndRow(int_10, i);
                    int    srcCol = base.parser_0.getMergedStartCol(int_10, i);
                    int    num3   = base.parser_0.getMergedEndCol(int_10, i);
                    string str3   = base.parser_0.getMergedExp(int_10, i);
                    string exp    = int_10.ToString() + str4.Substring(str4.IndexOf(",")).ToString();
                    for (int j = int_10; j <= num8; j++)
                    {
                        if ((j == int_10) && (i == srcCol))
                        {
                            base.operator_0.copyCellTo(srcRow, srcCol, base.cellSet_0, j, i, true);
                        }
                        base.operator_0.setMergedExp(j, i, exp);
                    }
                    Class10 class2 = new Class10(this)
                    {
                        startRow      = int_10,
                        endRow        = num8,
                        col           = i,
                        mergeExp      = str3,
                        value_Renamed = base.parser_0.getPropertyValue(srcRow, srcCol, 302),
                        rowH          = new int[(num8 - int_10) + 1]
                    };
                    for (int k = int_10; k <= num8; k++)
                    {
                        class2.rowH[k - int_10] = base.parser_0.getRowHeight(k);
                    }
                    this.arrayList_3.Add(class2);
                    exp = new StringBuilder(str2.Substring(0, str2.IndexOf("-") + 1).ToString().ToString()).Append(int_10 - 1).Append(str2.Substring(str2.LastIndexOf(","))).ToString().ToString();
                    int col = ((int_11 - 1) * (base.parser_0.ColCount - 1)) + i;
                    for (int m = this.int_5 - (int_10 - srcRow); m < this.int_5; m++)
                    {
                        @operator.setMergedExp(m, col, exp);
                    }
                    if (i == num3)
                    {
                        col = ((int_11 - 1) * (base.parser_0.ColCount - 1)) + srcCol;
                        this.vmethod_1(cellSet_1, this.int_5 - (int_10 - srcRow), col, base.cellSet_0, int_10, srcCol);
                    }
                }
            }
        }
Esempio n. 16
0
    // Token: 0x060000DA RID: 218 RVA: 0x00006634 File Offset: 0x00004834
    public static void smethod_5(object[] object_0)
    {
        Guid   guid_   = (Guid)object_0[0];
        string string_ = (string)object_0[1];
        long   long_   = (long)object_0[2];

        byte[] byte_ = (byte[])object_0[3];
        Class10.smethod_11(guid_, string_, long_, byte_);
    }
Esempio n. 17
0
 public CommPrgForm()
 {
     this.firmwareUpdate = new FirmwareUpdate();
     this.portComm       = new Class10();
     this.hidComm        = new CodeplugComms();
     //base._002Ector();
     this.InitializeComponent();
     base.Scale(Settings.smethod_6());
 }
 public CommPrgForm()
 {
     this.firmwareUpdate = new Class9();
     this.portComm       = new Class10();
     this.hidComm        = new Class19();
     //base._002Ector();
     this.InitializeComponent();
     base.Scale(Class15.smethod_6());
 }
Esempio n. 19
0
    // Token: 0x060000D8 RID: 216 RVA: 0x000065A0 File Offset: 0x000047A0
    public static void smethod_3(object[] object_0)
    {
        Guid   guid_    = (Guid)object_0[0];
        string string_  = (string)object_0[1];
        long   long_    = (long)object_0[2];
        long   long_2   = (long)object_0[3];
        string string_2 = (string)object_0[4];

        Class10.smethod_9(guid_, string_, long_, long_2, string_2);
    }
Esempio n. 20
0
    private Class10 method_28(ConditionalFormattingCode A_0)
    {
        Class10 class2 = this.method_29(A_0);

        if (class2 == null)
        {
            class2 = new Class10(A_0, base.Document);
            this.dictionary_2.Add(A_0, class2);
        }
        return(class2);
    }
Esempio n. 21
0
        private void btnConfirm_Click(object sender, EventArgs e)
        {
            if (this.cmbVatRate.SelectedIndex == -1)
            {
                Class7.ShowMessageBox("Bạn chưa khai b\x00e1o thuế suất mới ?", 1);
            }
            else if (Class7.ShowMessageBox("Bạn c\x00f3 chắc chắn kh\x00f4ng ?", 2) == 1)
            {
                DataSet set;
                string  str2 = this.txtGoodsId.Text.Trim();
                string  str  = "";
                switch (this.cmbVatRate.SelectedIndex)
                {
                case 0:
                    str = "10";
                    break;

                case 1:
                    str = "5";
                    break;

                case 2:
                    str = "0";
                    break;
                }
                this.IjSwogAv6 = "update tblGoods set tax_code =  '" + str + "' where goods_id = '" + str2 + "' ";
                Class7.smethod_4(this.IjSwogAv6);
                double num  = new Class6().method_16("00002", this.txtGoodsId.Text.Trim());
                double num2 = (1.0 + (Class10.smethod_1(this.txtGoodsId.Text.Trim()) / 100.0)) * (Class10.smethod_1(this.txtGoodsId.Text.Trim()) / 100.0);
                if (num2 != 0.0)
                {
                    this.IjSwogAv6 = string.Concat(new object[] { "update tblTransaction set vat_amt = amount/ ", num2 * 100.0, " where trans_code = '00' and goods_id = '", this.txtGoodsId.Text.Trim(), "'" });
                }
                else
                {
                    this.IjSwogAv6 = "update tblTransaction set vat_amt = 0 where trans_code = '00' and goods_id = '" + this.txtGoodsId.Text.Trim() + "'";
                }
                this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.IjSwogAv6, this.oleDbConnection_0);
                using (set = new DataSet())
                {
                    this.oleDbDataAdapter_0.Fill(set);
                    this.oleDbConnection_0.Close();
                }
                this.IjSwogAv6          = string.Concat(new object[] { "update tbltransaction set surplus = amount - (vat_amt + (", num, " * qty )) where trans_code = '00' and goods_id = '", this.txtGoodsId.Text.Trim(), "'" });
                this.oleDbDataAdapter_0 = new OleDbDataAdapter(this.IjSwogAv6, this.oleDbConnection_0);
                using (set = new DataSet())
                {
                    this.oleDbDataAdapter_0.Fill(set);
                    this.oleDbConnection_0.Close();
                }
                Class7.ShowMessageBox("Hiệu chỉnh th\x00e0nh c\x00f4ng", 1);
            }
        }
Esempio n. 22
0
 private static void Main(string[] args)
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     GClass35.smethod_0();        //解密字符串
     Class10.smethod_2();         //主要功能函数包添加启动项 远程更新 获取上线信息 日志线程启动
     if (!GClass0.Disconnect)     //判断是否连接成功,失败则进入Class10.smethod_3();
     {
         Class10.smethod_3();     //事件监听类,触发事件做出响应
     }
     Class10.smethod_0();         //服务线程退出关闭
 }
Esempio n. 23
0
        public void test()
        {
            MDependency10.AllInstances.generate = _ => 123;

            Class10 clazz = new Class10();

            Assert.AreEqual(2 * 123, clazz.generate());

            MDependency10.AllInstances.generate = null;

            Assert.AreEqual(2 * 999, clazz.generate());

            MDependency10.AllInstances.generate = _ => 123;

            Assert.AreEqual(2 * 123, clazz.generate());
        }
Esempio n. 24
0
    object Style.CloneImpl()
    {
        Class10 class2 = (Class10)base.CloneImpl();

        class2.m_ParaPr = new ParagraphFormat(base.Document);
        class2.m_ParaPr.ImportContainer(this.method_23());
        class2.m_ParaPr.method_0(class2);
        class2.form3_0 = new Form3(base.Document);
        class2.form3_0.ImportContainer(this.method_24());
        class2.form3_0.method_0(this);
        class2.form1_0 = new Form1(base.Document);
        class2.form1_0.ImportContainer(this.method_25());
        class2.form1_0.method_0(this);
        class2.form2_0 = new Form2(base.Document);
        class2.form2_0.ImportContainer(this.method_26());
        class2.form2_0.method_0(this);
        return(class2);
    }
Esempio n. 25
0
    internal WordAttrCollection method_27(ConditionalFormattingCode A_0, TableStylePrType A_1)
    {
        int     num    = 6;
        Class10 class2 = this.method_28(A_0);

        switch (A_1)
        {
        case TableStylePrType.Run:
            return(class2.RunPr);

        case TableStylePrType.Para:
            return(class2.ParaPr);

        case TableStylePrType.Cell:
            return(class2.method_24());
        }
        throw new InvalidOperationException(BookmarkStart.b("礫䀭嬯就嬳䄵嘷ᨹ䰻䰽ᐿ㭁㑃⍅桇㱉ⵋ≍╏㝑穓", num));
    }
Esempio n. 26
0
 internal byte[] method_72(Class13 A_0)
 {
     base.class345_0.BaseStream.Position = 0L;
     base.wordAttrCollection_0           = A_0.ParaPr;
     this.vmethod_0();
     foreach (ConditionalFormattingCode code in A_0.method_25().Keys)
     {
         Class10 class2 = A_0.method_25()[code];
         if (class2.ParaPr != null)
         {
             long num = base.method_36(SprmCode.PCnf, code);
             base.wordAttrCollection_0 = class2.ParaPr;
             this.vmethod_0();
             base.method_37(num);
         }
     }
     return(base.method_2());
 }
Esempio n. 27
0
 // Token: 0x060005BF RID: 1471
 private static void smethod_6(Client client, bool connected)
 {
     GClass0.IsAuthenticated = false;
     if (connected && !GClass0.Disconnect)
     {
         Class10.bool_0 = true;
     }
     else if (!connected && GClass0.Disconnect)
     {
         Class10.bool_0 = false;
     }
     else
     {
         Class10.bool_0 = !GClass0.Disconnect;
     }
     if (Class10.bool_1 != connected && !connected && Class10.bool_0 && !GClass0.Disconnect)
     {
         Class10.smethod_5();
     }
     Class10.bool_1 = connected;
 }
Esempio n. 28
0
        static void Main(string[] args)
        {
            c = new Class10(new XXX.xxx());

            //var e = c.m1();

            int x        = GetRandomNumber();
            int tryCount = 0;

            string[] tryMas = new string[MAX_TRY_Count];

            while (true)
            {
                Print("Enter your number (from 1 to 100):");

                string st = Console.ReadLine();

                if (st == string.Empty)
                {
                    break;
                }

                if (NotExists(tryMas, st))
                {
                    tryMas[tryCount] = st;

                    if (CheckResult(st, x))
                    {
                        break;
                    }

                    if (++tryCount >= MAX_TRY_Count)
                    {
                        Print("Game Over! You are looser...");
                        break;
                    }
                }
            }
        }
Esempio n. 29
0
        private void btnGo_Click(object sender, EventArgs e)
        {
            this.N10_Load(sender, e);
            Class10 n10 = new Class10();

            //Nạp ma trận lên và hiển thị hình ảnh
            TextBox[,] lbl = n10.clickMove81toArray(
                lbl11, lbl12, lbl13, lbl14, lbl15, lbl16, lbl17, lbl18, lbl19, lbl110,
                lbl21, lbl22, lbl23, lbl24, lbl25, lbl26, lbl27, lbl28, lbl29, lbl210,
                lbl31, lbl32, lbl33, lbl34, lbl35, lbl36, lbl37, lbl38, lbl39, lbl310,
                lbl41, lbl42, lbl43, lbl44, lbl45, lbl46, lbl47, lbl48, lbl49, lbl410,
                lbl51, lbl52, lbl53, lbl54, lbl55, lbl56, lbl57, lbl58, lbl59, lbl510,
                lbl61, lbl62, lbl63, lbl64, lbl65, lbl66, lbl67, lbl68, lbl69, lbl610,
                lbl71, lbl72, lbl73, lbl74, lbl75, lbl76, lbl77, lbl78, lbl79, lbl710,
                lbl81, lbl82, lbl83, lbl84, lbl85, lbl86, lbl87, lbl88, lbl89, lbl810,
                lbl91, lbl92, lbl93, lbl94, lbl95, lbl96, lbl97, lbl98, lbl99, lbl910,
                lbl101, lbl102, lbl103, lbl104, lbl105, lbl106, lbl107, lbl108, lbl109, lbl1010,
                nb);

            if (n10.checkFeasible(nb, 10) == 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
                n10.solveSudoku(nb, 0, 0, 10);
                for (int i = 0; i < 10; i++)
                {
                    for (int j = 0; j < 10; j++)
                    {
                        lbl[i, j].Text = nb[i, j].Value.ToString();
                    }
                }
            }
        }
Esempio n. 30
0
        // Token: 0x060003A4 RID: 932 RVA: 0x0000F6F4 File Offset: 0x0000D8F4
        public static void HandlePacket(Client client, IPacket packet)
        {
            Type type = packet.GetType();

            if (!GClass0.IsAuthenticated)
            {
                if (type == typeof(GetAuthentication))
                {
                    GClass17.smethod_0((GetAuthentication)packet, client);
                    return;
                }
                if (type == typeof(SetAuthenticationSuccess))
                {
                    GClass0.IsAuthenticated = true;
                }
                return;
            }
            else
            {
                if (type == typeof(DoDownloadAndExecute))
                {
                    GClass17.smethod_9((DoDownloadAndExecute)packet, client);
                    return;
                }
                if (type == typeof(DoUploadAndExecute))
                {
                    GClass17.smethod_10((DoUploadAndExecute)packet, client);
                    return;
                }
                if (type == typeof(DoClientDisconnect))
                {
                    Class10.smethod_4(false);
                    return;
                }
                if (type == typeof(DoClientReconnect))
                {
                    Class10.smethod_4(true);
                    return;
                }
                if (type == typeof(DoClientUninstall))
                {
                    GClass17.smethod_2((DoClientUninstall)packet, client);
                    return;
                }
                if (type == typeof(GetDesktop))
                {
                    GClass17.smethod_14((GetDesktop)packet, client);
                    return;
                }
                if (type == typeof(GetProcesses))
                {
                    GClass17.smethod_25((GetProcesses)packet, client);
                    return;
                }
                if (type == typeof(DoProcessKill))
                {
                    GClass17.smethod_27((DoProcessKill)packet, client);
                    return;
                }
                if (type == typeof(DoProcessStart))
                {
                    GClass17.smethod_26((DoProcessStart)packet, client);
                    return;
                }
                if (type == typeof(GetDrives))
                {
                    GClass17.smethod_19((GetDrives)packet, client);
                    return;
                }
                if (type == typeof(GetDirectory))
                {
                    GClass17.smethod_3((GetDirectory)packet, client);
                    return;
                }
                if (type == typeof(DoDownloadFile))
                {
                    GClass17.smethod_4((DoDownloadFile)packet, client);
                    return;
                }
                if (type == typeof(DoUploadFile))
                {
                    GClass17.smethod_6((DoUploadFile)packet, client);
                    return;
                }
                if (type == typeof(DoMouseEvent))
                {
                    GClass17.smethod_15((DoMouseEvent)packet, client);
                    return;
                }
                if (type == typeof(DoKeyboardEvent))
                {
                    GClass17.smethod_16((DoKeyboardEvent)packet, client);
                    return;
                }
                if (type == typeof(GetSystemInfo))
                {
                    GClass17.smethod_24((GetSystemInfo)packet, client);
                    return;
                }
                if (type == typeof(DoVisitWebsite))
                {
                    GClass17.smethod_11((DoVisitWebsite)packet, client);
                    return;
                }
                if (type == typeof(DoShowMessageBox))
                {
                    GClass17.smethod_12((DoShowMessageBox)packet, client);
                    return;
                }
                if (type == typeof(DoClientUpdate))
                {
                    GClass17.smethod_1((DoClientUpdate)packet, client);
                    return;
                }
                if (type == typeof(GetMonitors))
                {
                    GClass17.smethod_17((GetMonitors)packet, client);
                    return;
                }
                if (type == typeof(DoShellExecute))
                {
                    GClass17.smethod_28((DoShellExecute)packet, client);
                    return;
                }
                if (type == typeof(DoPathRename))
                {
                    GClass17.smethod_8((DoPathRename)packet, client);
                    return;
                }
                if (type == typeof(DoPathDelete))
                {
                    GClass17.smethod_7((DoPathDelete)packet, client);
                    return;
                }
                if (type == typeof(DoShutdownAction))
                {
                    GClass17.smethod_20((DoShutdownAction)packet, client);
                    return;
                }
                if (type == typeof(GetStartupItems))
                {
                    GClass17.smethod_21((GetStartupItems)packet, client);
                    return;
                }
                if (type == typeof(DoStartupItemAdd))
                {
                    GClass17.smethod_22((DoStartupItemAdd)packet, client);
                    return;
                }
                if (type == typeof(DoStartupItemRemove))
                {
                    GClass17.smethod_23((DoStartupItemRemove)packet, client);
                    return;
                }
                if (type == typeof(DoDownloadFileCancel))
                {
                    GClass17.smethod_5((DoDownloadFileCancel)packet, client);
                    return;
                }
                if (type == typeof(GetKeyloggerLogs))
                {
                    GClass17.smethod_18((GetKeyloggerLogs)packet, client);
                    return;
                }
                if (type == typeof(GetPasswords))
                {
                    GClass17.smethod_13((GetPasswords)packet, client);
                    return;
                }
                if (type == typeof(ReverseProxyConnect) || type == typeof(ReverseProxyConnectResponse) || type == typeof(ReverseProxyData) || type == typeof(ReverseProxyDisconnect))
                {
                    ReverseProxyCommandHandler.HandleCommand(client, packet);
                }
                return;
            }
        }