public Page2(MainData mainData) { InitializeComponent(); this.data = mainData; SetMaxSizes(); SetValues(); }
public Page1(MainData mainData) { InitializeComponent(); this.data = mainData; MakeGridsReadOnly(); SetMaxSizes(); SetValues(); }
private void button_Continue_Click(object sender, RoutedEventArgs e) { Dictionary<int, string> initialStrings = new Dictionary<int, string>(); foreach (var item in textBox_Input.Text.Split(new char[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries)) { initialStrings.Add(initialStrings.Count, item.Trim()); } if (textBox_Input.Text != text) { MainData = new MainData(initialStrings); IsMainDataLoaded = true; text = textBox_Input.Text; button_Continue.IsEnabled = false; } }