예제 #1
0
        private void cmdLookup_Click(object sender, EventArgs e)
        {
            var form = new DBUsersList();

            form.FormClosed += DBUserList_FormClosed;
            form.ShowDialog();
        }
예제 #2
0
        private void tbrNonMember_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
        {
            if (!string.IsNullOrEmpty(e.Button.Name))
            {
                switch (e.Button.Name.ToLower())
                {
                case "delete":
                    DeleteNonMember();
                    LoadNonMember_Data();
                    break;

                case "addstoregroups":
                    var sg = new StoreGroupsList();
                    sg.IsMember    = false;
                    sg.FormClosed += NonMemberStoreGroup_FormClosed;
                    sg.ShowDialog();
                    break;

                case "addapplicationgroups":
                    var ag = new ApplicationGroupsList();
                    ag.IsMember    = false;
                    ag.FormClosed += NonMemberApplicationGroup_FormClosed;
                    ag.ShowDialog();
                    break;

                case "adddbusers":
                    var dbUser = new DBUsersList();
                    dbUser.IsMember    = false;
                    dbUser.FormClosed += NonMemberDbUser_FormClosed;
                    dbUser.ShowDialog();
                    break;
                }
            }
        }