Exemplo n.º 1
0
        private void btnSetPin_Click(object sender, EventArgs e)
        {
            PinPrompt pp = new PinPrompt();
            pp.ShowDialog();
            String pin = pp.getPin();

            if(pin.Length > 0)
            {
                SavePin(pin);
                btnSetPin.Text = "New pin was saved!";
                Log("New pin was saved!");
            } else
            {
                btnSetPin.Text = "No pin was saved.";
                Log("No pin specified. Pin could not be saved.");
            }
        }
Exemplo n.º 2
0
        private void btnSetPin_Click(object sender, EventArgs e)
        {
            PinPrompt pp = new PinPrompt();

            pp.ShowDialog();
            String pin = pp.getPin();

            if (pin.Length > 0)
            {
                SavePin(pin);
                btnSetPin.Text = "New pin was saved!";
                Log("New pin was saved!");
            }
            else
            {
                btnSetPin.Text = "No pin was saved.";
                Log("No pin specified. Pin could not be saved.");
            }
        }