/// <summary>
 ///     添加
 /// </summary>
 /// <params name="sender"></params>
 /// <params name="e"></params>
 private void btnAdd_Click(object sender, EventArgs e)
 {
     var m = new BoreholeInfoEntering();
     var result = m.ShowDialog();
     if (result == DialogResult.OK || result == DialogResult.Cancel)
     {
         RefreshData();
     }
 }
Exemplo n.º 2
0
        /// <summary>
        ///     添加
        /// </summary>
        /// <params name="sender"></params>
        /// <params name="e"></params>
        private void btnAdd_Click(object sender, EventArgs e)
        {
            var m      = new BoreholeInfoEntering();
            var result = m.ShowDialog();

            if (result == DialogResult.OK || result == DialogResult.Cancel)
            {
                RefreshData();
            }
        }
Exemplo n.º 3
0
        /// <summary>
        ///     修改
        /// </summary>
        /// <params name="sender"></params>
        /// <params name="e"></params>
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            if (gridView1.GetFocusedRow() == null)
            {
                Alert.AlertMsg("请选择要修改的信息");
                return;
            }
            var m = new BoreholeInfoEntering(((Borehole)gridView1.GetFocusedRow()));

            if (DialogResult.OK == m.ShowDialog())
            {
                RefreshData();
            }
        }
 /// <summary>
 ///     修改
 /// </summary>
 /// <params name="sender"></params>
 /// <params name="e"></params>
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (gridView1.GetFocusedRow() == null)
     {
         Alert.AlertMsg("请选择要修改的信息");
         return;
     }
     var m = new BoreholeInfoEntering(((Borehole) gridView1.GetFocusedRow()));
     if (DialogResult.OK == m.ShowDialog())
     {
         RefreshData();
     }
 }