private void GXGiaoDanList_RowDoubleClick(object sender, RowActionEventArgs e) { if (allowShowForm) { EditRow(); } }
private void GridExVillage_RowDoubleClick(object sender, RowActionEventArgs e) { if (e.Row.RowType == RowType.Record) { var row = GetVillageRow(e.Row); World.Default.Map.EventPublisher.SelectVillages(null, row.Village, VillageTools.PinPoint); World.Default.Map.SetCenter(row.Village.Location); } }
private void threadsGrid_CellDoubleClick(object sender, RowActionEventArgs e) { if (threadsGrid.CurrentRow != null) { GridEXRow row = threadsGrid.CurrentRow; ThreadWrapper thread = (ThreadWrapper)NuGenHelperFunctions.TaggedObjects[(String)row.Cells[1].Value + (String)row.Cells[2].Value]; ChangeCurrentThread(thread); } }
private void objectsGrid_CellDoubleClick(object sender, RowActionEventArgs e) { if (objectsGrid.CurrentRow != null) { NuGenIValueFormatter valueFormatter = NuGenHelperFunctions.TaggedObjects[(int)objectsGrid.CurrentRow.Cells[2].Value] as NuGenIValueFormatter; if (valueFormatter != null) { NuGenUIHandler.Instance.ShowObjectInObjectViewer(ActiveFrame, valueFormatter.ValueRefresher, (string)objectsGrid.CurrentRow.Cells[0].Value); } } }
private void GridEX_RowDoubleClick(object sender, RowActionEventArgs e) { var game = e.Row.DataRow as Game; using (var form = new GameEditForm(game, DbContext)) { if (form.ShowDialog(this) == DialogResult.OK) { GameService.UpdateGame(game); GridEX.Refetch(); } } }
private void grdList_RowDoubleClick(object sender, RowActionEventArgs e) { var document = grdList.GetRow().DataRow as Document; if (document != null) { string downloadPath = Path.Combine(Path.GetTempPath(), "CCHDocuments", document.Name); string directory = Path.GetDirectoryName(downloadPath); if (!Directory.Exists(directory)) { Directory.CreateDirectory(directory); } _documentRepo.DownloadDocument(document.DocumentID, directory); Process.Start(downloadPath); } }
private void gridExAgreementsListGrouped_RowDoubleClick(object sender, RowActionEventArgs e) { if (e.Row.GroupValue != null) { this.ShowAgreementForm(Convert.ToInt32(e.Row.GroupValue)); } else { if (sender == gridExAgreementsListGrouped) { this.ShowAgreementForm(Convert.ToInt32(e.Row.Cells[0].Value), Convert.ToInt32(e.Row.Cells["PozycjaId"].Value)); } else { this.ShowAgreementForm(Convert.ToInt32(e.Row.Cells[0].Value), 0); } } }
private void GxDotBiTichChiTiet_RowDoubleClick(object sender, RowActionEventArgs e) { if (this.CurrentRow == null || (this.CurrentRow.DataRow as DataRowView) == null) { return; } //if select gia dinh if (this.CurrentColumn != null && (this.CurrentColumn.DataMember == GiaDinhConst.MaGiaDinh || this.CurrentColumn.DataMember == GiaDinhConst.TenGiaDinh)) { //if select gia dinh if (this.CurrentColumn != null && (this.CurrentColumn.DataMember == GiaDinhConst.MaGiaDinh || this.CurrentColumn.DataMember == GiaDinhConst.TenGiaDinh)) { SelectGiaDinh(); return; } } //if edit giao dan EditRow(); }
private void GxGiaDinhList_RowDoubleClick(object sender, RowActionEventArgs e) { EditRow(); }
private void gridEX1_RowDoubleClick(object sender, RowActionEventArgs e) { MessageBox.Show(e.Row.Cells[5].Value.ToString()); }
private void grdData_RowDoubleClick(object sender, RowActionEventArgs e) { RequireUpdate(); }
private void grdData_RowDoubleClick(object sender, RowActionEventArgs e) { SelectRecord(); }
private void grdPatients_RowDoubleClick(object sender, RowActionEventArgs e) { LoadAllResult(); }
private void GxRaoHonPhoiList_RowDoubleClick(object sender, RowActionEventArgs e) { EditRow(false); }
private void gridExSettlementsList_RowDoubleClick(object sender, RowActionEventArgs e) { this.ShowSettlementEditForm(); }
/// <summary> /// PinPoint the village /// </summary> private void GridExVillage_RowDoubleClick(object sender, RowActionEventArgs e) { if (e.Row.RowType == RowType.Record) { var row = e.Row.GetDataRow<PolygonDataSet.VILLAGERow>(); World.Default.Map.EventPublisher.SelectVillages(null, row.Village, VillageTools.PinPoint); World.Default.Map.SetCenter(row.Village.Location); } }
void grdMoiGioiCuocGoiThap_RowDoubleClick(object sender, RowActionEventArgs e) { LoadRowDetail(); }
private void gridEX1_RowDoubleClick(object sender, RowActionEventArgs e) { try { uiPanel2.Closed = true; if (gridEX1.GetRow().RowType == RowType.Record) { string TblName; DataRow dr = (DataRow)((DataRowView)gridEX1.GetRow().DataRow).Row; TblName = (string)dr["TableName"]; uiPanel1.Text = TblName; for (int i = cGridEX.RootTable.Columns.Count - 1; i >= 0; i--) { cGridEX.RootTable.Columns.Remove(cGridEX.RootTable.Columns[i]); } obe = AtMng.GetCodeTableBE(TblName); obe.Load(); cGridEX.DataSource = obe.myDT; int y = 0; for (int i = 0; obe.myDT.Columns.Count > i; i++) { if ((obe.myDT.Columns[i].ColumnName == "entryUser") || (obe.myDT.Columns[i].ColumnName == "entryDate") || (obe.myDT.Columns[i].ColumnName == "updateUser") || (obe.myDT.Columns[i].ColumnName == "updateDate") || (obe.myDT.Columns[i].ColumnName == "ts")) { } else { if (cGridEX.RootTable.Columns.Count > i) { } else { cGridEX.RootTable.Columns.Add(); } cGridEX.RootTable.Columns[y].DataMember = obe.myDT.Columns[i].ColumnName; cGridEX.RootTable.Columns[y].Key = obe.myDT.Columns[i].ColumnName; cGridEX.RootTable.Columns[y].AutoSizeMode = ColumnAutoSizeMode.AllCellsAndHeader; if (obe.myDT.Columns[i].DataType == System.Type.GetType("System.Boolean")) { cGridEX.RootTable.Columns[y].ColumnType = ColumnType.CheckBox; cGridEX.RootTable.Columns[y].EditType = EditType.CheckBox; } if (TblName == "AccountType") { switch (i) { case 1: cGridEX.RootTable.Columns[y].Caption = "Code"; break; case 2: cGridEX.RootTable.Columns[y].Caption = "Desc Eng"; break; case 3: cGridEX.RootTable.Columns[y].Caption = "Desc Fre"; break; default: cGridEX.RootTable.Columns[y].Caption = obe.myDT.Columns[i].ColumnName; break; } } else { cGridEX.RootTable.Columns[y].Caption = obe.myDT.Columns[i].ColumnName; if (obe.myDT.Columns[i].ColumnName == "WFBGColor") { cGridEX.RootTable.Columns[y].Selectable = false; uiPanel2.Closed = false; cGridEX.RootTable.Columns.Add("BGColor"); } } y++; } } cGridEX.RootTable.SortKeys.Add(cGridEX.RootTable.Columns[0], Janus.Windows.GridEX.SortOrder.Ascending); if (cGridEX.RootTable.Columns.Contains("Obsolete")) { Janus.Windows.GridEX.GridEXFormatCondition gfc2 = new GridEXFormatCondition(cGridEX.RootTable.Columns["Obsolete"], ConditionOperator.Equal, true); Janus.Windows.GridEX.GridEXFormatStyle gfs2 = new GridEXFormatStyle(); gfs2.FontStrikeout = TriState.True; gfc2.FormatStyle = gfs2; cGridEX.RootTable.FormatConditions.Add(gfc2); } if (cGridEX.RootTable.Columns.Contains("ReadOnly")) { Janus.Windows.GridEX.GridEXFormatCondition gfc = new GridEXFormatCondition(cGridEX.RootTable.Columns["ReadOnly"], ConditionOperator.Equal, true); Janus.Windows.GridEX.GridEXFormatStyle gfs = new GridEXFormatStyle(); gfs.BackColor = Color.Gainsboro; gfs.ForeColor = SystemColors.ControlDarkDark; gfc.FormatStyle = gfs; cGridEX.RootTable.FormatConditions.Add(gfc); } cGridEX.AutoSizeColumns(); } } catch (Exception x) { UIHelper.HandleUIException(x); } }
private void gridExAgreementsListGrouped_RowDoubleClick(object sender, RowActionEventArgs e) { this.ShowAgreementForm(Convert.ToInt32(e.Row.Cells["IdUmowy"].Value), Convert.ToInt32(e.Row.Cells["PozycjaId"].Value)); }
private void actionsGrid1_RowDoubleClick(object sender, RowActionEventArgs e) { Logger.LogUserAction(); EditAction(); }
private void gridExport_RowDoubleClick(object sender, RowActionEventArgs e) { LoadRowDetail(); }