コード例 #1
0
ファイル: uc_UtilityModel.cs プロジェクト: PierroD/GSBrevet
 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
ファイル: uc_PatentModel.cs プロジェクト: PierroD/GSBrevet
 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;
     }
 }