⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form2.cs

📁 ZNetAdv配置函数库,以太网函数,单片机使用
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -