Наследование: ATMLCommonLibrary.forms.ATMLForm
 private void btnLimit_Click(object sender, EventArgs e)
 {
     var form = new LimitForm();
     form.Limit = _limit;
     if (DialogResult.OK == form.ShowDialog())
     {
         Limit = form.Limit;
     }
 }
Пример #2
0
        private void btnLimit_Click(object sender, EventArgs e)
        {
            var form = new LimitForm();

            form.Limit = _limit;
            if (DialogResult.OK == form.ShowDialog())
            {
                Limit = form.Limit;
            }
        }
 private void btnSubmit_Click(object sender, EventArgs e)
 {
     var form = new LimitForm();
     ControlsToData();
     form.Limit = ((PathSignalDelay) _limit).Frequency;
     if (DialogResult.OK == form.ShowDialog())
     {
         edtFrequency.Tag = form.Limit;
         if (edtFrequency.Tag != null )
             edtFrequency.Value = edtFrequency.Tag.ToString();
     }
 }
 private void btnFrequencyLimit_Click(object sender, EventArgs e)
 {
     var form = new LimitForm();
     ControlsToData();
     var pathVswrValue = _limit as PathVSWRValue;
     if (pathVswrValue != null)
     {
         form.Limit = pathVswrValue.Frequency;
         if (DialogResult.OK == form.ShowDialog())
         {
             pathVswrValue.Frequency = form.Limit;
             ShowFrequencyValue();
         }
     }
 }
 private void limitListControl_OnEdit()
 {
     if (limitListControl.HasSelected)
     {
         var limit = limitListControl.SelectedObject as Limit;
         if (limit != null)
         {
             var form = new LimitForm(limit);
             if (DialogResult.OK == form.ShowDialog())
             {
                 limit = form.Limit;
                 ListViewItem lvi = limitListControl.SelectedItems[0];
                 UpdateLimitInListView(lvi, limit);
             }
         }
     }
 }
 private void limitListControl_OnAdd()
 {
     var form = new LimitForm();
     if (DialogResult.OK == form.ShowDialog())
     {
         Limit limit = form.Limit;
         AddLimitToListView(limit);
     }
 }