Пример #1
0
        /// <summary>
        /// when change tab item reload the others- to get "clean" data
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UpdateTabItem_GotFocus(object sender, RoutedEventArgs e)
        {
            this.AddTabItem.Content = null;
            AddNannyUserControl a = new AddNannyUserControl();

            this.AddTabItem.Content = a;

            this.RemoveTabItem.Content = null;
            RemoveNannyUserControl r = new RemoveNannyUserControl();

            this.RemoveTabItem.Content = r;
        }
Пример #2
0
        /// <summary>
        /// when change tab item reload the others- to get "clean" data
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void AddTabItem_GotFocus(object sender, RoutedEventArgs e)
        {
            this.RemoveTabItem.Content = null;
            RemoveNannyUserControl r = new RemoveNannyUserControl();

            this.RemoveTabItem.Content = r;

            this.UpdateTabItem.Content = null;
            UpdateNannyUserControl u = new UpdateNannyUserControl();

            this.UpdateTabItem.Content = u;
        }