public ChangeMeshDialog(MetroWindow window, DesignerLib.ExternResource res, DesignerLib.FoundResource fres) : base(window) { this.Meshes = new ObservableCollection <DesignerLib.FoundResource>(); this.res = fres; foreach (var fr in res.Resources) { if (fr.ResType == DesignerLib.ResourceType.Mesh) { this.Meshes.Add(fr); } } Meshes.Remove(fres); InitializeComponent(); this.grid.DataContext = this; }
public static void ShowChangeMeshDialog(this MetroWindow window, DesignerLib.ExternResource res, DesignerLib.FoundResource fres) { window.ShowMetroDialogAsync(new ChangeMeshDialog(window, res, fres)); }