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); }
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; }
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; }
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; }