예제 #1
0
 public CAssistData(CConfig cf)
 {
     config      = cf;
     log         = new XLog();
     log.DirName = config.logpath;
     m_app       = get_MA();
 }
예제 #2
0
 public CBGPBmobileData(CConfig cf)
 {
     config      = cf;
     log         = new XLog();
     log.DirName = config.logpath;
     m_app       = get_MA();
 }
예제 #3
0
        private MA get_MA()
        {
            MA ret = new MA();

            try
            {
                foreach (MA s in config.madata)
                {
                    if (s.Code == 300)
                    {
                        ret = s; return(ret);
                    }
                    ;
                }
            }
            catch (Exception) { }
            return(ret);
        }
예제 #4
0
        private int get_MA(string name, out MA app, out string msg)
        {
            msg = null;
            app = new MA();
            int ret = 0;

            try
            {
                foreach (MA s in config.madata)
                {
                    if (s.Name == name)
                    {
                        app = s; return(0);
                    }
                    ;
                }
            }
            catch (Exception ex) { msg = ex.Message; return(-1); }
            return(ret);
        }
예제 #5
0
        private void init_proc(MA m_app)
        {
            switch (m_app.Code)
            {
            case 300:
                lst_loadedfile = clAssist.get_loaded_file();
                break;

            case 306:
                lst_loadedfile = clUP.get_loaded_file();
                break;

            case 305:
                lst_loadedfile = clBGPBmobile.get_loaded_file();
                break;
            }

            init_filedata(m_app.PathIN);

            if (files.Length > 0)
            {
                buttonOK.Enabled = true;
            }
        }