protected override void btnAdd_Click( object sender, EventArgs e )
 {
     var form = new MappingForm(HardwareItemDescription);
     form.Text = @"Add New Map";
     if (DialogResult.OK == form.ShowDialog())
     {
         Mapping mapping = form.Mapping;
         AddMappingItem( mapping );
     }
 }
Ejemplo n.º 2
0
        protected override void btnAdd_Click(object sender, EventArgs e)
        {
            var form = new MappingForm(HardwareItemDescription);

            form.Text = @"Add New Map";
            if (DialogResult.OK == form.ShowDialog())
            {
                Mapping mapping = form.Mapping;
                AddMappingItem(mapping);
            }
        }
Ejemplo n.º 3
0
 protected override void btnEdit_Click(object sender, EventArgs e)
 {
     if (HasSelected)
     {
         Mapping mapping = SelectedObject as Mapping;
         if (mapping != null)
         {
             var form = new MappingForm(HardwareItemDescription);
             form.Text    = @"Edit Map";
             form.Mapping = mapping;
             if (DialogResult.OK == form.ShowDialog())
             {
                 mapping = form.Mapping;
                 SelectedListViewItem.SubItems[0].Text = mapping.ToString();
             }
         }
     }
 }
 protected override void btnEdit_Click( object sender, EventArgs e )
 {
     if (HasSelected)
     {
         Mapping mapping = SelectedObject as Mapping;
         if (mapping != null)
         {
             var form = new MappingForm(HardwareItemDescription);
             form.Text = @"Edit Map";
             form.Mapping = mapping;
             if (DialogResult.OK == form.ShowDialog())
             {
                 mapping = form.Mapping;
                 SelectedListViewItem.SubItems[0].Text = mapping.ToString();
             }
         }
     }
 }