Beispiel #1
0
 private void uc_CreateUpdateContract_Load(object sender, EventArgs e)
 {
     if (company_id != 0)
     {
         cbox_companies.Items.Add(CompanyController.getById(company_id).name);
         cbox_companies.SelectedIndex = 0;
     }
     if (patent_id != 0)
     {
         cbox_patents.Items.Add(PatentController.getById(patent_id).number);
         cbox_patents.SelectedIndex = 0;
     }
     if (create_date > dtime_deposit_date.MinDate)
     {
         dtime_deposit_date.Value = create_date;
     }
     if (duration != 0)
     {
         nbox_duration.Value = duration;
     }
     if (price != 00.00)
     {
         tbox_price.Text = price.ToString();
     }
 }
Beispiel #2
0
 private void uc_ContractModel_Load(object sender, EventArgs e)
 {
     lbl_id.Text          = id.ToString();
     lbl_company.Text     = CompanyController.getById(company_id).name;
     lbl_patent.Text      = PatentController.getById(patent_id).number;
     lbl_create_date.Text = create_date.ToString();
     lbl_duration.Text    = duration.ToString() + "an(s)";
     lbl_price.Text       = price.ToString().Replace('.', ',') + "€";
 }