Beispiel #1
0
        public MainForm()
        {
            InitializeComponent();
            InitView init = new InitView();

            init.onDispose += (counts) =>
            {
                if (counts == null)
                {
                    Program = new MyProgram();
                }
                else
                {
                    Program = new MyProgram(true, counts[0], counts[1], counts[2], counts[3]);
                }

                comboPType.SelectedIndex  = 0;
                comboCAType.SelectedIndex = 0;
                comboTypes.SelectedIndex  = 0;

                this.dataGridPerson.DataSource = BindSourcePersons;
                this.dataGridCA.DataSource     = BindSourceCadastralAreas;

                this.InitPersons();
                this.InitCadastralAreas();
            };
            init.ShowDialog();
        }