Example #1
0
        public void Set_DataFilePath(string fPath, int Index, CS_RecordSession oSession, CS_RecordEvent oEvent)
        {
            if (!(fPath.Equals("") || Index < 0 || Index >= DataFilePathes.Length))
            {
                DataFilePathes[Index] = fPath;

                if (!(oEvent == null || oSession == null))
                {
                    CS_RecordEvent CurrentEvent = null;

                    if (EventExists(oEvent.Name))
                    {
                        CurrentEvent = GetEvent(oEvent.Name);
                    }
                    else
                    {
                        AddEvent(oEvent);
                        CurrentEvent = GetEvent(oEvent.Name);
                    }

                    if (!(CurrentEvent.RecordSessionExists(oSession.Name)))
                    {
                        CurrentEvent.Sessions.Add(oSession.Clone());
                    }
                }
            }
        }