Beispiel #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            counter = int.Parse(SavingPlugin.GetVariable("counter", TypeCode.Int16, "awwdad").ToString());
            counter++;
            SavingPlugin.SaveVariable("counter", TypeCode.Int16, counter, "awwdad");

            string randomname = "code" + counter;

            Console.WriteLine(counter);
            SavingPlugin.SaveVariable(randomname, TypeCode.String, RandomString(6), "awwdad");
            // write lines of text to the file
            MessageBox.Show(SavingPlugin.GetVariable(randomname, TypeCode.String, "awwdad").ToString());
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                counters = int.Parse(SavingPlugin.GetVariable("counter", TypeCode.Int16, "awwdad").ToString());
            }
            catch
            {
                counters = 0;
                SavingPlugin.SaveVariable("counter", TypeCode.Int16, counters, "awwdad");
            }
            counters++;
            SavingPlugin.SaveVariable("counter", TypeCode.Int16, counters, "awwdad");

            string randomname = "code" + counters;

            SavingPlugin.SaveVariable(randomname, TypeCode.String, RandomString(6), "awwdad");
            // write lines of text to the file
            MessageBox.Show(SavingPlugin.GetVariable(randomname, TypeCode.String, "awwdad").ToString());
        }
Beispiel #3
0
        private void button9_Click(object sender, EventArgs e)
        {
            counter = int.Parse(SavingPlugin.GetVariable("counter", TypeCode.Int16, "awwdad").ToString());

            string varsovia = boxvf.Text;//"YVE4RS";
            int    default1 = 1;

            for (int i = 1; i <= counter; i++)
            {
                randomname = "code" + i;
                try
                {
                    if (varsovia == SavingPlugin.GetVariable(randomname, TypeCode.String, "awwdad").ToString() || varsovia == allowed)
                    {
                        default1          = 0;
                        boxvf.Text        = "";
                        button9.Visible   = false;
                        boxvf.Visible     = false;
                        numevf.Visible    = false;
                        button10.Visible  = true;
                        label4.Visible    = true;
                        label5.Visible    = true;
                        label6.Visible    = true;
                        textBox1.Visible  = true;
                        textBox2.Visible  = true;
                        textBox3.Visible  = true;
                        this.AcceptButton = button10;
                        break;
                    }
                }
                catch { }
            }
            if (default1 == 1)
            {
                MessageBox.Show("Incorect.");
            }
        }