예제 #1
0
 public Form1()
 {
     InitializeComponent();
     NameBox.Hide();
     NameInput.Hide();
     CompanyBox.Hide();
     CompanyInput.Hide();
     PurposeBox.Hide();
     PurposeInput.Hide();
     EmailBox.Hide();
     EmailInput.Hide();
     SubmitDetails.Hide();
     InstallButton.Hide();
     PercentComplete.Hide();
     InstallProgressBar.Hide();
 }
예제 #2
0
        // End of functions by Windows Forms

        private void SubmitDetails_Click(object sender, EventArgs e)
        {
            NameBox.Hide();
            NameInput.Hide();
            CompanyBox.Hide();
            CompanyInput.Hide();
            PurposeBox.Hide();
            PurposeInput.Hide();
            EmailBox.Hide();
            EmailInput.Hide();
            SubmitDetails.Hide();
            label1.Text = "Installation";
            label2.Text = "Click \"Install\" To install...";
            InstallButton.Show();

            string DetailsEncoded = EncodeUserDetails();

            System.IO.File.WriteAllText(@".\UserDetails.txt", DetailsEncoded);
        }