Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
 protected virtual void OnRowClicked(GridViewRowClickedEventArgs e)
 {
     if (RowClicked != null)
     {
         RowClicked(this, e);
     }
 }
Ejemplo n.º 3
0
        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);
            }
        }
Ejemplo n.º 4
0
        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);
            }
        }
Ejemplo n.º 5
0
 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);
     }
 }
Ejemplo n.º 6
0
 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);
 }
Ejemplo n.º 7
0
 protected virtual void OnRowClicked(GridViewRowClickedEventArgs e)
 {
     if (RowClicked != null)
         RowClicked(this, e);
 }