示例#1
0
        //CPP确定事件,触发传送CPP的值
        private void button1_Click(object sender, EventArgs e)
        {
            CppEventArgs args = new CppEventArgs()
            {
                CPP = cpp
            };

            GetCPPEvent?.Invoke(this, args);
            Hide();
        }
        //更新CPP事件方法
        void UpdateCPP(object sender, CppEventArgs e)
        {
            try
            {
                //CPP赋值
                evaluationReportClass.SummaryDT.Rows[0]["CPP"] = e.CPP;

                (sender as CPPCalculate)?.Close();
            }
            catch (Exception)
            {
            }
        }