Пример #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");
            }
        }
Пример #2
0
        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();
                }
            }
        }
Пример #3
0
 public void UpgradeOnline()
 {
     MasterConfirm.Show();
 }