Exemplo n.º 1
0
        /// <summary>
        /// Returns a cloned copy of the tool.
        /// </summary>
        /// <param name="cloneNewInstance">If true, returns a clone of the tool that can serve as an instance of the tool, sharing the same SharedProps object.  If false, returns a tool that can be used as a new tool, with a clone of the original SharedProps object.</param>
        /// <returns></returns>
        protected override Infragistics.Win.UltraWinToolbars.ToolBase Clone(bool cloneNewInstance)
        {
            AppPopupMenuCommand tool = new AppPopupMenuCommand(this.Key);

            tool.InitializeFrom(this, cloneNewInstance);
            return(tool);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Takes over the mediator and executor from cmd.
 /// </summary>
 /// <param name="cmd">The CMD.</param>
 public void ReJoinMediatorFrom(AppPopupMenuCommand cmd)
 {
     this.Mediator  = cmd.Mediator;
     this.OnExecute = cmd.OnExecute;
 }