form2.cs

来自「ZNetAdv配置函数库,以太网函数,单片机使用」· CS 代码 · 共 43 行

CS
43
字号
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication1
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private int m_ok = 0;
        private string m_strPwd;

        public int isOK()
        {
            return m_ok;
        }
        
        private void button1_Click(object sender, EventArgs e)
        {
            m_ok = 1;
            m_strPwd = textBox1.Text;
            Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            m_ok = 0;
            Close();
        }
        public string GetPwd()
        {
            return m_strPwd;
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?