Пример #1
0
        protected override void OnTerminated()
        {
            base.OnTerminated();
            UserDataPersistenceService service = new UserDataPersistenceService("Project");

            service["ActiveView"] = _isShowChart ? "Diagram" : "List";
            service.Save();
        }
Пример #2
0
 protected override void OnClosed(EventArgs e)
 {
     _persistenceService["SplitterPosition"] = splitContainerControl1.SplitterPosition;
     _ribbonPersistenceService["Check"]      = ribbon.SelectedPage.PageIndex;
     _ribbonPersistenceService["Exspan"]     = ribbon.Minimized;
     _persistenceService.Save();
     _ribbonPersistenceService.Save();
     base.OnClosed(e);
 }
Пример #3
0
        protected override void OnClosed(EventArgs e)
        {
            base.OnClosed(e);
            var parameter = CreateUserLoginParameter();

            parameter.ServerName  = RemoveProtocal(parameter.ServerName);
            parameter.ServiceName = RemoveProtocal(parameter.ServiceName);
            _persistenceService[ParameterSettingName] = parameter;
            _persistenceService.Save();
        }
Пример #4
0
        protected override void OnTerminated()
        {
            base.OnTerminated();

            UserDataPersistenceService service = new UserDataPersistenceService("ProjectTask");

            service["ActiveView"] = _isShowChart ? "Diagram" : "List";

            service["ProjectId"]          = Filter.ProjectId;
            service["ProjectIterationId"] = Filter.ProjectIterationId;
            service["MemberId"]           = Filter.MemberId;

            service.Save();
        }