コード例 #1
0
        private void barButtonItemAddItem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            BindingSource bindingSource = new BindingSource();

            bindingSource.DataSource = new Weapon();
            FormAdd addDwarfForm = new FormAdd(bindingSource, this, tribeList);

            addDwarfForm.ShowDialog();
        }
コード例 #2
0
        private void barButtonItemAddTribe_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            BindingSource bindingSource = new BindingSource();

            bindingSource.DataSource = new Tribe("", 0, new List <Dwarf>());
            FormAdd addTribeForm = new FormAdd(bindingSource, this, tribeList);

            addTribeForm.ShowDialog();
        }