Example #1
0
        private void buttonDesc_Click(object sender, EventArgs e)
        {
            if (_curListBox.SelectedIndex == -1)
            {
                MessageBox.Show("Не выбрана панель");
                return;
            }
            PanelAkrFacade panel         = (PanelAkrFacade)_curListBox.SelectedItem;
            FormPanelDesc  formPanelDesc = new FormPanelDesc(panel);

            if (formPanelDesc.ShowDialog() == DialogResult.OK)
            {
                refreshDataSource();
            }
        }
 private void buttonDesc_Click(object sender, EventArgs e)
 {
     if (_curListBox.SelectedIndex == -1)
     {
         MessageBox.Show("Не выбрана панель");
         return;
     }
     PanelAkrFacade panel = (PanelAkrFacade)_curListBox.SelectedItem;
     FormPanelDesc formPanelDesc = new FormPanelDesc(panel);
     if (formPanelDesc.ShowDialog() == DialogResult.OK)
     {
         refreshDataSource();
     }
 }