예제 #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
        }
예제 #2
0
        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();
            }
        }
예제 #3
0
 public static FrmOutput GetInstance()
 {
     if(outputForm==null) return outputForm = new FrmOutput();
     else return FrmOutput.outputForm;
 }