コード例 #1
0
        /// <summary>
        ///     添加按钮响应
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsBtnAdd_Click(object sender, EventArgs e)
        {
            var wireInfoForm = new WireInfoEntering();

            if (DialogResult.OK == wireInfoForm.ShowDialog())
            {
                RefreshData();
            }
        }
コード例 #2
0
        /// <summary>
        ///     修改按钮响应
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsBtnModify_Click(object sender, EventArgs e)
        {
            var wire = (Wire)gridView1.GetFocusedRow();

            if (wire == null)
            {
                Alert.alert("请选择要修改的巷道");
                return;
            }
            var wireInfoForm = new WireInfoEntering(wire);

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