using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Text.Json; using System.Threading.Tasks; using System.Windows.Forms; namespace AssistDB { public partial class Menu : Form { public Menu(FileInfo[] files) { InitializeComponent(); this.comboBox1.Items.AddRange(files); } private void button1_Click(object sender, EventArgs e) { Splash.ShowSplashScreen(this.Location, this.Height, this.Width); String path = @"Sources\json\" + this.comboBox1.SelectedItem; List jsonFile = JsonSerializer.Deserialize>(File.ReadAllText(path)); AssitDB assit = new AssitDB(jsonFile); Splash.CloseForm(); this.Close(); assit.Show(); } } }