Ejemplo n.º 1
0
 public EditImportFile(CTImportList ImportFile)
 {
     m_DoneLoading = false;
     InitializeComponent();
     objImportFile = ImportFile;
     this.PopulateCustomers();
     this.PopulateCounties();
     this.LoadImportFileData();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Sets the focused view instance of the grid. Instantiates the objects that can be used for data manipulation.
        /// </summary>
        private void SetFocusedViewInstance()
        {
            m_objGridView = null;
            m_objImportList = null;
            m_objGridView = gcImportFile.FocusedView as GridView;
            m_objImportList = m_objGridView.GetFocusedRow() as CTImportList;

            if (!m_IsLoading)
                m_SelectedImportFileId = m_objImportList.id;

            //switch (ViewSource)
            //{
            //    case eViewSource.ImportList:
            //    {
            //        m_objImportList = null;
            //        m_objGridView = (DevExpress.XtraGrid.Views.Grid.GridView) gcImportFile.FocusedView;
            //        m_objImportList = (ObjectImport.ImportListInstance) m_objGridView.GetFocusedRow();
            //        break;
            //    }

            //    case eViewSource.ImportProfileList:
            //    {
            //        m_objImportProfileList = null;
            //        m_objGridView = (DevExpress.XtraGrid.Views.Grid.GridView) gcImportFile.FocusedView;
            //        m_objImportProfileList = (DataImportUtility.ImportListInstance) m_objGridView.GetFocusedRow();
            //        break;
            //    }
            //}
        }