Esempio n. 1
0
        public DeclarationInstrument(DetectionSystem parent, string name, uint id) : base(parent, name, id)
        {
            InstrumentType = "Declaration";
            filePrefix     = "";
            FileExtension  = "dec";
            decFiles       = new string[0];
            decDates       = new DateTime[0];
            decParser      = new DECFile();

            numChannels           = NUM_CHANNELS;
            channels              = new Channel[numChannels];
            channels[DECLARATION] = new Channel(Name + "-Declarations", this, Channel.ChannelType.DURATION_VALUE, 0);
        }
Esempio n. 2
0
        private void SaveDECFile(string fileName)
        {
            decFile = new DECFile();
            ReturnCode returnCode = Scrape();

            if (returnCode != ReturnCode.SUCCESS)
            {
                return;
            }
            if (decFile.WriteDeclarationFile(fileName) != ReturnCode.SUCCESS)
            {
                MessageBox.Show("Error writing declaration file. Sorry!");
            }
        }
Esempio n. 3
0
 public DeclarationEditor()
 {
     decFile = new DECFile();
     InitializeComponent();
 }