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 virtual void OnRowClicked(GridViewRowClickedEventArgs e) { if (RowClicked != null) { RowClicked(this, e); } }
protected void grdFileList_RowClicked(object sender, HolonetWebControls.GridViewRowClickedEventArgs args) { string numeroFile = args.Row.Cells[0].Text; if (!string.IsNullOrWhiteSpace(numeroFile)) { long messageNum = long.Parse(numeroFile); mostraFile(messageNum); } }
protected void grdMessaggi_RowClicked(object sender, HolonetWebControls.GridViewRowClickedEventArgs args) { string messageId = args.Row.Cells[0].Text; if (!string.IsNullOrWhiteSpace(messageId)) { long messageNum = long.Parse(messageId); caricaMessaggio(messageNum); } }
protected override void RaisePostBackEvent(string eventArgument) { if (eventArgument.StartsWith("rc")) { int index = Int32.Parse(eventArgument.Substring(2)); GridViewRowClickedEventArgs args = new GridViewRowClickedEventArgs(Rows[index]); OnRowClicked(args); } else { base.RaisePostBackEvent(eventArgument); } }
protected override void RaisePostBackEvent(string eventArgument) { if (eventArgument.StartsWith("rc")) { int index = Int32.Parse(eventArgument.Substring(2)); GridViewRowClickedEventArgs args = new GridViewRowClickedEventArgs(Rows[index]); OnRowClicked(args); } else base.RaisePostBackEvent(eventArgument); }
protected virtual void OnRowClicked(GridViewRowClickedEventArgs e) { if (RowClicked != null) RowClicked(this, e); }