Ejemplo n.º 1
0
        public MMenu()
        {
            DEFS.createLogger();
            DEFS.ConSTR = e_Cafe.Properties.Settings.Default.ECAFEConnectionString; // e_Cafe.Properties.Settings.Default.cnSTR;
            DEFS.DefPrinter = e_Cafe.Properties.Settings.Default.PrinterName; // e_Cafe.Properties.Settings.Default.cnSTR;
            DEFS.DefProgramLocation = AppDomain.CurrentDomain.BaseDirectory;

            InitializeComponent();
            try
            {
                FieldInfo = new clFIELDINFO_LIST(DEFS.ConSTR);
            }
            catch (Exception c)
            {
                DEFS.log(Level.Exception, c.Message);
            }
            _Rendel = false;
            //DEFS.R_SYSPAR = new SysParList();
            DEFS.log(Level.Info, "Sikeres inicializálás");
            RefreshDatabase();
            DEFS.LoadPossibleOpenDays();
            DEFS.LoadNyitottNap();
            DEFS.SendShortMessage("Nyitott nap:" + DEFS.NyitNap_EV.ToString() + DEFS.NyitNap_HO.ToString() + DEFS.NyitNap_NAP.ToString(), 1000);

            login_ok = Login(0);
            //if (!Login(0)) { Application.Exit(); }
        }
Ejemplo n.º 2
0
 public TBLObj(int iUSR_ID, string istrConnectionString, clFIELDINFO_LIST iFieldInfo)
 {
     this.fUSR_ID = iUSR_ID;
     this.strConnectionString = istrConnectionString;
     this.sqlConnection = new SqlConnection(istrConnectionString);
     this.sqlConnection.Open();
     this.FieldInfo = iFieldInfo;
     this.UserRights = new clUserRights(sqlConnection,fUSR_ID);
 }