Exemplo n.º 1
0
 private void Setup()
 {
     SetFormText();
     ImportControl.Clear();
     ResultsControl.Clear();
     ViewDesign();
 }
Exemplo n.º 2
0
        private void buttonResults_Click(object sender, EventArgs e)
        {
            ResultsControl resultsControl = new ResultsControl(this.viewModel.surveyId);

            resultsControl.Dock          = DockStyle.Fill;
            resultsControl.AutoScaleMode = AutoScaleMode.None;
            OnNotifyPropertyChanged(resultsControl, "");
        }
Exemplo n.º 3
0
 private void searchBox_KeyDown(object sender, KeyRoutedEventArgs e)
 {
     if (e.Key.Equals(Windows.System.VirtualKey.Enter))
     {
         //Windows.UI.ViewManagement.InputPane.GetForCurrentView().TryHide();
         ResultsControl.Focus(FocusState.Programmatic);
         searchBox_QuerySubmitted((sender as TextBox).Text.Trim());
     }
 }
Exemplo n.º 4
0
        private void OnNotifyPropertyChanged(ResultsControl resultsControl, string propertyName)
        {
            var tmp = PropertyChanged;

            if (tmp != null)
            {
                tmp(resultsControl, new PropertyChangedEventArgs(propertyName));
            }
        }
 private void ShowResults()
 {
     if (resultsControl == null)
     {
         resultsControl = new ResultsControl();
     }
     CenterView     = resultsControl;
     resultsControl = null;
 }
Exemplo n.º 6
0
        private void ViewResults()
        {
            DesignControl.Visible  = false;
            ImportControl.Visible  = false;
            ResultsControl.Visible = true;

            menuViewDesign.Checked  = false;
            menuViewImport.Checked  = false;
            menuViewResults.Checked = true;

            ResultsControl.UpdateGrid();
        }