示例#1
0
 public MainPanelParameter(CaseObject caseObj, SysConfigMgrAccess sysConfig, SystemManagerAccess sysMgrAccess, PrinterObjects objectsPrinter, Window frameworkWindow)
 {
     caseObject = caseObj;
     SysConfig = sysConfig;
     SysMgr = sysMgrAccess;
     printerObjects = objectsPrinter;
     MainFrameworkWindow = frameworkWindow;
 }
示例#2
0
        public void Initialize(Object passedObj)
        {
            MainPanelParameter parameters = passedObj as MainPanelParameter;
            caseObj = parameters.caseObject;
            sysConfig = parameters.SysConfig;
            sysMgr = parameters.SysMgr;

            m_UserControlDisplay = new UserControl1(caseObj, sysConfig);
        }
示例#3
0
        public void Initialize(Object passedObj)
        {
            MainPanelParameter parameters = passedObj as MainPanelParameter;
            caseObj = parameters.caseObject;
            sysConfig = parameters.SysConfig;
            sysMgr = parameters.SysMgr;

            m_UserControlDisplay = new UserControl1(parameters.printerObjects, parameters.MainFrameworkWindow);
        }
示例#4
0
        public SystemManager (SysConfigMgrAccess sysConfig, DataSourceAccess dataSourceAccess)
        {
            //create case handler with IDAL
            CaseHandler m_caseHandler = new CaseHandler(sysConfig, dataSourceAccess);

            //create system mode manager with ISysConfig and IDAL and case handler
            SysModeManager m_sysModeMgr = new SysModeManager(sysConfig, dataSourceAccess, m_caseHandler);

            //create system manager interface with System mode manager
            SysMgrAccess = new SystemManagerAccess(m_sysModeMgr);
        }
示例#5
0
        internal SysModeManager (SysConfigMgrAccess sysConfig, DataSourceAccess dataSourceAccess, CaseHandler handler)
        {
            m_SysConfig = sysConfig;
            m_DataSourceAccess = dataSourceAccess;
            m_caseHandler = handler;
            m_LinkedCaseID = string.Empty;
            m_LinkedCaseSource = string.Empty;
            //m_PreviousCaseId = string.Empty;

            //register an event handler with System Configuration Manager to get notified
            //when configuration is modified.
        }
示例#6
0
        public SysConfigManager()
        {
            //create profile manager with default user profile
            ProfileManager profileManager = new ProfileManager();

            SysConfiguration systemConfiguration = new SysConfiguration();

            //create configuration manager with profile manager and default system configuration.
            ConfigManager m_ConfigMgr = new ConfigManager(profileManager, systemConfiguration);

            //create system configuraiton manager interface
            m_SysConfigMgrAccess = new SysConfigMgrAccess(m_ConfigMgr);
        }
示例#7
0
        public SysConfigManager()
        {
            //create profile manager with default user profile
            ProfileManager profileManager = new ProfileManager();

            SysConfiguration systemConfiguration = new SysConfiguration();

            //create configuration manager with profile manager and default system configuration.
            ConfigManager m_ConfigMgr = new ConfigManager(profileManager, systemConfiguration);

            //create system configuraiton manager interface
            m_SysConfigMgrAccess = new SysConfigMgrAccess(m_ConfigMgr);
        }
示例#8
0
        public UserControl1(CaseObject caseObj, SysConfigMgrAccess  sysConfigMgr)
        {
            InitializeComponent();
            CultureResources.registerDataProvider(this);

            m_CaseObject = caseObj;

            if (sysConfigMgr.GetDefaultConfig().WorkstationMode == "ManualCoding")
                DecisionButton.Content = "Verified";

            m_SysConfigMgr = sysConfigMgr;

            this.DataContext = caseObj;
        }
示例#9
0
        public UserControl1(Framework frameWorkWindow, SysConfigMgrAccess sysConfigMgr)
        {
            InitializeComponent();
            CultureResources.registerDataProvider(this);

            m_MainFrameworkWindow = frameWorkWindow;
            m_SysConfigMgr = sysConfigMgr;
            if (sysConfigMgr.GetDefaultConfig().AutoSelectPendingCasesEnabled && !sysConfigMgr.GetDefaultConfig().SelectedArchiveDuringAutoSelect)
                ClearScreenButton.Visibility = System.Windows.Visibility.Collapsed;
            else
                ClearScreenButton.Visibility = System.Windows.Visibility.Visible;

            sysConfigMgr.GetDefaultConfig().SelectedArchiveDuringAutoSelectChanged += new SysConfiguration.SelectedArchiveDuringAutoSelectChangedEventHandler(ButtonDisplayChange);
        }
