Пример #1
0
 /// <summary>
 /// Method to complete user selection using selection helper and display the caller window (InputSelectionDialog)
 /// </summary>
 /// <param name="selectedAddress">Selected address by user</param>
 /// <param name="submitSelected">Value indicating if the user cancelled the window or Ok</param>
 private void OnSelectionComplete(string selectedAddress, bool submitSelected)
 {
     nativeExcelWindow.ReleaseHandle();
     if (submitSelected)
     {
         callerDialog.SelectedItem.FocusedTextBox.Text = selectedAddress;
         callerDialog.SelectedItem.FocusedTextBox.Focus();
     }
     callerDialog.ShowDialog();
 }
Пример #2
0
        public TaskHeader SelectProgram()
        {
            ISelectionDialog dlg          = SelectionDialogFactory.CreateDialog(2, ZoomType.SelectProgram, null, null);
            TaskHeader       selectedTask = null;

            if ((bool)dlg.ShowDialog())
            {
                selectedTask = projectManager.GetPrgByIdx((int)dlg.SelectedItem);
            }
            return(selectedTask);
        }