Exemplo n.º 1
0
        //
        private void btnFit_Click(object sender, EventArgs e)
        {
            //获取值,便于传递后后者
            string str = this.richTextBox1.Text.Trim();
            if (str == "")
            {
                num = 100;
            }
            else
            {
                num=float.Parse(str);
            }

            FitForm ff = new FitForm();//给窗体赋值
            ff.Owner = this;//向窗口ff传递值得关键
            ff.Show();//显示拟合窗体
        }
Exemplo n.º 2
0
        //
        private void btnFit_Click(object sender, EventArgs e)
        {
            //获取值,便于传递后后者
            string str = this.richTextBox1.Text.Trim();

            if (str == "")
            {
                num = 100;
            }
            else
            {
                num = float.Parse(str);
            }

            FitForm ff = new FitForm(); //给窗体赋值

            ff.Owner = this;            //向窗口ff传递值得关键
            ff.Show();                  //显示拟合窗体
        }