You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NodeEditor/MainWindow.xaml.cs

54 lines
1.3 KiB
C#

using Microsoft.Win32;
using NodeEditor.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace NodeEditor
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
// Editor.Visibility = Visibility.Visible;
}
private void loadFromFile(object sender, RoutedEventArgs e)
{
OpenFileDialog fileView = new OpenFileDialog();
ReadJSON readJSON = new ReadJSON();
string fileText = File.ReadAllText(fileView.FileName);
if (readJSON.validateJSON(fileText))
{
}
}
private void createNewProject(object sender, RoutedEventArgs e)
{
// Startup.Visibility = Visibility.Hidden;
// Editor.Visibility = Visibility.Visible;
}
}
}