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; }
private void OnComponentClick(ClsComponent clsComponent) { //Load Sub Feature Menu // It Should be the list of Capabilties sent by SSDs SelectedSSD = clsComponent; }