예제 #1
0
 private void uc_UtilityModel_Load(object sender, EventArgs e)
 {
     lbl_id.Text          = id.ToString();
     lbl_molecule.Text    = MoleculeController.getById(molecule_id).generic_name;
     lbl_name.Text        = name;
     lbl_description.Text = description;
 }
예제 #2
0
 private void uc_CreateUpdatePatent_Load(object sender, EventArgs e)
 {
     if (molecule_id != 0)
     {
         cbox_molecules.Items.Add(MoleculeController.getById(molecule_id).real_name);
         cbox_molecules.SelectedIndex = 0;
     }
     if (company_id != 0)
     {
         cbox_companies.Items.Add(CompanyController.getById(company_id).name);
         cbox_companies.SelectedIndex = 0;
     }
     if (country != null)
     {
         tbox_country.Text = country;
     }
     if (number != null)
     {
         tbox_number.Text = number.Substring(3);
     }
     if (deposit_date >= dtime_deposit_date.MinDate)
     {
         dtime_deposit_date.Value = deposit_date;
     }
     if (duration != 0)
     {
         nbox_duration.Value = duration;
     }
 }
예제 #3
0
 private void uc_PatentModel_Load(object sender, EventArgs e)
 {
     lbl_number.Text       = number;
     lbl_molecule.Text     = MoleculeController.getById(molecule_id).real_name;
     lbl_company.Text      = CompanyController.getById(company_id).name;
     lbl_deposit_date.Text = deposit_date.ToString();
     lbl_duration.Text     = duration.ToString() + "an(s)";
     lbl_country.Text      = country;
 }
예제 #4
0
 private void uc_CreateUpdateUtility_Load(object sender, EventArgs e)
 {
     if (molecule_id != 0)
     {
         cbox_molecules.Items.Add(MoleculeController.getById(molecule_id).real_name);
         cbox_molecules.SelectedIndex = 0;
     }
     if (name != null)
     {
         tbox_name.Text = name;
     }
     if (description != null)
     {
         tbox_description.Text = description;
     }
 }