private void AddTextBoxToScene(string text) { var tbx = AddingItemsHelper.CreateTextBox(text); labelsPanel.Children.Add(tbx.Item1); textBoxPanel.Children.Add(tbx.Item2); }
private void AddComboBoxToScene(string name, ComboBox box) { var cbx = AddingItemsHelper.CreateComboBox(box, name); labelsPanel.Children.Add(cbx.Item1); textBoxPanel.Children.Add(cbx.Item2); }
private void AddTextBoxToScene(string labelText, string textBoxName, int textBoxValue) { var tbx = AddingItemsHelper.CreateTextBox(labelText); var label = tbx.Item1; var textbox = tbx.Item2; textbox.Name = textBoxName; textbox.Text = textBoxValue.ToString(); labelsPanel.Children.Add(label); textBoxPanel.Children.Add(textbox); }