private void gridViewLibraryDis_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e) { if (e.Column.FieldName != "gridColCheck" && e.Button == MouseButtons.Right) { FrmAddDiscreteFuzzySet frm = new FrmAddDiscreteFuzzySet(gridViewLibraryDis.GetRowCellValue(e.RowHandle, "gridColName").ToString()); frm.ShowDialog(); RefreshData(); } }
private void gridCtrLibraryDis_EmbeddedNavigator_ButtonClick(object sender, NavigatorButtonClickEventArgs e) { if (e.Button.ButtonType == NavigatorButtonType.Append) { FrmAddDiscreteFuzzySet frm = new FrmAddDiscreteFuzzySet(); frm.ShowDialog(); RefreshData(); e.Handled = true; } }
private void gridCtlFuzzyValue_EmbeddedNavigator_ButtonClick(object sender, NavigatorButtonClickEventArgs e) { if (e.Button.ButtonType == NavigatorButtonType.Append) { if (datatypename == "DiscreteFuzzySet") { FrmAddDiscreteFuzzySet frm = new FrmAddDiscreteFuzzySet(); frm.ShowDialog(); ResetGridView(datatypename); } else { FrmAddContinuousFuzzySet frm = new FrmAddContinuousFuzzySet(); frm.ShowDialog(); ResetGridView(datatypename); } e.Handled = true; } }