예제 #1
0
파일: Login.cs 프로젝트: fatrolls/AOBot
        private void method_14(object sender, EventArgs e)
        {
            buttonX_0.Enabled = false;
            if (gclass43_0 == null)
            {
                goto label_1;
            }
            if (gclass43_0.get_State() == 0)
            {
                goto label_1;
            }
label_1:
            string s = vmethod_44().SelectedItem.ToString();

            if (Operators.CompareString(s, "INTERNATIONAL", false) != 0)
            {
                goto label_2;
            }
            string_0 = "INT";
            goto label_3;
label_2:
            if (Operators.CompareString(s, "EUROPE", false) == 0)
            {
                string_0 = "EU";
            }
            else if (Operators.CompareString(s, "RUSSIA", false) == 0)
            {
                string_0 = "RU";
            }
            else if (Operators.CompareString(s, "INDONESIA", false) == 0)
            {
                string_0 = "IND";
            }
            else if (Operators.CompareString(s, "JAPAN", false) == 0)
            {
                string_0 = "JAO";
            }
label_3:
            if (vmethod_42().Checked)
            {
                GClass5.smethod_4(Login.string_1, "Credentials", "Username", vmethod_56().Text);
                GClass5.smethod_4(Login.string_1, "Credentials", "Password", vmethod_54().Text);
                GClass5.smethod_4(Login.string_1, "Credentials", "Region", vmethod_44().SelectedItem.ToString());
                GClass5.smethod_4(Login.string_1, "Credentials", "Save Credentials", Conversions.ToString(vmethod_42().Checked));
            }
            Thread thread = new Thread(new ThreadStart(method_2));

            thread.IsBackground = true;
            thread.Start();
            vmethod_36().Enabled = true;
        }
예제 #2
0
        private void method_3(object sender, EventArgs e)
        {
            string s = GClass5.smethod_2(string_1, vmethod_20().Text);

            GClass14.GClass19 gclass19_1 = Enumerable.FirstOrDefault <GClass14.GClass19>(gclass14_0.list_4, new Func <GClass14.GClass19, bool>(method_7));
            if ((gclass19_1 == null) && (Operators.CompareString(s, "", false) == 0))
            {
                GClass14.GClass19 gclass19_2 = new GClass14.GClass19();
                long l = gclass22_0.method_3(checked ((int)bot_0.gclass26_0.long_46), 2);
                gclass19_2.method_1(vmethod_20().Text);
                gclass19_2.method_3(l);
                gclass19_2.method_5(Conversions.ToLong(vmethod_24().Text));
                gclass19_2.method_7(vmethod_22().Text);
                gclass14_0.list_4.Add(gclass19_2);
                GClass5.smethod_4(string_1, vmethod_20().Text, "Id", Conversions.ToString(l));
                GClass5.smethod_4(string_1, vmethod_20().Text, "X", vmethod_24().Text);
                GClass5.smethod_4(string_1, vmethod_20().Text, "Y", vmethod_22().Text + "\r\n");
                vmethod_10().Items.Add(vmethod_20().Text);
            }
        }
예제 #3
0
파일: Login.cs 프로젝트: fatrolls/AOBot
 private void method_12()
 {
     try
     {
         if (!File.Exists(Login.string_1))
         {
             GClass5.smethod_4(Login.string_1, "Credentials", "Username", "");
             GClass5.smethod_4(Login.string_1, "Credentials", "Password", "");
             GClass5.smethod_4(Login.string_1, "Credentials", "Region", "INTERNATIONAL");
             GClass5.smethod_4(Login.string_1, "Credentials", "Save Credentials", "False");
         }
         vmethod_56().Text    = GClass5.smethod_1(Login.string_1, "Credentials", "Username");
         vmethod_54().Text    = GClass5.smethod_1(Login.string_1, "Credentials", "Password");
         vmethod_44().Text    = GClass5.smethod_1(Login.string_1, "Credentials", "Region");
         vmethod_42().Checked = Conversions.ToBoolean(GClass5.smethod_1(Login.string_1, "Credentials", "Save Credentials"));
     }
     catch (Exception e)
     {
         ProjectData.SetProjectError(e);
         Interaction.MsgBox(e.Message, MsgBoxStyle.ApplicationModal, null);
         ProjectData.ClearProjectError();
     }
 }