Beispiel #1
0
        public void Initialize(IShell shell)
        {
            _shell = shell ?? throw new ArgumentNullException(nameof(shell));

            _controllers.Add(typeof(DatabaseController), new DatabaseController(this));

            _shell.AddMenuItem(new MenuItemViewModel()
            {
                MenuItemIcon    = new BitmapImage(new Uri(ADD_LOCAL_SERVER)),
                MenuItemHeader  = "Connect to server",
                MenuItemCommand = new RelayCommand(ConnectToServer),
                MenuItemPayload = this
            });
        }