예제 #1
0
        private void ButtonAddClick(object sender, RoutedEventArgs e)
        {
            ButtonsEnabled = false;
            var dialog = new AddFeed();

            dialog.Show(DialogPlaceHolder);
            dialog.OnClose += (o, result) =>
            { ButtonsEnabled = true;
              dialog.Dispose(); };
        }
예제 #2
0
 private void ButtonAddClick(object sender, RoutedEventArgs e)
 {
     ButtonsEnabled = false;
     var dialog = new AddFeed();
     dialog.Show(DialogPlaceHolder);
     dialog.OnClose += (o, result) =>
                           { ButtonsEnabled = true;
                               dialog.Dispose();
                           };
 }