Beispiel #1
0
 private void btnGenKey_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(ShopMS.Properties.Settings.Default.serialMB))
     {
         ShopMS.Properties.Settings.Default.serialMB = Crypto.getSerialMB();
     }
     if (string.Equals(ShopMS.Properties.Settings.Default.serialMB, Crypto.getSerialMB()))
     {
         string password = Crypto.getSerialMB();
         string hint     = Crypto.getSerialPC();
         txtGenKey.Text = Crypto.Encrypt(hint, password);
     }
     else
     {
         MessageBox.Show("Expired!");
     }
 }
Beispiel #2
0
        private void Testing_Load(object sender, EventArgs e)
        {
            //DB.inset().into("EMPLOYEE_POSITION").set("Name", "Mobile App").set("Code", "MA").set("Status", "INACTIVE").run();
            //DB.delete().from("EMPLOYEE_POSITION").where("ID='d7ec8151-9bd0-446f-b486-88f167ee4b98'").run();
            //DB.update("EMPLOYEE_POSITION").set("Code", "WD").where("ID='0930A2BE-FB03-4999-8A03-9407A87261A9'").run();
            //Ctrl.sqlGridView("select * from EMPLOYEE_POSITION", dataGridView1);
            DB db = DB.select("*").from("EMPLOYEE_POSITION");

            Ctrl.sqlGridView(db, dataGridView1);
            //Ctrl.sqlCombo("select ID,Name from EMPLOYEE_POSITION", comboBox1);
            Ctrl.sqlCombo(db, comboBox1);
            string password = "******";
            string hint     = "123456789";

            textBox1.Text = Crypto.Encrypt(hint, password);
            //textBox1.Text = DateTime.Now.ToString();
            //dataGridView1.DataBindings;
        }