protected void MostrarMensajePopup(Page page, string mensaje, eTipoMensaje Tipo) { string ImagePath = String.Empty; switch (Convert.ToInt16(Tipo)) { case 1: ImagePath = Page.ResolveUrl(ConstantesUI._ImagenOK); break; // TODO: might not be correct. Was : Exit Select case 2: ImagePath = Page.ResolveUrl(ConstantesUI._ImagenWaring); break; // TODO: might not be correct. Was : Exit Select case 3: ImagePath = Page.ResolveUrl(ConstantesUI._ImagenError); break; // TODO: might not be correct. Was : Exit Select case 5: ImagePath = Page.ResolveUrl(ConstantesUI._ImagenInfoReport); break; // TODO: might not be correct. Was : Exit Select } ScriptManager.RegisterStartupScript(page, this.GetType(), "LanzarMensaje", string.Concat("fShowMessageInfoPopup('", mensaje, "','", ImagePath, "');"), true); }
public MensajeMover(eOwn owner, ePlayer objetivo, int posX, int posY) { tipo = eTipoMensaje.Movimiento; this.owner = owner; this.objetivo = objetivo; this.posX = posX; this.posY = posY; }
public MensajeBomba(eOwn owner, eTipoBomba bomba, int posX, int posY) { tipo = eTipoMensaje.Bomba; this.owner = owner; this.bomba = bomba; this.posX = posX; this.posY = posY; }
protected void MostrarMensajeConfirmar(string mensaje, eTipoMensaje tipo, string parametro) { string ImagePath = String.Empty; switch (Convert.ToInt16(tipo)) { case 4: ImagePath = Page.ResolveUrl(ConstantesUI._ImagenQuestion); break; // TODO: might not be correct. Was : Exit Select } ScriptManager.RegisterStartupScript(this, this.GetType(), "LanzarMensaje", string.Concat("fShowMessageConfirm('", mensaje, "','", ImagePath, "','", parametro, "');"), true); }