You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
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<Class1> jsonFile = JsonSerializer.Deserialize<List<Class1>>(File.ReadAllText(path));
|
|
|
|
|
AssitDB assit = new AssitDB(jsonFile);
|
|
|
|
|
Splash.CloseForm();
|
|
|
|
|
this.Close();
|
|
|
|
|
assit.Show();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|