Ejemplo n.º 1
0
        private void tsmi_modify_Click(object sender, EventArgs e)
        {
            //弹出修改资料窗口
            Frm_modify frm_modify = new Frm_modify();

            frm_modify.Owner = this;
            frm_modify.set_user_info(self_pass, self_name, self_head);
            frm_modify.Show();
        }
Ejemplo n.º 2
0
        //传递数据给父窗口
        private void set_selected_head(int selected_index)
        {
            if (owner_type == 1)
            {
                Frm_register frm_register = (Frm_register)(this.Owner);
                frm_register.select_head(selected_index);
            }
            else if (owner_type == 2)
            {
                Frm_modify frm_modify = (Frm_modify)(this.Owner);
                frm_modify.select_head(selected_index);
            }

            Close();
        }