Beispiel #1
0
        private void changeBttn_Click(object sender, EventArgs e)
        {
            Hide();
            foreach (var a in FederalDistricts.list)
            {
                if (a.name == treeView1.SelectedNode.Text)
                {
                    CollectionsForm colForm = new CollectionsForm(this, a);
                    colForm.Show();
                    return;
                }
            }

            foreach (var a in Regions.list)
            {
                if (a.name == treeView1.SelectedNode.Text)
                {
                    CollectionsForm colForm = new CollectionsForm(this, a);
                    colForm.Show();
                    return;
                }
            }

            foreach (var a in Districts.list)
            {
                if (a.name == treeView1.SelectedNode.Text)
                {
                    CollectionsForm colForm = new CollectionsForm(this, a);
                    colForm.Show();
                    return;
                }
            }
        }
Beispiel #2
0
        private void createMenuBttn_Click(object sender, EventArgs e)
        {
            CollectionsForm colForm = new CollectionsForm(this);

            colForm.Show();
        }