protected override void OnCommandButtons(CommandButtonsEventArgs e) { switch (e.ButtonType) { case CommandButtonType.CheckoutSave: case CommandButtonType.CheckoutSaveCheckin: case CommandButtonType.Publish: case CommandButtonType.Save: case CommandButtonType.SaveCheckin: e.Cancel = true; this.HandleTagReplacement(e.ContentView); break; } }
protected void _contentView_CommandButtonsAction(object sender, CommandButtonsEventArgs e) { if (e.ButtonType == CommandButtonType.Save || e.ButtonType == CommandButtonType.SaveCheckin || e.ButtonType == CommandButtonType.CheckoutSaveCheckin || e.ButtonType == CommandButtonType.CheckoutSave) { HandleSave(e.ContentView); } else if (e.ButtonType == CommandButtonType.Cancel) { HandleCancel(); } else { this._recreateNewContentView = false; this._recreateEditContentView = false; _container.Controls.Clear(); } }
protected void ContentView_CommandButtonsAction(object sender, CommandButtonsEventArgs e) { if (e.ButtonType == CommandButtonType.Cancel) { return; } e.ContentView.UpdateContent(); var cic = e.ContentView.Content["CheckInComments"] as string; var gc = e.ContentView.ContentHandler as GenericContent; if (gc == null || (gc.CheckInCommentsMode == CheckInCommentsMode.Compulsory && string.IsNullOrEmpty(cic))) { e.ContentView.ContentException = new Exception(HttpContext.GetGlobalResourceObject("Portal", "CheckInCommentsCompulsory") as string); e.Cancel = true; } }
protected virtual void OnCommandButtons(CommandButtonsEventArgs e) { }
protected void contentView_CommandButtonsAction(object sender, CommandButtonsEventArgs e) { this.OnCommandButtons(e); }