private void editMenuAction(object sender, RoutedEventArgs e)
        {
            EditType editTypeDialog = new EditType(new Type(Id, TypeName, Icon, Description), EditTypeCallback);

            editTypeDialog.Height = 590;
            editTypeDialog.Width  = 450;
            editTypeDialog.ShowDialog();
        }
        private void EditTypeCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            int      toEdit = EnlargenedTypes.First();
            Type     m      = this.Types.SingleOrDefault(x => x.Id == toEdit);
            EditType dialog = new EditType(m, this.EditTypeCallback);

            dialog.Owner = Application.Current.MainWindow;
            dialog.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            dialog.Height    = 490;
            dialog.Width     = 350;
            dialog.MinHeight = 420;
            dialog.MinWidth  = 280;
            dialog.ShowDialog();
        }