Example #1
0
        public DualAppShortcutSetting GetSettings(int appID)
        {
            try
            {
                MGRE.ETL.Data.Contracts.IETLDAL etlDAL = new Data.ETLData();

                DualAppBO bo = new DualAppBO(etlDAL);

                return(bo.GetSettings(appID));
            }
            catch (MGREException vex)
            {
                MGRELog.Write(vex);
                throw new FaultException <MGREExceptionData>(vex.AppError, new FaultReason(vex.Message));
            }
            catch (Exception ex)
            {
                MGRELog.Write(ex);
                throw;
            }
        }
Example #2
0
        private void button2_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                MGRE.ETL.Data.Contracts.IETLDAL etlDAL = new Data.ETLData();

                //ETLExportBO bo = new ETLExportBO(etlDAL);

                //bo.RunExportNow(importName, "deanc");

                DualAppBO bo = new DualAppBO(etlDAL);
                DualAppShortcutSetting settings = bo.GetSettings(127);
            }
            catch (MGREException vex)
            {
                MGRELog.Write(vex);
                //throw new FaultException<MGREExceptionData>(vex.AppError, new FaultReason(vex.Message));
            }
            catch (Exception ex)
            {
                MGRELog.Write(ex);
                throw;
            }
        }