private void tsBtnModify_Click(object sender, EventArgs e) { var m = new MineDataSimple() { Text = new LibPanels(MineDataPanelName.GasData_Change).panelFormName }; if (DialogResult.OK == m.ShowDialog()) { RefreshData(); } }
/// <summary> /// 添加按钮事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tsBtnAdd_Click(object sender, EventArgs e) { //MineData m = new MineData(); var m = new MineDataSimple { Text = new LibPanels(MineDataPanelName.Management).panelFormName }; if (DialogResult.OK == m.ShowDialog()) { RefreshData(); } }
/// <summary> /// 修改按钮事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tsBtnModify_Click(object sender, EventArgs e) { if (bandedGridView1.GetFocusedRow() == null) { Alert.alert("请选择要修改的信息"); return; } var m = new MineDataSimple((Ventilation)bandedGridView1.GetFocusedRow()) { Text = new LibPanels(MineDataPanelName.Ventilation_Change).panelFormName }; if (DialogResult.OK == m.ShowDialog()) { RefreshData(); } }