예제 #1
0
        private void pgServiceList_DataRowDoubleClick(object sender, DataRowClickArgs e)
        {
            if (e.Row == null)
            {
                return;
            }

            ConfigParaServiceMap serviceMap = (ConfigParaServiceMap)e.Row;
            var frm = new FServiceConfigParaKeyValueEdit(this._configLogic, serviceMap);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                this.pgServiceList_SelectionChanged(sender, new DataRowSelectionChangedArgs(-1, -1, e.Row, null, null));
            }
        }
예제 #2
0
 private void dgvTables_DataRowDoubleClick(object sender, DataRowClickArgs e)
 {
     try
     {
         var tableInfo = (DBTableInfoEx)e.Row;
         var frm       = new FTableField(tableInfo);
         frm.Show();
         //var tableInfo = (DBTableInfoEx)((DataGridViewRow)e.Row).DataBoundItem;
     }
     catch (Exception ex)
     {
         Loger.Error(ex);
         MessageBox.Show(ex.Message);
     }
 }
예제 #3
0
 private void pgServiceParaList_DataRowDoubleClick(object sender, DataRowClickArgs e)
 {
     try
     {
         var configParaKeyValue = (ConfigParaKeyValue)e.Row;
         var frm = new FConfigParaKeyValueEdit(this._configLogic, configParaKeyValue);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             this.pgServiceList_SelectionChanged(sender, new WindowEx.Winform.Controls.PageGrid.Interface.DataRowSelectionChangedArgs(-1, -1, ((DataGridViewRow)pgServiceList.SelectedRows[0]).DataBoundItem, null, null));
         }
     }
     catch (Exception ex)
     {
         Loger.Error(ex);
     }
 }