示例#1
0
        void AddSessionToSessionMacro_Click(object sender, EventArgs e)
        {
            MyListBox list = this.Parent.Controls[_target_table] as MyListBox;

            if (list != null)
            {
                list.AddSelected();
            }
            else
            {
                MessageBox.Show("Could not find target list");
            }
        }
示例#2
0
        void AddItemToSet_Click(object sender, EventArgs e)
        {
            ListBox member_list = this.Parent.Controls[_member_list] as ListBox;

            if (member_list != null)
            {
                DataRow newrow = MyListBox.AddSelected(member_list);
                if (UpdateNewRow != null)
                {
                    UpdateNewRow(newrow);
                }
            }
            else
            {
                MessageBox.Show("Could not find member list");
            }
        }