Пример #1
0
        private void listApps_DoubleClick(object sender, EventArgs e)
        {
            if (listApps.SelectedItems.Count != 0)
            {
                Form dlg = new dlgProps(listApps.SelectedItems[0]);
                dlg.ShowDialog();

                updateFile();
            }
        }
Пример #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            ListViewItem item = new ListViewItem("");

            item.SubItems.Add("");
            item.SubItems.Add((8080 + listApps.Items.Count * 10).ToString());
            item.SubItems.Add("Stopped");


            Form         dlg = new dlgProps(item);
            DialogResult dr  = dlg.ShowDialog();

            if (dr == DialogResult.OK)
            {
                listApps.Items.Add(item);
                updateFile();
            }
        }
    private void listApps_DoubleClick(object sender, EventArgs e)
    {
        if (listApps.SelectedItems.Count != 0)
        {
            Form dlg = new dlgProps(listApps.SelectedItems[0]);
            dlg.ShowDialog();
 
            updateFile();
        }
    }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            ListViewItem item = new ListViewItem("");
            item.SubItems.Add("");
            item.SubItems.Add((8080 + listApps.Items.Count * 10).ToString());
            item.SubItems.Add("Stopped");
            

            Form dlg = new dlgProps(item);
            DialogResult dr = dlg.ShowDialog();
            if (dr == DialogResult.OK)
            {
                listApps.Items.Add(item);
                updateFile();
            }

        }