Exemplo n.º 1
0
        public IOTControl(bool inDesignMode, IRecordContext RecordContext)
        {
            var viewModel = new IOTAreaViewModel(inDesignMode, RecordContext);

            DataContext = viewModel;
            InitializeComponent();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Executes and fetches messages on Get Details button click.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void GetDetailsButton_OnClick(object sender, RoutedEventArgs e)
        {
            IOTAreaViewModel viewModel = DataContext as IOTAreaViewModel;

            if (viewModel != null)
            {
                viewModel.FetchMessage(FilterCriteriaLabel.Content.ToString(), FilterValueComboBox.Text);
            }
        }