示例#1
0
        public Printer(Client client, Repair repair)
        {
            this.client = client;
            this.repair = repair;

            InitializeComponent();
        }
示例#2
0
        public NewItemWindow(List<string> brands, Repair repair, string id)
        {
            this.actualRepair = repair;
            this.newItem = new Item();
            this.newItem.id = id;

            InitializeComponent();

            init(brands);
        }
示例#3
0
        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);
        }