public Printer(Client client, Repair repair) { this.client = client; this.repair = repair; InitializeComponent(); }
public NewItemWindow(List<string> brands, Repair repair, string id) { this.actualRepair = repair; this.newItem = new Item(); this.newItem.id = id; InitializeComponent(); init(brands); }
public NewRepairWindow(ref List<Repair> repairs, List<Client> clients, Settings settings) { this.newRepair = new Repair(); this.settings = settings; this.newRepair.id = getNextId(); this.repairs = repairs; InitializeComponent(); this.brandComboBox.Items.AddRange(settings.brands.ToArray()); this.brandComboBox.SelectedIndex = 0; this.typeComboBox.SelectedIndex = 0; foreach (Client client in clients) this.clientComboBox.Items.Add(client.name); }