Esempio n. 1
0
 private void addButton_Click(object sender, EventArgs e)
 {
     MetricValueForm form = new MetricValueForm();
     var res = form.ShowDialog();
     if (res == System.Windows.Forms.DialogResult.OK)
     {
         audit.create(form.Value);
         loadValues();
     }
 }
Esempio n. 2
0
 private void editButton_Click(object sender, EventArgs e)
 {
     if (list.SelectedRows.Count == 0)
     {
         MessageBox.Show("حداقل یکی از موارد را انتخاب کنید", "خطا", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.RtlReading| MessageBoxOptions.RightAlign);
         return;
     }
     var item = list.SelectedRows[0].Cells[3].Value as MetricValue;
     var form = new MetricValueForm(item);
     var res = form.ShowDialog();
     if (res == System.Windows.Forms.DialogResult.OK)
         loadValues();
 }