Exemplo n.º 1
0
        private void btChecksum_Click(object sender, EventArgs e)
        {
            var file = new OpenFileDialog();

            if (file.ShowDialog() == DialogResult.OK)
            {
                CsvImporter.ImportChecksum(file.FileName);
            }
        }
Exemplo n.º 2
0
        private void btImportTemp_Click(object sender, EventArgs e)
        {
            var file = new OpenFileDialog();

            if (file.ShowDialog() == DialogResult.OK)
            {
                CsvImporter.Import(file.FileName, true);
            }
        }
Exemplo n.º 3
0
        private void btUpdateSource_Click(object sender, EventArgs e)
        {
            var file = new OpenFileDialog();

            if (file.ShowDialog() == DialogResult.OK)
            {
                var header = MessageBox.Show("Header aanwezig?", "", MessageBoxButtons.YesNo);
                CsvImporter.UpdateSource(file.FileName, header == DialogResult.Yes);
            }
        }
Exemplo n.º 4
0
        private void btImport_Click(object sender, EventArgs e)
        {
            var file = new OpenFileDialog();

            if (file.ShowDialog() == DialogResult.OK)
            {
                try
                {
                    Cursor.Current = Cursors.WaitCursor;
                    CsvImporter.Import(file.FileName);
                    Cursor.Current = Cursors.Default;
                }
                catch (Exception exception)
                {
                    Cursor.Current = Cursors.Default;
                    MessageBox.Show(exception.Message);
                }
            }
        }