Exemplo n.º 1
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);
        }
Exemplo n.º 2
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);

        }