示例#1
0
 public static string GetCssClass(CommandSprite.SpriteId spriteid)
 {
     if (spriteid == CommandSprite.SpriteId.NONE)
     {
         return(string.Empty);
     }
     return(CommandSprite.GetBaseCssClass() + " " + CommandSprite.ImageStyles[(int)spriteid]);
 }
 public ViewO365ReportCommand(string text, CommandSprite.SpriteId imageID) : base(text, imageID)
 {
     this.DialogSize     = ViewO365ReportCommand.DefaultDialogSize;
     this.OnClientClick  = "ViewO365ReportCommandHandler";
     base.ImageAltText   = Strings.ViewDetailsCommandText;
     this.BypassUrlCheck = true;
     base.Visible        = !string.IsNullOrEmpty(ViewO365ReportCommand.o365Url);
     this.ServiceId      = "Exchange";
 }
示例#3
0
 public Command(string text, CommandSprite.SpriteId imageID)
 {
     this.OnClientClick     = base.GetType().Name + "Handler";
     this.SelectionMode     = SelectionMode.SelectionIndependent;
     this.RefreshAction     = RefreshAction.SingleRow;
     this.ConfirmDialogType = ModalDialogType.Warning;
     this.Text            = text;
     this.ImageId         = imageID;
     this.Visible         = true;
     this.CustomSpriteCss = string.Empty;
 }
示例#4
0
 public WizardCommand(string text, CommandSprite.SpriteId imageID) : base(text, imageID)
 {
     this.Name = "New";
 }
示例#5
0
 public PopupCommand(string text, CommandSprite.SpriteId imageID) : base(text, imageID)
 {
     this.TargetFrame = "_blank";
     this.HasBookmark = true;
 }
示例#6
0
 public NavigateCommand(string text, CommandSprite.SpriteId imageID) : base(text, imageID)
 {
     this.SelectionParameterName = "id";
 }