Ejemplo n.º 1
0
        public MainNavigationControl(TaskViewModel taskViewModel)
        {
            InitializeComponent();
            _controls    = new List <IControlClosed>();
            _menuContext = new MenuContext();

            Menu = new MenuBar(_menuContext);
            Menu.MenuItemClicked += MenuItemClicked;
            MenuBar.Content       = Menu;

            _contextMenu = new TaskContextMenu(_menuContext);
            _contextMenu.MenuItemClicked += MenuItemClicked;

            TaskOverviewControl = new TaskOverviewControl(taskViewModel, this);
            TaskOverviewControl.SelectedTaskChanged += UpdateSelectedTask;
            TaskOverviewControl.TaskDoubleClicked   += ShowTaskDetails;
            TaskOverviewControl.TaskRightClicked    += TaskRightClicked;
            InsertAndShowControl(TaskOverviewControl);

            _lifetime      = taskViewModel.Lifetime;
            _taskViewModel = taskViewModel;
        }
Ejemplo n.º 2
0
 public MenuBar(MenuContext context)
 {
     DataContext = context;
     InitializeComponent();
 }
Ejemplo n.º 3
0
 public TaskContextMenu(MenuContext context)
 {
     DataContext = context;
     InitializeComponent();
 }