예제 #1
0
파일: Form1.cs 프로젝트: Olavz/byepass
        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.");
            }
        }
예제 #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.");
            }
        }