Esempio n. 1
0
        public int AddFlyoutCommand(IFlyoutGroup flyoutGroup, string guid, string name, string hint, int imageListIndex, Type commandType)
        {
            var flyoutCallbackFunc = $"{callbackMethodName}({guid})";
            var flyoutEnableFunc   = $"{enableMethodName}({guid})";
            int index = flyoutGroup.AddCommandItem(name, hint, imageListIndex, flyoutCallbackFunc, flyoutEnableFunc);

            if (!CommandInstances.ContainsKey(guid) && Container != null)
            {
                using (var scope = Container.BeginLifetimeScope())
                {
                    CommandInstances.Add(guid, scope.Resolve(commandType));
                }
            }

            return(index);
        }
Esempio n. 2
0
 public IFlyoutGroupObject(IFlyoutGroup IFlyoutGroupinstance)
 {
     IFlyoutGroupInstance = IFlyoutGroupinstance;
 }