Example #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 AddTabItem_GotFocus(object sender, RoutedEventArgs e)
        {
            this.RemoveTabItem.Content = null;
            RemoveChildUserControl r = new RemoveChildUserControl();

            this.RemoveTabItem.Content = r;

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

            this.UpdateTabItem.Content = u;
        }
Example #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 RemoveTabItem_GotFocus(object sender, RoutedEventArgs e)
        {
            this.AddTabItem.Content = null;
            AddChildUserControl a = new AddChildUserControl();

            this.AddTabItem.Content = a;

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

            this.UpdateTabItem.Content = u;
        }