Esempio n. 1
0
        //------------------------------------------------------------
        private void LoadTagFile(string FileName)
        {
            if (FileName == null)
            {
                if (dlgOpen.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                FileName = dlgOpen.FileName;
            }
            Registry_SetTagFile(FileName);

            _Tags            = null;
            lblWait.Visible  = true;
            Status_Text.Text = "Loading Tag File: " + FileName;
            Update();

            try
            {
                _Tags            = new CTagFile(FileName);
                _Prefix          = _Tags.Prefix;
                txtPrefix.Text   = _Prefix;
                Status_Text.Text = "Tag File Loaded (" + _Tags.Count.ToString() + ")";
            }
            catch (Exception ex)
            {
                Status_Text.Text = "Tag File Loading Failed";
                MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message);
            }

            lblWait.Visible = false;
            Update();
        }
Esempio n. 2
0
        //************************************************************
        public frmMain()
        {
            InitializeComponent();
            _Tags     = null;
            _Prefix   = null;
            _Files    = null;
            _TabStops = null;

            lblWait.Parent = this;
            lblWait.BringToFront();
        }