示例#1
0
        private void btnChange_Click(object sender, EventArgs e)
        {
            string line = "";

            if (tabControl1.SelectedIndex == 0)
            {
                ListView.SelectedListViewItemCollection breakfast = lvTurnOn.SelectedItems;
                foreach (ListViewItem item in breakfast)
                {
                    line = item.SubItems[0].Text;
                }
            }
            else
            {
                ListView.SelectedListViewItemCollection breakfast = lvExclude.SelectedItems;
                foreach (ListViewItem item in breakfast)
                {
                    line = item.SubItems[0].Text;
                }
            }
            fTurnOn fTurnOn = new fTurnOn();

            fTurnOn.Owner         = this;
            fTurnOn.tbReview.Text = line.Substring(0, line.Length - 4);
            fTurnOn.ShowDialog();
        }
示例#2
0
        private void bntAdd_Click(object sender, EventArgs e)
        {
            fTurnOn fTurnOn = new fTurnOn();

            fTurnOn.Owner = this;
            fTurnOn.ShowDialog();
        }