示例#1
0
        public Page2(MainData mainData)
        {
            InitializeComponent();

            this.data = mainData;
            SetMaxSizes();
            SetValues();
        }
示例#2
0
        public Page1(MainData mainData)
        {
            InitializeComponent();

            this.data = mainData;
            MakeGridsReadOnly();
            SetMaxSizes();
            SetValues();
        }
示例#3
0
        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;
            }
        }