Beispiel #1
0
        private void FormXchargeTokenTool_Load(object sender, EventArgs e)
        {
            CardList          = CreditCards.GetCreditCardsWithTokens();
            textTotal.Text    = CardList.Count.ToString();
            textVerified.Text = "0";
            textInvalid.Text  = "0";
            Program prog = Programs.GetCur(ProgramName.Xcharge);
            string  path = Programs.GetProgramPath(prog);

            if (prog == null || !prog.Enabled)
            {
                MsgBox.Show(this, "X-Charge entry is not set up.");               //should never happen
                butCheck.Visible = false;
                return;
            }
            if (!File.Exists(path))
            {
                MsgBox.Show(this, "X-Charge path is not valid.");
                butCheck.Visible = false;
                return;
            }
        }