Beispiel #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     AddStream frm = new AddStream(this);
     frm.ShowDialog(this);
 }
Beispiel #2
0
        private void listView1_DoubleClick(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count == 1)
            {
                ListViewItem lv = listView1.SelectedItems[0];

                AddStream frm = new AddStream(this);

                frm.txtStreamId.Text = lv.SubItems[2].Text;
                frm.txtName.Text = lv.Text;
                frm._editMode = true;
                frm._editItem = lv;
                
                frm.ShowDialog(this);
            }
        }