private void OnCreateUserButtonClick(object sender, RoutedEventArgs e) { var win = new WindowEditUser(); win.Closed += (o, ee) => { LoadSystemUsers(1); userContext.GetUserCount(OnGetUserCountCompleted, null); }; win.Show(); }
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; }