Пример #1
0
        private void briefContentLetterDGV_CellDoubleClick(object sender, EventArgs e)
        {
            int indexOfSelectedRow = briefContentLetterDGV.CurrentCell.RowIndex;

            ((ApplicationState)ServiceProvider.GetService(typeof(ApplicationState))).SelectedLetterView = _lettersInfo[indexOfSelectedRow];

            using (var fullContentLetterForm = new FullContentLetterForm(ServiceProvider))
            {
                fullContentLetterForm.ShowDialog();
            }
            FillBriefContentLetterDGV();
        }
Пример #2
0
        private void InitializeFullContentLetterForm()
        {
            int indexOfSelectedRow = briefContentLetterDGV.CurrentCell.RowIndex;

            _selectedRowInSelectedFolder[_selectNodeIndex] = indexOfSelectedRow;
            ((ApplicationState)ServiceProvider.GetService(typeof(ApplicationState))).SelectedLetterView = _lettersInfo[indexOfSelectedRow];


            using (var fullContentLetterForm = new FullContentLetterForm(ServiceProvider))
            {
                if (fullContentLetterForm.ShowDialog() == DialogResult.OK)
                {
                }
            }
            FillBriefContentLetterDGV();
        }