Beispiel #1
0
        public PartMaker()
        {
            InitializeComponent();
            doc = XDocument.Load(filename);
            // ThemeSettings
            themeSettings = new ThemeSettings(XDocument.Load("ThemeSettings.xml"));

            // Action Grids
            drpWeapPartActionList.ItemValueNeeded += new Microsoft.VisualBasic.PowerPacks.DataRepeaterItemValueEventHandler(drpWeapPartActionList_ItemValueNeeded);
            drpDefPartActionList.ItemValueNeeded += new Microsoft.VisualBasic.PowerPacks.DataRepeaterItemValueEventHandler(drpDefPartActionList_ItemValueNeeded);
            drpActPartActionList.ItemValueNeeded += new Microsoft.VisualBasic.PowerPacks.DataRepeaterItemValueEventHandler(drpActPartActionList_ItemValueNeeded);
            drpEngPartActionList.ItemValueNeeded += new Microsoft.VisualBasic.PowerPacks.DataRepeaterItemValueEventHandler(drpEngPartActionList_ItemValueNeeded);
            lblWeapPartActionTitle.DataBindings.Add("Text", PartActions, "Name");
            lblDefPartActionTitle.DataBindings.Add("Text", PartActions, "Name");
            lblActPartActionTitle.DataBindings.Add("Text", PartActions, "Name");
            lblEngPartActionTitle.DataBindings.Add("Text", PartActions, "Name");
            bs.DataSource = PartActions;

            // Existing Parts DDL
            LoadParts();

            // Available Action DDLs
            ShowActions();

            // Weapon Tab - Damage Types DDL
            ShowDamageTypes();

            // Weapon Table - Firing Types DDL
            ShowFiringTypes();
        }
Beispiel #2
0
 public HullMaker()
 {
     InitializeComponent();
     drpPartLimits.ItemValueNeeded += new Microsoft.VisualBasic.PowerPacks.DataRepeaterItemValueEventHandler(drpPartLimits_ItemValueNeeded);
     cbxPartType.SelectedIndexChanged+=new EventHandler(cbxPartType_SelectedIndexChanged);
     bsPartLimits.DataSource = PartCounts;
     ts = new ThemeSettings(XDocument.Load("ThemeSettings.xml"));
     LoadHulls();
     LoadPartTypes();
     ShowPartTypes();
 }