示例#10
0
        public LayoutManager(ContentPluginManager contentPluginManager, SysConfigMgrAccess sysConfig, SystemManagerAccess sysMgr, MainPanelPluginManager mainPanelPluginMgr) :
            base(sysMgr, sysConfig)
        {
            m_ContentPluginManager = contentPluginManager;
            m_MainPanelPluginManager = mainPanelPluginMgr;
            m_DualViewWindow = new DualViewWindow();
            StatusList = new Dictionary<string, List<StatusBarItem>>();
            m_GetAvailablePendingCaseEvent = new AutoResetEvent(false);
            m_LiveCaseDisplayed = false;
            m_AutoSelectCaseEnabled = false;

            this.Title = base.m_SysConfig.GetDefaultConfig().WorkstationMode + " Workstation";

            base.m_SysConfig.GetDefaultConfig().AutoSelectPendingCasesChanged += new
                SysConfiguration.AutoSelectPendingCasesChangedEventHandler(LayoutManager_AutoSelectPendingCasesChanged);
        }
示例#11
0
        public Framework(SystemManagerAccess sysMgr, SysConfigMgrAccess sysConfig) : 
            base ()
        {
            initialized = false;
            InitializeComponent();
            CultureResources.registerDataProvider(this);
            CultureResources.getDataProvider().DataChanged += new System.EventHandler(LanguageChangeControl_DataChanged);

            m_SysMgr = sysMgr;
            m_SysConfig = sysConfig;
            m_DisplayedCases = new DisplayedCases();           

            SysConfiguration sysConfiguration = sysConfig.GetDefaultConfig();
            VersionNumber.Text = sysConfiguration.VersionNumber;
            BuildNumber.Text = sysConfiguration.BuildNumber;
            BuildDate.Text = sysConfiguration.BuildDate;

            m_MaxCasesOpen = (int)sysConfiguration.MaxCompareCases + 1;
        }
示例#12
0
        public UserControl1(SystemManagerAccess sysMgr, SysConfigMgrAccess sysConfig, CaseObject caseObj, Framework frameWorkWindow)
        {
            try
            {
                InitializeComponent();
                CultureResources.registerDataProvider(this);
                CultureResources.getDataProvider().DataChanged += new EventHandler((object sender, EventArgs e) =>
                {
                    RefreshCaseList();
                });

                SourceSelection.PlacementTarget = frameWorkWindow;
                m_MainFrameworkWindow = frameWorkWindow;
                m_SelectedCaseSource = null;
            }
            catch (Exception ex)
            {
            }

            m_SysConfigMgr = sysConfig;
            m_SysMgr = sysMgr;

            try
            {
                m_SysMgr.RequestSources(SourceType.ArchiveCase, out m_ACSSourceList);
                m_SysMgr.RequestSources(SourceType.WSComm, out m_WSCommSourceList);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            InitializeCaseListSearch();

            ACSSource_listBox.ItemsSource = m_ACSSourceList;
            AWSCommSource_listBox.ItemsSource = m_WSCommSourceList;

            if (sysConfig.GetDefaultConfig().WorkstationMode == "ManualCoding")
                ACSButtonRow.Height = new GridLength(0);

        }
示例#13
0
 public CaseHandler (SysConfigMgrAccess sysConfigMgrAccess, DataSourceAccess dataAccessLayer)
 {
     m_SysConfigMgrAccess = sysConfigMgrAccess;
     m_dataSourceAccess = dataAccessLayer;
     m_caseCollection = new CaseCollection();
 }
示例#14
0
 public Presentation(SysConfigMgrAccess sysConfig, SystemManagerAccess sysMgr)
 {
     m_PluginMgr = new ContentPluginManager(sysConfig);
     m_MainPanelPluginMgr = new MainPanelPluginManager(sysConfig);
     m_LayoutMgr = new LayoutManager(m_PluginMgr, sysConfig, sysMgr, m_MainPanelPluginMgr);
 }
示例#15
0
 public DataSource (SysConfigMgrAccess sysConfigMgrAccess)
 {
     m_CaseSourceManager = new CaseSourceManager(sysConfigMgrAccess);
     m_DataAccessInterface = new DataSourceAccess(m_CaseSourceManager);
 }