コード例 #1
0
        /// <summary>
        ///     修改按钮响应
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsBtnModify_Click(object sender, EventArgs e)
        {
            var tunnelHcForm = new TunnelHcEntering(((WorkingFaceHc)gridView1.GetFocusedRow()).WorkingFace);

            if (DialogResult.OK == tunnelHcForm.ShowDialog())
            {
                RefreshData();
            }
        }
コード例 #2
0
        /// <summary>
        ///     添加按钮响应
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsBtnAdd_Click(object sender, EventArgs e)
        {
            //TunnelHCEntering tunnelHCForm = new TunnelHCEntering();
            var tunnelHcForm = new TunnelHcEntering();

            if (DialogResult.OK == tunnelHcForm.ShowDialog())
            {
                RefreshData();
            }
        }