private void RandomizeAssembly() { asmDescriptionText.Text = WordGen.GenWord(10); asmProductNameText.Text = string.Format("{0}", WordGen.GenWord(2)); asmCopyrightText.Text = string.Format("{0} © {1}", WordGen.GenWord(2), WordGen.GenWord(2)); asmCompanyText.Text = WordGen.GenWord(5); asmVersionText.Text = string.Format("{0}.{1}.{2}.{3}", WordGen.R.Next(1, 20), WordGen.R.Next(0, 30), WordGen.R.Next(0, 99), WordGen.R.Next(0, 99)); }
private void button2_Click(object sender, EventArgs e) { using (SaveFileDialog sfd = new SaveFileDialog()) { sfd.Filter = "Application (.exe)|*.exe"; sfd.FileName = string.Format("{0}.exe", WordGen.GenWord(1)); if (sfd.ShowDialog() == DialogResult.OK) { new Thread(new ThreadStart(() => { Protector p = new Protector(logger); bool success = p.Protect(GetSettings(), sfd.FileName); })).Start(); } } }
private void RandomizeInstall() { startupNameText.Text = WordGen.GenWord(5); processNameText.Text = string.Format("{0}.exe", WordGen.GenWord(2)); }