Example #1
0
        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
        }
Example #2
0
        private void btnEmplCatsOk_Click(object sender, EventArgs e)
        {
            try
            {
                // Get empl classification: NAICS or SIC
                GetEmploymentClassificationType();

                // Get selected employment categories
                GetEmploymentCategories();

                // show form for codes input
                if (EmplClassType == Constants.Naics)
                {
                    if (NaicsForm.IsDisposed) NaicsForm = new FrmNaics();
                    NaicsForm.Show();

                    NaicsForm.ShowEmplFields(NumEmplCats, EmplCatsName);
                    if (ReadFromXml) NaicsForm.ShowXmlInputs(NumEmplCats, EmplCatsName, NaicsCodes);
                }

                else if (EmplClassType == Constants.Sic)
                {
                    if (SicForm.IsDisposed) SicForm = new FrmSic();
                    SicForm.Show();

                    SicForm.ShowEmplFields(NumEmplCats, EmplCatsName);
                    if (ReadFromXml) SicForm.ShowXmlInputs(NumEmplCats, EmplCatsName, SicCodes);
                }
            }

            catch (System.IO.IOException error)
            {
                MessageBox.Show("Error: " + error.Message);
                if (NaicsForm != null) this.Close();
                if (SicForm != null) this.Close();
            }
        }
Example #3
0
 public static FrmSic GetInstance()
 {
     if (sicForm == null) return sicForm = new FrmSic();
     else return FrmSic.sicForm;
 }