Пример #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)
        {
            AppStateButtonToolCommand tool = new AppStateButtonToolCommand(this.Key);

            tool.InitializeFrom(this, cloneNewInstance);
            return(tool);
        }
Пример #2
0
 /// <summary>
 /// Takes over the mediator and executor from cmd.
 /// </summary>
 /// <param name="cmd">The CMD.</param>
 public void ReJoinMediatorFrom(AppStateButtonToolCommand cmd)
 {
     this.Mediator  = cmd.Mediator;
     this.OnExecute = cmd.OnExecute;
 }