Exemple #1
0
		Control Default()
		{
			var control = new TextBox { Text = "Some Text" };
			LogEvents(control);

			var selectAll = new Button { Text = "Select All" };
			selectAll.Click += (sender, e) => control.SelectAll();

			var layout = new DynamicLayout { DefaultSpacing = new Size(5, 5) };
			layout.Add(control);
			layout.AddSeparateRow(null, selectAll, null);
			return layout;
		}
		Control Default()
		{
			var control = new TextBox { Text = "Some Text" };
			LogEvents(control);

			var selectAll = new Button { Text = "Select All" };
			selectAll.Click += (object sender, EventArgs e) => {
				control.SelectAll();
			};

			var layout = new DynamicLayout(Padding.Empty);
			layout.Add(control);
			layout.AddSeparateRow(null, selectAll, null);
			return layout;
		}