public MainWindow() { InitializeComponent(); PuyoConsole.main(null); for (int i = 0; i < 12; i++) { RowDefinition rowDefinition = new RowDefinition(); //rowDefinition.Height = GridLength.Auto; rowDefinition.Height = new GridLength(1, GridUnitType.Star); grid.RowDefinitions.Add(rowDefinition); } for (int i = 0; i < 6; i++) { ColumnDefinition columnDefinition = new ColumnDefinition(); ///columnDefinition.Width = GridLength.Auto; columnDefinition.Width = new GridLength(1, GridUnitType.Star); grid.ColumnDefinitions.Add(columnDefinition); } for (int i = 0; i < 12; i++) { RowDefinition rowDefinition = new RowDefinition(); //rowDefinition.Height = GridLength.Auto; rowDefinition.Height = new GridLength(1, GridUnitType.Star); grid2.RowDefinitions.Add(rowDefinition); } for (int i = 0; i < 6; i++) { ColumnDefinition columnDefinition = new ColumnDefinition(); ///columnDefinition.Width = GridLength.Auto; columnDefinition.Width = new GridLength(1, GridUnitType.Star); grid2.ColumnDefinitions.Add(columnDefinition); } }
public static void main(string[] args) { PuyoConsole pc = new PuyoConsole(); pc.Gameloop(); }