public void ViewGrid05SaverJSON() { ViewGrid obj = CreateEntity(); SaverJson saver = new SaverJson(); saver.BuildDefaultJsonSettings(); saver.SerializeObject(@".\Data\ViewGrid05SaverJSON.EasyBpart", obj); Assert.True(File.Exists(@".\Data\ViewGrid05SaverJSON.EasyBpart")); // ViewField impobj = saver.ImportPart<ViewField>(@".\Data\ViewField05SaverJSON.EasyBpart"); }
private void OpenViewGrid(PopoutListButton sender) { _isViewPreferencesOpen = true; sender.PopoutModeEnabled = true; ViewGrid.SetValue(VisibilityProperty, Visibility.Visible); var sb = FindResource("OpeningViewGridStoryboard") as Storyboard; if (sb != null) { sb.Begin(); } }
private void CloseViewGrid(PopoutListButton sender) { _isViewPreferencesOpen = false; sender.PopoutModeEnabled = false; ViewGrid.SetValue(VisibilityProperty, Visibility.Collapsed); var sb = FindResource("ClosingViewGridStoryboard") as Storyboard; if (sb != null) { sb.Begin(); } }
private void ViewGrid_Click(object sender, System.EventArgs e) { if (Convert.ToInt64(ViewGrid.CurrentRowIndex) < 0) { return; } lngSearchId = Convert.ToInt64(ViewGrid[ViewGrid.CurrentRowIndex, 0]); ViewGrid.Select(ViewGrid.CurrentRowIndex); ViewGrid.Select(); ViewGrid.Focus(); }
private void ViewGrid_Click(object sender, System.EventArgs e) { //if (Convert.ToInt64(ViewGrid.CurrentRowIndex.ToString()) < 0) //{ // BtnAdd.Focus(); // return; //} //lngSearchId = Convert.ToInt64(ViewGrid[ViewGrid.CurrentRowIndex, 0].ToString()); ViewGrid.Select(ViewGrid.CurrentRowIndex); ViewGrid.Select(); ViewGrid.Focus(); }
private ViewGrid CreateEntity() { ViewList viewlist = new ViewList(); viewlist.VersionId = Guid.Parse("9602d3d0-75cc-4c75-8868-b3dcaf6ccfba"); ViewGrid viewgrid = viewlist.ViewGrid; viewgrid.ColSpan = 1; viewgrid.Name = "Tabla"; viewgrid.RowSpan = 1; viewgrid.Sequence = 1; viewgrid.AddVF(CreateEntityViewField()); viewgrid.AddVF(CreateEntityViewField()); return(viewgrid); }
public void Generate() { _edgeCount = 0; Rooms.Clear(); Halls.Clear(); for (int x = 0; x < ViewGrid.GetLength(0); x++) { for (int y = 0; y < ViewGrid.GetLength(1); y++) { //Width range check if (x + 1 < ViewGrid.GetLength(0)) { ViewGrid[x, y] = LinkRooms(ViewGrid[x, y], ViewGrid[x + 1, y], "horizontal")[0]; _edgeCount++; //We already have an undirected graph so we only need one edge between nodes to go either way. //ViewGrid[x + 1, y] = LinkRooms(ViewGrid[x, y], ViewGrid[x + 1, y], "horizontal")[1]; } //Height range check if (y + 1 < ViewGrid.GetLength(1)) { ViewGrid[x, y] = LinkRooms(ViewGrid[x, y], ViewGrid[x, y + 1], "vertical")[0]; _edgeCount++; //ViewGrid[x, y + 1] = LinkRooms(ViewGrid[x, y], ViewGrid[x, y + 1], "vertical")[1]; } } } int startX = _random.Next(Width); int startY = _random.Next(Height); ViewGrid[startX, startY].IsStart = true; Start = ViewGrid[startX, startY]; int endX = _random.Next(Width); while (endX == startX) { endX = _random.Next(Width); } int endY = _random.Next(Height); while (endY == startY) { endY = _random.Next(Height); } ViewGrid[endX, endY].IsEnd = true; End = ViewGrid[endX, endY]; }
public void SetUp() { _placePiece = new PlacePiece(this); _viewGrid = new ViewGrid(this); _grid = new GridBuilder().Build(); }
/// <summary> /// Конструктор по умолчанию /// </summary> /// <param name="grid">сетка, которую нужно заполнить ячейками</param> /// <param name="cells">ячейки сетки</param> /// <param name="rowCount">количество строк в сетке</param> /// <param name="columnCount">количество столбцов в сетке</param> public EmulatorManager(ViewGrid grid) { this.grid = grid; }
public void BeginEditingComment() { ViewGrid.BeginEditingSelectionComment(); }
public void BeginEditingLabel() { ViewGrid.BeginEditingSelectionLabel(); }
/// Select View Grid public void ClickViewGrid() { ViewGrid.Click(); }