Example #1
0
        public RequestConfigurationView(DBModels.Request request)
        {
            InitializeComponent();
            var requestModel = new RequestConfigurationViewModel(request);

            DataContext = requestModel;
        }
Example #2
0
 private void OnRequestChanged(DBModels.Request request)
 {
     if (_currentRequestConfigurationView == null)
     {
         _currentRequestConfigurationView = new RequestConfigurationView(request);
         MainGrid.Children.Add(_currentRequestConfigurationView);
         Grid.SetRow(_currentRequestConfigurationView, 0);
         Grid.SetRowSpan(_currentRequestConfigurationView, 2);
         Grid.SetColumn(_currentRequestConfigurationView, 1);
     }
     else
     {
         _currentRequestConfigurationView.DataContext = new RequestConfigurationViewModel(request);
     }
 }
Example #3
0
 public void AddRequest(System.Guid userGuid, DBModels.Request request)
 {
     base.Channel.AddRequest(userGuid, request);
 }
Example #4
0
 public System.Threading.Tasks.Task AddRequestAsync(System.Guid userGuid, DBModels.Request request)
 {
     return(base.Channel.AddRequestAsync(userGuid, request));
 }