Exemplo n.º 1
0
        private void loadDataToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                OpenFileDialog getFileDialog = new OpenFileDialog();

                getFileDialog.Filter = "CSV files (*.csv)|*.csv";
                getFileDialog.Title  = "Select File Location";
                getFileDialog.ShowDialog();

                if (getFileDialog.FileName == null || getFileDialog.FileName == "")
                {
                    return;
                }

                oldDataForm formOldData = new oldDataForm(getFileDialog.FileName);

                formOldData.ShowDialog();
            }
            catch (Exception)
            {
                return;
            }
        }
Exemplo n.º 2
0
        ////////////////////////////////////////


        private void loadDataToolStripMenuItem_CheckStateChanged(object sender, EventArgs e)
        {
            oldDataForm formOldData = new oldDataForm();

            formOldData.ShowDialog();
        }