private void boundaryTimeBtn_Click(object sender, EventArgs e)
        {
            if (!ConvertBoundaryTimeNumber())
            {
                return;
            }
            if (p.boundaryTime != null && p.boundaryTime.GetLength(0) != p.boundaryTimeNumber)
            {   //邊界時間數目已被邊更
                if (DialogResult.OK == MessageBox.Show("改變過邊界時間數目會清除已輸入的邊界時間,請確認?", "確認", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation))
                {
                    p.boundaryTime = null;
                }
                else
                {
                    boundaryTimeNumberTxt.Text = p.boundaryTime.GetLength(0).ToString();
                    return;
                }
            }

            TableInputForm form = new TableInputForm();

            form.SetFormMode(boundaryTimeBtn.Text, 1, p.boundaryTimeNumber, "邊界時間數目", "時間 T(sec)", "",
                             TableInputForm.InputFormType.BoundaryTime, 90, 90, true, true, false, p.boundaryTime);
            DialogResult r = form.ShowDialog();

            if (DialogResult.OK == r)
            {
                p.boundaryTime = (double[])form.BoundaryTimeData().Clone();
            }
        }
        private void boundaryTimeBtn_Click(object sender, EventArgs e)
        {
            if (!ConvertBoundaryTimeNumber())
            {
                return;
            }
            if(p.boundaryTime != null && p.boundaryTime.GetLength(0) != p.boundaryTimeNumber)
            {   //邊界時間數目已被邊更
                if (DialogResult.OK == MessageBox.Show("改變過邊界時間數目會清除已輸入的邊界時間,請確認?", "確認", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation))
                {
                    p.boundaryTime = null;
                }
                else
                {
                    boundaryTimeNumberTxt.Text = p.boundaryTime.GetLength(0).ToString();
                    return;
                }
            }

            TableInputForm form = new TableInputForm();
            form.SetFormMode(boundaryTimeBtn.Text, 1, p.boundaryTimeNumber, "邊界時間數目", "時間 T(sec)", "",
                TableInputForm.InputFormType.BoundaryTime, 90, 90, true, true, false, p.boundaryTime);
            DialogResult r = form.ShowDialog();
            if (DialogResult.OK == r)
            {
                p.boundaryTime = (double[])form.BoundaryTimeData().Clone();
            }
        }