Esempio n. 1
0
        protected virtual void InitializePlantFromPipeline(IPlantEx plantEx)
        {
            INotifyIconChangerMaster globalNotifyIconChanger = HatcherGuide <INotifyIconChangerMaster> .CreateNewInstance();

            globalNotifyIconChanger.Initialize(this.GlobalNotifyIcon);
            InitPlantPipeline.InitPlantGMPipeline.Run(plantEx, this.LuggageName, globalNotifyIconChanger);
        }
        protected virtual void AssignIconModifierToRequirer(InitPlantSIArgs args, INeedToModifyIcon iconRequirer)
        {
            INotifyIconChangerMaster iconChanger = HatcherGuide <INotifyIconChangerMaster> .CreateNewInstance();

            iconChanger.Initialize(args.SIBox.NotifyIcon);
            iconRequirer.StoreIconChangingAssignee(iconChanger);
        }
        public static InitPlantGMArgs Run(IPlantEx plantEx, string luggageName, INotifyIconChangerMaster globalNotifyIconChanger)
        {
            var args = new InitPlantGMArgs(plantEx, luggageName, globalNotifyIconChanger);

            HatcherGuide <IPipelineManager> .Instance.InvokePipeline("globalMenuServiceInitPlant", args);

            return(args);
        }
Esempio n. 4
0
 public InitPlantGMArgs(
     [NotNull] IPlantEx plantEx,
     [NotNull] string luggageName,
     [NotNull] INotifyIconChangerMaster globalNotifyIconChanger)
 {
     Assert.ArgumentNotNull(plantEx, "plantEx");
     Assert.ArgumentNotNull(luggageName, "luggageName");
     Assert.ArgumentNotNull(globalNotifyIconChanger, "globalNotifyIconChanger");
     this.PlantEx                 = plantEx;
     this.LuggageName             = luggageName;
     this.GlobalNotifyIconChanger = globalNotifyIconChanger;
 }
Esempio n. 5
0
        public virtual void Process(InitPlantGMArgs args)
        {
            var asExpected = args.PlantEx.GetFirstWorkhorseOfType <IChangesGlobalIcon>();

            if (asExpected == null)
            {
                return;
            }
            INotifyIconChangerMaster globalNotifyIconChanger = args.GlobalNotifyIconChanger;

            asExpected.StoreGlobalIconChangingAssignee(globalNotifyIconChanger);
            args.GMBox.GlobalNotifyIconChanger = globalNotifyIconChanger;
            args.IsNotifyIconChangerInUse      = true;
        }
Esempio n. 6
0
 public static InitPlantGMArgs Run(IPlantEx plantEx, string luggageName, INotifyIconChangerMaster globalNotifyIconChanger)
 {
     var args = new InitPlantGMArgs(plantEx, luggageName, globalNotifyIconChanger);
       HatcherGuide<IPipelineManager>.Instance.InvokePipeline("globalMenuServiceInitPlant", args);
       return args;
 }