public CreatePointObject() { InitializeComponent(); foreach (var type in PointObject.ValidTypes) { var typeName = PointObject.GetTypeNameFromId(type); types.Add(typeName, type); cmbType.Items.Add(typeName); } if (PointObject.ValidTypes.Length > 0) { cmbType.SelectedIndex = 0; } Text = Strings.CreatePointObject; lblId.Text = Strings.ID; lblMapId.Text = Strings.MapID; lblType.Text = Strings.Type; lblX.Text = Strings.XPos; lblY.Text = Strings.YPos; btnCreate.Text = Strings.Create; this.SetFonts(); }
public PointObjectForm() { InitializeComponent(); // Initialize localization idHeader.Text = Strings.ID; typeHeader.Text = Strings.Type; mapIdHeader.Text = Strings.MapID; xPosHeader.Text = Strings.XPos; yPosHeader.Text = Strings.YPos; btnCreate.Text = Strings.Create; btnDelete.Text = Strings.Delete; btnEdit.Text = Strings.Edit; foreach (var type in PointObject.ValidTypes) { var typeName = PointObject.GetTypeNameFromId(type); types.Add(typeName, type); } }