Пример #1
0
        private void btChecksum_Click(object sender, EventArgs e)
        {
            var file = new OpenFileDialog();

            if (file.ShowDialog() == DialogResult.OK)
            {
                CsvImporter.ImportChecksum(file.FileName);
            }
        }
Пример #2
0
        private void btImportTemp_Click(object sender, EventArgs e)
        {
            var file = new OpenFileDialog();

            if (file.ShowDialog() == DialogResult.OK)
            {
                CsvImporter.Import(file.FileName, true);
            }
        }
Пример #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);
            }
        }
Пример #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);
                }
            }
        }