Exemplo n.º 1
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();
        }
Exemplo n.º 2
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;
        }
Exemplo n.º 3
0
        public ConditionalActionView()
        {
            InitializeComponent();
            AllWorkflowActions      = new WorkflowActionCollection();
            AllWorkflowActions      = AMAActionableObjects.FixedWorkflowActionCollection;
            AllConditions           = new ConditionsCollection();
            AllConditions           = AMAActionableObjects.FixedConditionCollection;
            LastDepth               = 0;
            ListConditionAction     = new List <ConditionAction>();
            LastConditionID         = 0;
            ObjAllConditionsActions = new AllConditionsActions();
            ObjAllConditionsActions = AMAActionableObjects.FixedAllConditionsActions;

            DataContext = this;
        }