Пример #1
0
        private string GetPin(string pinCaption, string pinPrompt)
        {
            m_PinForm = (PinForm)User32Windows.GetForm(m_PinForm, typeof(PinForm));
            m_PinForm.StartPosition = FormStartPosition.Manual;
            if (this.Visible)
            {
                m_PinForm.DesktopLocation = this.DesktopLocation;
            }
            m_PinForm.Text   = pinCaption;
            m_PinForm.Prompt = pinPrompt;
            m_PinForm.Pin    = "";

            DialogResult result = m_PinForm.ShowDialog();

            if (result != DialogResult.OK)
            {
                return("");
            }

            return(m_PinForm.Pin);
        }