Exemplo n.º 1
0
 private void PIL_DoubleClick(object sender, EventArgs e)
 {
     foreach (GameAccount acc in AutoLogin.GetAccs())
     {
         if (acc.name.Equals(PIL.SelectedItems[0].Text))
         {
             AutoLogin ALI = new AutoLogin(acc.id);
             ALI.Force = false;
             ALI.ThreadRun();
         }
     }
 }
Exemplo n.º 2
0
 private void AccEdit_Click(object sender, EventArgs e)
 {
     if (PIL.SelectedItems.Count == 0)
     {
         return;
     }
     foreach (GameAccount acc in AutoLogin.GetAccs())
     {
         if (acc.name.Equals(PIL.SelectedItems[0].Text))
         {
             UCL.ReplaceUC(UCAL.UCID, new UCLoginEdit(acc));
         }
     }
 }
Exemplo n.º 3
0
        public void DrawAccs()
        {
            ImageList IL = new ImageList();

            IL.ImageSize       = new Size(64, 64);
            IL.ColorDepth      = ColorDepth.Depth32Bit;
            PIL.LargeImageList = IL;
            PIL.Items.Clear();
            foreach (GameAccount acc in AutoLogin.GetAccs())
            {
                Image ii = Image.FromFile(AppDomain.CurrentDomain.BaseDirectory + "icons\\" + acc.icon);
                IL.Images.Add(LU.ScaleImage(ii, 64, 64));
                ListViewItem item = new ListViewItem();
                item.ImageIndex = IL.Images.Count - 1;
                item.Text       = acc.name;
                PIL.Items.Add(item);
            }
        }
Exemplo n.º 4
0
 private void AddButton_Click(object sender, EventArgs e)
 {
     try
     {
         LoginTableAdapter LTA   = new LoginTableAdapter();
         String            LGN_R = LGN.Text.Length == 0 ? LGN_DEF : LGN.Text;
         String            PSW_R = PSW.Text.Length == 0 ? PSW_DEF : PSW.Text;
         String            DES_R = DES.Text.Length == 0 ? DES_DEF : DES.Text;
         int PNU_R = PNU.Text.Length == 0 ? 1 : Int32.Parse(PNU.Text);
         foreach (GameAccount acc in AutoLogin.GetAccs())
         {
             if (acc.name.Equals(DES_R))
             {
                 return;
             }
         }
         LTA.AddLogin(LGN_R, PSW_R, DES_R, PNU_R, ICON);
     }
     catch { }
     UCL.ReturnUC(UCAL.UCID);
     FL.UCAL.Instance.DrawAccs();
 }