Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 public static void ShowChangeMeshDialog(this MetroWindow window, DesignerLib.ExternResource res, DesignerLib.FoundResource fres)
 {
     window.ShowMetroDialogAsync(new ChangeMeshDialog(window, res, fres));
 }