private void ShowUCMovements(bool show) { if (uc_Movements == null) { uc_Movements = new Views.Main_window.UCMovements(); uc_Movements.ParentWindow = this; mMainGrid.Children.Add(uc_Movements); } uc_Movements.Visibility = show ? System.Windows.Visibility.Visible : System.Windows.Visibility.Hidden; uc_Movements.LoadSales(); _Workspace = 1; }