private ObservableCollection <Region> GetRegionListAsync()
        {
            var region = new Region();
            var task   = _rs.GetTableList(_vm.IsConnected, region, HttpRequestMethods.Get, "api/region/");

            return(task);
        }
Exemplo n.º 2
0
        private void ExecuteAddRegionCommand()
        {
            this.isNew   = true;
            this.IsDirty = true;

            var item = new Region {
                RegionName = "New Region"
            };

            this.RegionList.Add(item);
            this.SelectedListItem   = item;
            this.SelectedRegionItem = null;

            this.isNew = false;
            this.ShowEditButtons(false);
        }