private TextBox MakeClass(Hull hull) { TextBox textbox = new TextBox(); textbox.Text = hull.HullTypes.HighName(); textbox.TextAlignment = TextAlignment.Center; textbox.IsReadOnly = true; Grid.SetRow(textbox, HullCount); Grid.SetColumn(textbox, 3); return textbox; }
private void SetHull(Hull hull) { Starship.Hull = hull; UpdateHull(); }
private TextBox MakeSlots(Hull hull) { TextBox textbox = new TextBox(); textbox.Text = hull.ProwSlots + "/" + hull.DorsalSlots + "/" + hull.SideSlots + "/" + hull.KeelSlots + "/" + hull.AftSlots; textbox.ToolTip = "Prow/Dorsal/Side/Keel/Aft"; textbox.TextAlignment = TextAlignment.Center; textbox.IsReadOnly = true; Grid.SetRow(textbox, HullCount); Grid.SetColumn(textbox, 10); return textbox; }
private TextBox MakeSource(Hull hull) { TextBox textbox = new TextBox(); textbox.Text = hull.Origin.Name(); textbox.ToolTip = hull.Origin.LongName() +", Page: " + hull.PageNumber; textbox.TextAlignment = TextAlignment.Center; textbox.IsReadOnly = true; Grid.SetRow(textbox, HullCount++); Grid.SetColumn(textbox, 11); return textbox; }
private Button MakeName(Hull hull) { Button button; button = new Button(); button.Content = hull.Name; button.Click += ((s, e) => SetHull(hull)); Grid.SetRow(button, HullCount); Grid.SetColumn(button, 0); return button; }