예제 #1
0
        //custom generate button
        private void button7_Click(object sender, EventArgs e)
        {
            int days      = Convert.ToInt32(daysNum.Value);
            int months    = Convert.ToInt32(MonthsNum.Value);
            int years     = Convert.ToInt32(YearsNum.Value);
            int totalDays = 0;

            totalDays += days;
            if (months > 0)
            {
                totalDays += (months * 30);
            }
            if (years > 0)
            {
                totalDays += (years * 365);
            }

            DB_Helper.Generate_Token(totalDays);
        }
예제 #2
0
 //genereate 3 month
 private void button15_Click(object sender, EventArgs e)
 {
     DB_Helper.Generate_Token(90, Convert.ToInt32(tokenNum.Value));
 }
예제 #3
0
 //genrate trial token
 private void button9_Click(object sender, EventArgs e)
 {
     DB_Helper.Generate_Token(1, textBox2.Text);
 }