コード例 #1
0
        private void OnCreateUserButtonClick(object sender, RoutedEventArgs e)
        {
            var win = new WindowEditUser();

            win.Closed += (o, ee) =>
            {
                LoadSystemUsers(1);
                userContext.GetUserCount(OnGetUserCountCompleted, null);
            };
            win.Show();
        }
コード例 #2
0
        private void OnGridRowLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            TimeSpan t = DateTime.Now.TimeOfDay;

            if (SysUserGrid.Tag != null)
            {
                var oldT = (TimeSpan)SysUserGrid.Tag;
                if ((t - oldT) < TimeSpan.FromMilliseconds(300))
                {
                    var user = SysUserGrid.SelectedItem as SystemUser;
                    if (user != null)
                    {
                        var win = new WindowEditUser();
                        win.UserInfo = user;
                        win.Closed  += (oo, ee) => LoadSystemUsers(SysUserPager.PageIndex + 1);
                        win.Show();
                    }
                }
            }
            SysUserGrid.Tag = t;
        }