private void GoToMainWindow(User userLogin) { Menu_Main menu_Main = new Menu_Main(userLogin); menu_Main.Owner = this; this.Hide(); menu_Main.ShowDialog(); }
public UserControlMenuItem(ItemMenu itemMenu, Menu_Main contex) { InitializeComponent(); this._contex = contex; ExpanderMenu.Visibility = itemMenu.SubItems == null ? Visibility.Collapsed : Visibility.Visible; ListViewItemMenu.Visibility = itemMenu.SubItems == null ? Visibility.Visible : Visibility.Collapsed; this.DataContext = itemMenu; }