コード例 #1
0
ファイル: WareHouse.cs プロジェクト: 74-Mani/medicine-website
 /// <summary>
 /// Mnus the setup click.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 private void MnuSetupClick(object sender, EventArgs e)
 {
     try
     {
         var warehouse = this.bdsWareHouse.Current as Medical.Data.Entities.WareHouse;
         if (warehouse == null)
         {
             return;
         }
         var setupForm = new WareHouseSetUp(warehouse.Id);
         setupForm.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageDialog.Instance.ShowMessage(this, "ERR0002", ex.Message);
     }
     finally
     {
         var clinicId = (int)cboClinic.SelectedValue;
         var medicine = txtMedicine.Text.Trim();
         LoadData(clinicId, medicine);
     }
 }
コード例 #2
0
 /// <summary>
 /// Mnus the setup click.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 private void MnuSetupClick(object sender, EventArgs e)
 {
     try
     {
         var warehouse = this.bdsWareHouse.Current as Medical.Data.Entities.WareHouse;
         if (warehouse == null) return;
         var setupForm = new WareHouseSetUp(warehouse.Id);
         setupForm.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageDialog.Instance.ShowMessage(this, "ERR0002", ex.Message);
     }
     finally
     {
         var clinicId = (int)cboClinic.SelectedValue;
         var medicine = txtMedicine.Text.Trim();
         LoadData(clinicId, medicine);
     }
 }