private void OnCreateRoleButtonClick(object sender, RoutedEventArgs e)
        {
            var win = new WindowEditRole();

            win.Closed += (oo, ee) =>
            {
                LoadSystemRoles(1);
                roleContext.GetRolesCount(OnGetRolesCountCompleted, null);
            };
            win.Show();
        }
        private void OnGridRowLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            TimeSpan t = DateTime.Now.TimeOfDay;

            if (SysRoleGrid.Tag != null)
            {
                var oldT = (TimeSpan)SysRoleGrid.Tag;
                if ((t - oldT) < TimeSpan.FromMilliseconds(300))
                {
                    var role = SysRoleGrid.SelectedItem as SystemRole;
                    if (role != null)
                    {
                        var win = new WindowEditRole();
                        win.RoleInfo = role;
                        win.Closed  += (oo, ee) => LoadSystemRoles(SysRolePager.PageIndex + 1);
                        win.Show();
                    }
                }
            }
            SysRoleGrid.Tag = t;
        }