Пример #1
0
        public void Test2()
        {
            var list = new List <BodySettings>();

            list.Add(new BodySettings());
            list.Add(new BodySettings());
            using (var dlg = new BodySettingsDialog())
            {
                dlg.Vm.DataSource = list;
                dlg.ShowDialog();
            }
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var bb   = new BodySettingsBuilder();
            var list = new List <BodySettings>();

            for (int i = 0; i < 4; i++)
            {
                list.Add(bb.Build(i, 4));
            }


            using (var dlg = new BodySettingsDialog())
            {
                dlg.Vm.DataSource = list;
                dlg.ShowDialog();
            }
        }