public FrmInput()
        {
            InitializeComponent();

            cbTazHeader.Enabled = false;
            CatsSelected = false;
            CodesSelected = false;

            NaicsForm = FrmNaics.GetInstance();
            SicForm = FrmSic.GetInstance();
            Input = FrmOutput.GetInstance();

            // TAZ file: *.txt files (comma seperated)
            // Block file: *.dat file (w/o header) (space seperated)
            // MZ file: *.txt file (comma seperated)
            // school file: *.txt file (comma seperated)
            // what about ASCII format
        }
        private void btnOutputForm_Click(object sender, EventArgs e)
        {
            try
            {
                if (Input.IsDisposed) Input = new FrmOutput();
                Input.Show();

                // if read data from XML file
                if (ReadFromXml) Input.ShowXmlInputs(OutNumEmplCats, OutEmplCats, OutEmplCatsNaics);
            }

            catch (System.IO.IOException error)
            {
                MessageBox.Show("Error: " + error.Message);
                if (Input != null) Input.Close();
            }
        }
 public static FrmOutput GetInstance()
 {
     if(outputForm==null) return outputForm = new FrmOutput();
     else return FrmOutput.outputForm;
 }