示例#1
0
        private void addManagerButton_Click(object sender, EventArgs e)
        {
            CloseFormHandle closeEvent = new CloseFormHandle(delegate {
                GetStaffList();
            });
            StaffAddView view = new StaffAddView(null);

            ToolsManage.ShowForm(view, false, closeEvent);
        }
示例#2
0
        //按钮列功能
        private void ButtonPressedEventClick(object sender, ButtonPressedEventArgs e)
        {
            int           row   = this.gridView1.FocusedRowHandle;
            StructAccount staff = this.staffs[row];

            char[]   splits = { '_' };
            string[] res    = ((string)e.Button.Tag).Split(splits);
            //修改
            if (res[1].Equals("0"))
            {
                CloseFormHandle closeEvent = new CloseFormHandle(delegate {
                    GetStaffList();
                });
                StaffAddView view = new StaffAddView(staff);
                ToolsManage.ShowForm(view, false, closeEvent);
            }
            //删除
            else if (res[1].Equals("1"))
            {
                StaffNetOperation.DeleteStaffs(DeleteStaffsResult, staff.Guid);
            }
        }