コード例 #1
0
 private void addMeasureBtn_Click(object sender, EventArgs e)
 {
     if (baseMeasuresListView.SelectedItems.Count == 1)
     {
         EditMeasureForm editFrm = new EditMeasureForm((Measure)baseMeasuresListView.SelectedItems[0].Tag);
         editFrm.AddMeasureEvent += new EventHandler(AddMeasureHandler);
         editFrm.editFrm_closed  += new EventHandler(editFrm_closed);
         editFrm.Show();
         this.Enabled = false;
     }
 }
コード例 #2
0
 private void addMeasureBtn_Click(object sender, EventArgs e)
 {
     if (baseMeasuresListView.SelectedItems.Count == 1)
     {
         Account         account = _accountsList.Find(AccountItem => AccountItem.id == (int)accounts_cb.SelectedValue).account;
         EditMeasureForm editFrm = new EditMeasureForm((Measure)baseMeasuresListView.SelectedItems[0].Tag, account, application_cb.SelectedItem.ToString());
         editFrm.AddMeasureEvent += new EventHandler(AddMeasureHandler);
         editFrm.editFrm_closed  += new EventHandler(editFrm_closed);
         editFrm.Show();
         this.Enabled = false;
     }
 }