Ejemplo n.º 1
0
        private void добавитьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            paginator.ShowRowsChanges -= Paginator_ShowRowsChanges;
            AddCountryForm addCountryForm = new AddCountryForm(dB.Add(), dB);

            addCountryForm.ShowDialog();
            paginator.ShowRowsChanges += Paginator_ShowRowsChanges;
            dB.Save();
        }
        private void редактироватьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedIndices.Count == 0)
            {
                return;
            }
            Country        country        = (Country)listView1.SelectedItems[0].Tag;
            AddCountryForm addCountryForm = new AddCountryForm(country, dB);

            addCountryForm.ShowDialog();
        }
        private void добавитьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddCountryForm addCountryForm = new AddCountryForm(dB.Add(), dB);

            addCountryForm.ShowDialog();
        }