Ejemplo n.º 1
0
        private async void MenuItem_RefreshClick(object sender, RoutedEventArgs e)
        {
            contentControl.Content = load;
            await Task.Run(() => System.Threading.Thread.Sleep(2000));

            switch (currentControl)
            {
            case "sqs":
                sqs = new SQSUserControl();

                contentControl.Content = sqs;
                break;

            case "lambda":
                lambda = new LambdaUserControl();
                contentControl.Content = lambda;
                break;

            case "url":
                url = new UrlUserControl();
                contentControl.Content = url;
                break;

            default:
                break;
            }
        }
Ejemplo n.º 2
0
 public WindowDemo()
 {
     InitializeComponent();
     sqs    = new SQSUserControl();
     lambda = new LambdaUserControl();
     url    = new UrlUserControl();
     load   = new LoaingUserControl();
     contentControl.Content = sqs;
     currentControl         = "sqs";
 }