Exemple #1
0
        private void configureShipBut_Click(object sender, EventArgs e)
        {
            ConfigureShipForm formMe  = new ConfigureShipForm();
            MainForm          theForm = (this.Parent as MainForm);

            formMe.Show();
            formMe.SetPrevForm(theForm);

            if (theForm.theShip.isSet)
            {
                formMe.ShipUpdate(theForm.theShip);
            }
        }
        private void selectShipBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            var aString = selectShipBox.SelectedItem.ToString();

            SelectedShipTable = ShipBaseTable.AsEnumerable().Where(row => row.Field <String>("Ship") == aString).CopyToDataTable();
            SBind.DataSource  = SelectedShipTable;
            ShipBrowseGrid.Refresh();

            var theName = SelectedShipTable.Rows[0][0].ToString();
            var Large   = Int32.Parse(SelectedShipTable.Rows[0][6].ToString());
            var Med     = Int32.Parse(SelectedShipTable.Rows[0][7].ToString());
            var Small   = Int32.Parse(SelectedShipTable.Rows[0][8].ToString());
            var Tier    = SelectedShipTable.Rows[0].Field <Int32>("Tier");
            var Engine  = SelectedShipTable.Rows[0].Field <string>("Engine");
            ConfigureShipForm theForm = (this.Parent as ConfigureShipForm);

            theForm.componentSelect1.UpdateComponentBoxes(theName, Large, Med, Small, Tier, Engine);
        }
Exemple #3
0
        private void SendCompToMenu()
        {
            ConfigureShipForm theForm = (this.Parent as ConfigureShipForm);

            theForm.shipConfigureMenu1.IntakeNewComponents(MySelectedComp);
        }