Beispiel #1
0
        private void sqliteMysql_Click(object sender, EventArgs e)
        {
            var sqlite = new TaxesEntities();
            var mysql = new MySQLContext();

            if (this.OutputDir == null)
            {
                MessageBox.Show(@"Select output directory first");
                return;
            }

            try
            {
                var export = new SQLiteMySQLExport(mysql, sqlite);
                export.exportXLSX(this.OutputDir);
                MessageBox.Show(@"Reports are succesfully exported in " + this.OutputDir);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Beispiel #2
0
 public SQLiteMySQLExport(MySQLContext mysqlContext, TaxesEntities sqliteCotext)
 {
     this.mySql = mysqlContext;
     this.sqlite = sqliteCotext;
 }