private void Photo_Click(object sender, EventArgs e)
        {
            Photo.ForeColor = Color.Black;

            if (Photo.Text == "Upload a file")
            {
                Photo.Clear();
            }
            if (SName.Text == "")
            {
                SName.Text      = "Name";
                SName.ForeColor = Color.Silver;
            }
            if (Surname.Text == "")
            {
                Surname.Text      = "Surname";
                Surname.ForeColor = Color.Silver;
            }
            if (Email.Text == "")
            {
                Email.Text      = "Email";
                Email.ForeColor = Color.Silver;
            }
            if (Password.Text == "")
            {
                Password.Text          = "Password";
                Password.ForeColor     = Color.Silver;
                progressBar.Value      = 0;
                lblPasswordStrong.Text = "";
            }
        }
Beispiel #2
0
    // [KSPEvent(name = "TransmitData", guiName = "Transmit data", active = true, guiActive = true, requireFullControl = true)]
    private void TransmitData()
    {
        if (progress < 100)
        {
            SetStatus("Not enough data!");
            return;
        }

        photo.Clear();
        progress  = 0;
        reference = Vector3.zero;
        DeployExperiment();
    }