Esempio n. 1
0
        public void Export(string exportDataType)
        {
            switch (exportDataType)
            {
            case ExportDataType.JSON:
                ExportData = new ExportJSON();
                break;

            case ExportDataType.XML:
                ExportData = new ExportXML();
                break;

            case ExportDataType.SQL:
                ExportData = new ExportSQL();
                break;
            }

            ExportData.Export();
        }
 public void OnGetJsonReportFromDb(object sender, RoutedEventArgs e)
 {
     ExportJSON.ExportFile();
     Console.WriteLine(CreatedMessage, "JSON");
 }
Esempio n. 3
0
 static void Main(string[] args)
 {
     ExportJSON.EportPlanets("TRAPPIST");
     ExportJSON.ExportAstronomers("Alpha Centauri");
 }