Exemplo n.º 1
0
        private async void NextButton_Click(object sender, RoutedEventArgs e)
        {
            if (page.Validate())
            {
                if (currentPage == 11 || currentPage == 21 || currentPage == 31)
                {
                    Task run = null;
                    if (currentPage == 11)
                    {
                        run = new Task(() => Business.StartMuxe());
                    }
                    if (currentPage == 21)
                    {
                        run = new Task(() => Business.StartMerge());
                    }
                    if (currentPage == 31)
                    {
                        run = new Task(() => Business.StartSplit());
                    }
                    await WorkingWindow.InstanceAsync(this, run);

                    CurrentPage = 1;
                }

                CurrentPage++;
            }
        }