示例#1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmContinuousEditor frm = new frmContinuousEditor();
            frm.ShowDialog();

            //Refresh gridView1 after form closed
            RefreshData();
        }
示例#2
0
        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();
                Double bl = Convert.ToDouble(gridView1.GetRowCellValue(e.RowHandle, "bottomLeft"));
                Double tl = Convert.ToDouble(gridView1.GetRowCellValue(e.RowHandle, "topLeft"));
                Double tr = Convert.ToDouble(gridView1.GetRowCellValue(e.RowHandle, "topRight"));
                Double br = Convert.ToDouble(gridView1.GetRowCellValue(e.RowHandle, "bottomRight"));

                frmContinuousEditor frm = new frmContinuousEditor(name, bl, tl, tr, br);
                frm.ShowDialog();

                chkSelectAll.Checked = false;
                //Update gridView1 after Update Descrete Fuzzy Set on frmDescreteEditor Form. (after form closed).
                RefreshData();
                Refresh();
            }
        }
示例#3
0
 private void barButtonItem11_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmContinuousEditor frm = new frmContinuousEditor();
     frm.ShowDialog();
 }