public CAssistData(CConfig cf) { config = cf; log = new XLog(); log.DirName = config.logpath; m_app = get_MA(); }
public CBGPBmobileData(CConfig cf) { config = cf; log = new XLog(); log.DirName = config.logpath; m_app = get_MA(); }
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); }
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); }
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; } }