Beispiel #1
0
 private void lb_cvpb_php_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F4)
     {
         frm_PEditor frm_PEditor1 = new frm_PEditor();
         frm_PEditor1.Show();
         frm_PEditor1.lb               = lb_cvpb_php;
         frm_PEditor1.i_p_idx          = lb_cvpb_php.SelectedIndex;
         frm_PEditor1.tb_property.Text = lb_cvpb_php.SelectedItem.ToString();
     }
 }
Beispiel #2
0
 private void lb_steps_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Delete)
     {
         int i_selected = this.lb_steps.SelectedIndex;
         this.lb_steps.Items.RemoveAt(i_selected);
     }
     if (e.KeyCode == Keys.F4)
     {
         frm_PEditor frm_PEditor1 = new frm_PEditor();
         frm_PEditor1.Show();
         frm_PEditor1.lb               = lb_steps;
         frm_PEditor1.i_p_idx          = lb_steps.SelectedIndex;
         frm_PEditor1.tb_property.Text = lb_steps.SelectedItem.ToString();
     }
 }