public TCBlock(int id, Dictionary <string, TwincatVariable> dict, string filename, TwinCatCommunication comm)
 {
     m_id          = id;
     m_filename    = filename.Insert(filename.LastIndexOf('.'), id.ToString());
     parent        = comm;
     tcAds         = new TcAdsClient();
     notifications = new Dictionary <int, string>();
     IOparameters  = new IO_Parameters(dict);
 }
        public TCBlock(int id, string fullFilename, TwinCatCommunication comm)
        {
            string path = Path.GetDirectoryName(fullFilename) + "\\";
            string filenameWithoutExt = Path.GetFileNameWithoutExtension(fullFilename);
            string filenameExt        = Path.GetExtension(fullFilename);

            m_id          = id;
            m_filename    = path + filenameWithoutExt + id + filenameExt;
            parent        = comm;
            notifications = new Dictionary <int, string>();
            IOparameters  = new IO_Parameters();
            tcAds         = new TcAdsClient();
            stringMaxSize = 80;

            LoadIOConf();
        }