コード例 #1
0
        public MainViewModel()
        {
            repository = new HostRepository();
            Hosts      = repository.GetAll().ToList();

            EditItemCommand   = new RelayCommand <Host>(EditItem);
            AddItemCommand    = new RelayCommand(AddItem);
            RemoveItemCommand = new RelayCommand <Host>(RemoveItem);
            StopItemCommand   = new RelayCommand <Host>(StopItem);
        }