예제 #1
0
파일: ProbList.cs 프로젝트: vasekaa/arctic
        private void AddProbButton_Click(object sender, EventArgs e)
        {
            var          addProbeForm = new AddProbe(-1);
            DialogResult result       = addProbeForm.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                this.listView1.Items.Clear();
                fillSampleList();
            }
        }
예제 #2
0
파일: ProbList.cs 프로젝트: vasekaa/arctic
        private void doubleClickAction(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count == 1)
            {
                ListView.SelectedListViewItemCollection items = listView1.SelectedItems;

                int          sampleId     = Int32.Parse(items[0].SubItems[3].Text.ToString());
                var          addProbeForm = new AddProbe(sampleId);
                DialogResult result       = addProbeForm.ShowDialog(this);
                if (result == DialogResult.OK)
                {
                    this.listView1.Items.Clear();
                    fillSampleList();
                }
            }
        }