// Просмотр информации о найденном контакте.
        void ViewSearchPerson(object sender, EventArgs e)
        {
            ViewPersonWindow viewSearchPerson = new ViewPersonWindow();

            try
            {
                OpenForm(viewSearchPerson);

                PersonToDataGridView(searchResultList, viewSearchPerson, searchForm.SearchResaltListDataGridView);
            }
            catch (Exception)
            {
                return;
            }
        }
Beispiel #2
0
        //  Вывод  информации о конкретной персоне в форму просмотра.
        protected void PersonToDataGridView(NoteBookList list, Form form, DataGridView dataGridView)
        {
            ViewPersonWindow viewform = form as ViewPersonWindow;

            viewform.ViewPersonDataRichTextBox.Text = list[dataGridView.CurrentRow.Index].ToString();
        }
 public ViewPersonPresenter(ViewPersonWindow _window)
     : base()
 {
     this.viewForm           = _window;
     this.viewForm.ViewData += ViewPerson;
 }
        // Открытие формы просмотра.
        private void ViewPersonDataOpenForm(object sender, EventArgs e)
        {
            ViewPersonWindow viewForm = new ViewPersonWindow();

            CheckForm(viewForm, "просмотра ");
        }