Beispiel #1
0
        /// <summary>
        /// 类变量数组记录初始值
        /// </summary>
        /// <param name="a"></param>
        /// <param name="f"></param>
        public Form1(string[] a, Form0 f)//类变量数组记录初始值,方便修改完后对比修改的哪一条
        {
            InitializeComponent();
            for (int i = 0; i < 6; i++)
            {
                str[i] = a[i];
            }
            textBox1.Text = str[0];
            textBox2.Text = str[1];
            textBox3.Text = str[2];
            textBox4.Text = str[3];
            textBox5.Text = str[4];
            textBox6.Text = str[5];

            button1.Visible = false;//隐藏保存按钮
            form0           = f;
        }
Beispiel #2
0
 //private Form0 form0;
 public Form1(Form0 f)
 {
     InitializeComponent();
     button3.Visible = false;//隐藏修改按钮
     form0           = f;
 }