private void AddTextBoxToScene(string text) { var tbx = AddingItemsHelper.CreateTextBox(text); labelsPanel.Children.Add(tbx.Item1); textBoxPanel.Children.Add(tbx.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); }