コード例 #1
0
ファイル: HullChooser.xaml.cs プロジェクト: hooperk/Starship
 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;
 }
コード例 #2
0
ファイル: HullChooser.xaml.cs プロジェクト: hooperk/Starship
 private void SetHull(Hull hull)
 {
     Starship.Hull = hull;
     UpdateHull();
 }
コード例 #3
0
ファイル: HullChooser.xaml.cs プロジェクト: hooperk/Starship
 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;
 }
コード例 #4
0
ファイル: HullChooser.xaml.cs プロジェクト: hooperk/Starship
 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;
 }
コード例 #5
0
ファイル: HullChooser.xaml.cs プロジェクト: hooperk/Starship
 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;
 }