Exemple #1
0
 public void AddModuleToProduct(Module m, int q)
 {
     for (int i = 0; i < q; i++)
     {
         ModulesList.Add(m);
         Price += m.Price;
     }
 }
Exemple #2
0
        public override void SetModules()
        {
            base.SetModules();

            ModulesList.Add(Modules.MainWindowModules.Current);
            ModulesList.Add(Modules.ExitTipModules.Current);
            ModulesList.Add(Modules.NotifyIconModules.Current);
            ModulesList.Add(Modules.KeysModules.Current);
            ModulesList.Add(Modules.ThemeModules.Current);
            ModulesList.Add(Modules.WindowViewModules.Current);
            ModulesList.Add(Modules.SimpleFleetModules.Current);
        }
Exemple #3
0
        private void CreateModuleCollection(IPointsList modulePoints)
        {
            modulePoints.OldPointsList = modulePoints.PointsList;
            modulesList = new List <Module>();
            for (int i = 0; i < modulePoints.PointsList.Count; i++)
            {
                int moduleId = i + 1;
                var module   = Module.ByPoints(modulePoints.PointsList[i]);
                module.ModuleId = moduleId;
                ModulesList.Add(module);
                if (ModulePoints.PointsList != null && ModulePoints.PointsList[0] != null)
                {
                    for (int j = 0; j < modulePoints.PointsList[i].Count; j++)
                    {
                        int objectId     = j;
                        var moduleObject = PersistenceManager.IoC.GetInstance <IBindableObject>();
                        moduleObject.RegisterContextData(moduleId, objectId);
                        module.PointObjects.Add(moduleObject);
                    }

                    if (modulePoints.PointsList[0].Count > 2)
                    {
                        var planeObject = PersistenceManager.IoC.GetInstance <IBindableObject>();
                        planeObject.RegisterContextData(moduleId, modulePoints.PointsList[0].Count);
                        module.PlaneObjects.Add(planeObject);

                        var assemblyOccurrenceObject = PersistenceManager.IoC.GetInstance <IBindableObject>();
                        assemblyOccurrenceObject.RegisterContextData(moduleId, modulePoints.PointsList[0].Count + 1);
                        assemblyOccurrenceObject.Binder.ContextManager.BindingContextManager = PersistenceManager.ActiveAssemblyDoc.ReferenceKeyManager;
                        module.AssemblyOccurrenceObject = assemblyOccurrenceObject;
                    }

                    else
                    {
                        var assemblyOccurrenceObject = PersistenceManager.IoC.GetInstance <IBindableObject>();
                        assemblyOccurrenceObject.RegisterContextData(moduleId, modulePoints.PointsList[0].Count);
                        assemblyOccurrenceObject.Binder.ContextManager.BindingContextManager = PersistenceManager.ActiveAssemblyDoc.ReferenceKeyManager;
                        module.AssemblyOccurrenceObject = assemblyOccurrenceObject;
                    }
                }
            }
        }
Exemple #4
0
        public override void SetModules()
        {
            base.SetModules();

            ModulesList.Add(Modules.LoggerModules.Current);
        }
Exemple #5
0
        public override void SetModules()
        {
            base.SetModules();

            ModulesList.Add(Modules.SoundsModules.Current);
        }
Exemple #6
0
        public override void SetModules()
        {
            base.SetModules();

            ModulesList.Add(Modules.ViewRangeModules.Current);
        }
Exemple #7
0
        public override void SetModules()
        {
            base.SetModules();

            ModulesList.Add(Modules.WarningModules.Current);
        }