private void initAllDevComp()
        {
            fpc        = new FunctionParameterCollection();
            dev        = new Device();
            AllDevices = new DeviceCollection();
            devevent   = new DeviceEvent();
            devFunc    = new DeviceFunction();
            devProp    = new DeviceProperty();

            CondColl = new ConditionsCollection();
        }
Beispiel #2
0
        private void initAllDevComp()
        {
            fpc    = new FunctionParameterCollection();
            devCap = new DeviceCapabilities();

            dev          = new Device();
            devcol       = new DeviceCollection();
            devEventColl = new DeviceEventCollection();
            devfuncColl  = new DeviceFunctionCollection();
            devPropColl  = new DevicePropertyCollection();
            devevent     = new DeviceEvent();
            devFunc      = new DeviceFunction();
            devProp      = new DeviceProperty();
        }
Beispiel #3
0
        private void initAllDevComp()
        {
            fpc = new FunctionParameterCollection();
            //devCap = new DeviceCapabilities();

            dev        = new Device();
            AllDevices = new DeviceCollection();

            devevent = new DeviceEvent();
            devFunc  = new DeviceFunction();
            devProp  = new DeviceProperty();

            WorkflowActions = new WorkflowActionCollection();
        }
Beispiel #4
0
        private void InitAllProp()
        {
            AOMDates        = new AOMDateCollection();
            AOMTimes        = new AOMTimeCollection();
            AOMMessageBoxes = new AOMMessageBoxCollection();
            AOMMessages     = new AOMMessageCollection();
            AOMEmails       = new AOMEmailCollection();

            fpc = new FunctionParameterCollection();
            designCollection = new clsDesignCollection();

            deviceCollection    = new DeviceCollection();
            conditionCollection = new ConditionsCollection();
            WorkflowActions     = new WorkflowActionCollection();
            objAllCondAction    = new AllConditionsActions();

            watcher = new FileSystemWatcher();

            cm  = new ClsComponentManager();
            cmp = new ClsComponent();

            loadAllDevices();
            loadAllCondition();

            SelectedFeature = new Feature();

            LoadallAOMDates();
            LoadAllAOMTimes();
            LoadAllAOMMessageBoxes();
            LoadAllAOMMessages();
            LoadAllDesigns();
            LoadAllEmails();
            LoadAllWorkflowActions();
            LoadAllConditionalActions();

            watcher.Path                = System.IO.Path.GetDirectoryName(@"\\192.168.0.37\MY101-Product X\07-Product Line\CSL\ComponentManager\");
            watcher.NotifyFilter        = NotifyFilters.LastWrite;
            watcher.Filter              = "qweasd.txt";
            watcher.Changed            += new FileSystemEventHandler(OnChanged);
            watcher.EnableRaisingEvents = true;

            cm.AddComponent("ACTUATOR", typeofComponent.ACT_Actuator, StatusofComponent.Active, GetLocalIPAddress());

            cmp.ComponentID     = cm.CurrentObjComponentID;
            cmp.ComponentIP     = GetLocalIPAddress();
            cmp.ComponentName   = "ACTUATOR";
            cmp.ComponentStatus = StatusofComponent.Active;
            cmp.ComponentType   = typeofComponent.ACT_Actuator;
        }