Gilgame.SEWorkbench.ViewModels.ProjectItemViewModel.SetGrid C# (CSharp) Method

SetGrid() public method

public SetGrid ( Interop grid ) : void
grid Interop
return void
        public void SetGrid(Interop.Grid grid)
        {
            GridItemViewModel vm = CreateGridViewModel(grid);

            _Grid.Clear();
            _Grid.Add(vm);
        }

Usage Example

コード例 #1
0
        private void LoadBlueprints(ProjectItemViewModel item, bool failed)
        {
            if (item.Type == ProjectItemType.Blueprints)
            {
                string       name;
                Interop.Grid grid;

                Interop.Blueprint.Import(item.Blueprint, out name, out grid);

                if (grid == null)
                {
                    failed = true;
                }
                else
                {
                    item.SetGrid(grid);
                }
            }
            foreach (ProjectItemViewModel child in item.Children)
            {
                LoadBlueprints(child, failed);
            }
        }
All Usage Examples Of Gilgame.SEWorkbench.ViewModels.ProjectItemViewModel::SetGrid