Ejemplo n.º 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;
            AddMotherUserControl a = new AddMotherUserControl();

            this.AddTabItem.Content = a;

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

            this.RemoveTabItem.Content = r;
        }
Ejemplo n.º 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;
            RemoveMotherUserControl r = new RemoveMotherUserControl();

            this.RemoveTabItem.Content = r;

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

            this.UpdateTabItem.Content = u;
        }