public Printer(Client client, Repair repair) { this.client = client; this.repair = repair; InitializeComponent(); }
public NewClientWindow(ref List<Client> clients, ref Client client) { this.clients = clients; this.actualClient = client; InitializeComponent(); this.nameTextBox.Text = client.name; this.streetTextBox.Text = client.address; if (client.code.Length > 5) { this.post1TextBox.Text = client.code.Substring(0, 2); this.post2TextBox.Text = client.code.Substring(3, 3); } this.cityTextBox.Text = client.city; this.telTextBox.Text = client.telnum; this.emailTextBox.Text = client.email; this.addClientButton.Text = "Zmień"; }