示例#1
0
 public WorkCommandExpositor(string Name, string TechName, string Summary, string PictogramLocation,
                             EShellCommandCategory Category, string AreaKey, string GroupKey, ICommand Command,
                             ECommandExpositorStyle ShowOptionsAsComboBox = ECommandExpositorStyle.ComboBox,
                             Func <IEnumerable <object> > OptionsGetter   = null)
     : this(Name, TechName, Summary, PictogramLocation, Category, AreaKey, GroupKey, Command, ShowOptionsAsComboBox, OptionsGetter, null, null)
 {
 }
示例#2
0
        private WorkCommandExpositor(string Name, string TechName, string Summary, string PictogramLocation,
                                     EShellCommandCategory Category, string AreaKey, string GroupKey, ICommand Command,
                                     ECommandExpositorStyle MultiOptionSelectorStyle = ECommandExpositorStyle.ComboBox,
                                     Func <IEnumerable <object> > OptionsGetter      = null, Func <DocumentEngine, bool> SwitchInitializer = null,
                                     Func <DocumentEngine, Tuple <double, double, double, double> > RangeInitializer = null)
            : base(Name, TechName, Summary, (PictogramLocation.IsAbsent() ? null : Display.GetAppImage(PictogramLocation)))
        {
            General.ContractRequiresNotNull(Command);

            this.Category = Category;
            this.AreaKey  = AreaKey;
            this.GroupKey = GroupKey;
            this.Command  = Command;

            var WorkingCommand = this.Command as WorkCommand;

            if (WorkingCommand != null)
            {
                WorkingCommand.CommandExpositor = this;
            }

            this.MultiOptionSelectorStyle = MultiOptionSelectorStyle;
            this.OptionsGetter            = OptionsGetter;
            this.SwitchInitializer        = SwitchInitializer;
            this.RangeInitializer         = RangeInitializer;
        }
示例#3
0
 /// <summary>
 /// Constructor
 /// </summary>
 public WorkCommandExpositor(string Name, string TechName, string Summary, string PictogramLocation,
                             EShellCommandCategory Category, string AreaKey, string GroupKey,
                             ICommand Command, Func <DocumentEngine, bool> SwitchInitializer,
                             Func <DocumentEngine, Tuple <double, double, double, double> > RangeInitializer = null)
     : this(Name, TechName, Summary, PictogramLocation, Category, AreaKey, GroupKey, Command, ECommandExpositorStyle.ListBox,
            null, SwitchInitializer, RangeInitializer)
 {
 }