public Tuple <int, int> FieldDimensonSetup() { SizeInput coord = new SizeInput(); Console.WriteLine(ConfigSettings.BoardCreationNotification); int x = coord.SetFieldSize(ConfigSettings.Width); int y = coord.SetFieldSize(ConfigSettings.Height); var result = Tuple.Create(x, y); return(result); }
private SizeInput GenerateTextBox() { SizeInput tb = new SizeInput { Width = 40, Height = 20, FontSize = 12, }; Binding binding = new Binding("Value") { Mode = BindingMode.TwoWay, }; tb.SetBinding(SizeInput.SizeProperty, binding); return(tb); }
private SizeInput GenerateTextBox() { SizeInput tb = new SizeInput { Width = 65, Height = 20, VerticalAlignment = VerticalAlignment.Center, MaxSize = 9999, IsEnabled = true }; Binding binding = new Binding("Value") { Mode = BindingMode.TwoWay, }; tb.SetBinding(SizeInput.SizeProperty, binding); return(tb); }