public MainWindow()
 {
     InitializeComponent();                                                  //loads the window
     UIUpdater();                                                            //loads ui
     Activated += MainWindowActivated;                                       //attaches an eventhandler to the activated event
     Closed    += MainWindowClosed;                                          //attaches a eventhandler for when the app closes
     FileAndSerializationMannagment.LoadFromFileAndDeserialize(true, false); //loads autosave
 }
 private void LoadFromClipboardButtonClick(object sender, RoutedEventArgs e)
 {
     FileAndSerializationMannagment.LoadFromFileAndDeserialize(false, true); //loads data from clipboard
     UIUpdater();                                                            //updates the ui
 }
 private void LoadFromFileButtonClick(object sender, RoutedEventArgs e)
 {
     FileAndSerializationMannagment.LoadFromFileAndDeserialize(false, false); //loads data from file
     UIUpdater();                                                             //updates ui
 }