private void btnAdd_Click(object sender, EventArgs e) { frmDescreteEditor frm = new frmDescreteEditor(); frm.ShowDialog(); //Refresh gridView1 after form closed RefreshData1(); }
private void gridView1_CustomRowCellEditForEditing(object sender, DevExpress.XtraGrid.Views.Grid.CustomRowCellEditEventArgs e) { if (gridView1.DataRowCount != 0 && gridView1.GetRowCellValue(e.RowHandle, "name") != null) { String name = gridView1.GetRowCellValue(e.RowHandle, "name").ToString(); List<Double> values = SplitString(gridView1.GetRowCellValue(e.RowHandle, "values").ToString()); List<Double> memberships = SplitString(gridView1.GetRowCellValue(e.RowHandle, "memberships").ToString()); frmDescreteEditor frm = new frmDescreteEditor(name, values, memberships); frm.ShowDialog(); chkSelectAll.Checked = false; //Update gridView1 after Update Descrete Fuzzy Set on frmDescreteEditor Form. (after form closed). RefreshData1(); } }
private void iDiscreteFuzzySet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmDescreteEditor frm = new frmDescreteEditor(); frm.ShowDialog(); }