Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 private void SetHull(Hull hull)
 {
     Starship.Hull = hull;
     UpdateHull();
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 5
0
 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;
 }