private void Set(ShipmentApplicaotinHelperType name, ShipmentAutomationMapBase map) { if (!ApplicationMapObjects.ContainsKey(name)) { ApplicationMapObjects.Add(name, map); } }
protected void OnTimerElapsed(ShipmentAutomationMapBase automationMap) { if (!automationMap.IsMainWindowReadyForUserInteraction()) { IsWarnDialogFired = true; automationMap.CloseModalWindowsWait(); } }
protected void StartTimer(ShipmentAutomationMapBase automationMap) { IsWarnDialogFired = false; Timer = new Timer { Interval = 70, AutoReset = true }; Timer.Elapsed += (sender, args) => OnTimerElapsed(automationMap); Timer.Start(); }