protected void gvContracts_RowClicked(object sender, GridViewRowClickedEventArgs args) { if (args.HasKey) { CurrentSession.SearchReadOnly = false; Response.Redirect(_EditNavigateUrl + "?cid=" + args.Key); } }
protected void grdAccount_RowClicked(object sender, GridViewRowClickedEventArgs args) { try { errorMessage.Visible = false; long accountToHack = long.Parse(args.Row.Cells[0].Text.Trim()); long livelloHacking = -1; PersonaggiManagerNew charactermanager = new PersonaggiManagerNew(DatabaseContext); Personaggio account = charactermanager.GetCharacterByNumber(accountToHack); if (account.Fazione != rete) { return; } long valoreProtezione = account.LivelloProtezione; if (valoreProtezione > livelloHacking) { livelloHacking = valoreProtezione; } hackControl.IdentificatoreElemento = accountToHack; hackControl.LivelloHacking = livelloHacking; hackControl.Carica(); pageViews.SetActiveView(viewHackAccount); } catch { pageViews.SetActiveView(viewAccountList); } }
protected void SearchResultsGrid_RowClicked(object sender, GridViewRowClickedEventArgs args) { if (args.HasKey) NavigationController.EditCompany(args.Key); }
protected void gvLog_RowClicked(object sender, GridViewRowClickedEventArgs args) { var entry = LogReaderService.ReadLogEntry(args.Key); if (entry != null) { CategoryLabel.Text = entry.Level.ToString(); EntryTimeLabel.Text = entry.Timestamp.ToString("dd MMM yyyy HH:mm:ss"); UserLabel.Text = entry.Username; MethodNameLabel.Text = entry.MethodName; ClassLabel.Text = entry.ClassName; MessageLabel.Text = entry.Message; StackTraceLabel.Text = entry.StackTrace; LogDetailPopup.Show(); } }
protected void SubAccountsGrid_RowClicked(object sender, GridViewRowClickedEventArgs args) { NavigationController.EditAccount(args.Key); }
protected void gvNetworks_RowClicked(object sender, GridViewRowClickedEventArgs args) { var hidden = args.Row.Cells[0].FindControl("id") as HiddenField; if (hidden != null) { int networkId = int.Parse(hidden.Value); NavigationController.EditNetwork(networkId); } }