public mBuoyPanel(mBuoy mBuoy) { InitializeComponent(); this.mBuoy = mBuoy; broadcastTextBox.Text = mBuoy.Message; }
private async void buoyToolStripMenuItem_Click(object sender, EventArgs e) { mBuoy mBuoy = new mBuoy(galaxy); using (UnitEditor ue = new UnitEditor(mBuoy)) if (ue.ShowDialog() == DialogResult.OK) { string xml = await server.CheckUnitXml(ue.XML); await galaxy.UpdateUnitXml(xml); } }