Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DialogResult result = MasterConfirm.Show();

            if (result == DialogResult.OK)
            {
                MessageBox.Show("done");
            }
            else
            {
                MessageBox.Show("none");
            }
        }
        public void UpdrageOffline()
        {
            if (MasterConfirm.Show() == DialogResult.OK)
            {
                string[] lines = File.ReadAllLines(filepath);

                string licHash = DateTime.Now.ToString("dd/MM/yyyy") + "," + licends + "," + txtoffsoftId.Text.Substring(0, 18) + "," + txtoffownername.Text + "," + txtoffschoolname.Text + "," + "False";

                lines[7] = "License Hash:" + ClsTripleDES.DataEncrypt(licHash);

                File.WriteAllLines(filepath, lines);

                MessageBox.Show("Program Updated Successfully until " + licends + "!", "License Management System", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);


                txtofflicstarts.Text = "";

                txtofflicends.Text = "";

                txtoffsoftId.Text = "";

                txtoffownername.Text = "";

                txtoffschoolname.Text = "";

                txtfilename.Text = "";

                done = false;

                txtoffdays.Text = "";

                txtoffmonths.Text = "";

                txtoffdays.Text = "";

                if (openFileDialog.FileName != null)
                {
                    openFileDialog.Dispose();
                }
            }
        }
 public void UpgradeOnline()
 {
     MasterConfirm.Show();
 }