public MainViewModel() { try { Elements = new ObservableCollection <Element>(InputClass.GetElementsByOrderFromFile(InputClass.GetSortingElementsFromFile())); } catch (Exception e) { MessageBox.Show(e.Message); } }