public UserSessionsManagmentControl(UserSessionManagmentComponent component):base(component)
        {
            InitializeComponent();

            _component = component;

            _userName.Value = component.User.UserName;
            _displayName.Value = component.User.DisplayName;
            _lastLogin.Value = component.User.LastLoginTime.HasValue
                            ? component.User.LastLoginTime.Value.ToString(ClearCanvas.Desktop.Format.DateTimeFormat)
                            : SR.LabelUnknownLastLoginTime;


            _sessionsTable.Table = component.SummaryTable;
            _sessionsTable.MenuModel = component.SummaryTableActionModel;
        	_sessionsTable.ToolbarModel = component.SummaryTableActionModel;
            _sessionsTable.DataBindings.Add("Selection", _component, "SummarySelection", true, DataSourceUpdateMode.OnPropertyChanged);
        }
        public UserSessionsManagmentControl(UserSessionManagmentComponent component) : base(component)
        {
            InitializeComponent();

            _component = component;

            _userName.Value    = component.User.UserName;
            _displayName.Value = component.User.DisplayName;
            _lastLogin.Value   = component.User.LastLoginTime.HasValue
                            ? component.User.LastLoginTime.Value.ToString(ClearCanvas.Desktop.Format.DateTimeFormat)
                            : SR.LabelUnknownLastLoginTime;


            _sessionsTable.Table        = component.SummaryTable;
            _sessionsTable.MenuModel    = component.SummaryTableActionModel;
            _sessionsTable.ToolbarModel = component.SummaryTableActionModel;
            _sessionsTable.DataBindings.Add("Selection", _component, "SummarySelection", true, DataSourceUpdateMode.OnPropertyChanged);
        }
 public void SetComponent(IApplicationComponent component)
 {
     _component = (UserSessionManagmentComponent) component;
 }
Exemple #4
0
 public void SetComponent(IApplicationComponent component)
 {
     _component = (UserSessionManagmentComponent)component;
 }