Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 private void shipGroupSelect(ShipSelectableItem item, long quantity)
 {
     this.selectedFleetControl.SelectGroup(item.Data, quantity);
     item.Text = shipGroupText(item.Data);
 }