private void shipGroupSplit(ShipSelectableItem shipItem) { using (var form = new FormSelectQuantity(shipItem.Data.Quantity, 1)) { form.ShowDialog(); var thousandsFormat = new ThousandsFormatter(shipItem.Data.Quantity); shipItem.IsSelected = form.SelectedValue > 0; shipItem.Text = shipItem.Data.Design.Name + Environment.NewLine + thousandsFormat.Format(form.SelectedValue) + " / " + thousandsFormat.Format(shipItem.Data.Quantity); this.selectedFleetControl.SelectGroup(shipItem.Data, form.SelectedValue); } }
private void shipGroupSelect(ShipSelectableItem item, long quantity) { this.selectedFleetControl.SelectGroup(item.Data, quantity); item.Text = shipGroupText(item.Data); }