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

            try
            {
                OpenForm(viewSearchPerson);

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

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

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