Exemple #1
0
        /// <summary>
        ///     添加(必须实装)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAdd_Click(object sender, EventArgs e)
        {
            var m = new PitshaftInfoEntering();

            if (DialogResult.OK == m.ShowDialog())
            {
                RefreshData();
            }
        }
Exemple #2
0
        /// <summary>
        ///     修改(必须实装)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            if (gridView1.GetFocusedRow() == null)
            {
                Alert.alert("请选择要修改的信息");
                return;
            }
            var m = new PitshaftInfoEntering(((Pitshaft)gridView1.GetFocusedRow()).PitshaftId.ToString(),
                                             Const_GM.UPDATE_PITSHAFT_INFO);

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