/// <summary> /// constructor of the LoginModel layer, gets the DB access infos /// </summary> /// <param name="dbci"></param> public ServiceLoginModel(Form parent, UserConnDetails dbci) { this.parent = parent; this.dbci = dbci; startDBconnect = new InterfaceMySQLStartDBConnect(); mdi = startDBconnect.kapcsolodas(dbci, parent); }
public void ManageIOConnFileTest3_Full3() { try { UserConnDetails ucd1 = new UserConnDetails("", "", "rakt", "felhasznaló", "pwd", "az", "ez"); ManageIOConnFileController miocf = new ManageIOConnFileController(ucd1, true); UserConnDetails ucd2 = new UserConnDetails(); ManageIOConnFileController miocf2 = new ManageIOConnFileController(ucd2, false); ucd2 = miocf2.getTheConnInfos(); if (ucd2 == null) { Assert.Fail("Problem, data container is empty!"); } if (ucd1.host != ucd2.host || ucd1.port != ucd2.port || ucd1.db != ucd2.db || ucd1.user != ucd2.user || ucd1.pwd != ucd2.pwd || ucd1.output != ucd2.output || ucd1.input != ucd2.input) { Assert.Fail("Some problem, difference appeard between reading and writting"); } } catch (ErrorXmlFileWrite e) { Assert.Fail(e.getMessage()); } catch (ErrorXmlFileRead e) { Assert.Fail(e.getMessage()); } catch (Exception) { Assert.Fail("Some problem appeard"); } }
/// <summary> /// constructor of ServiceRightManagment /// </summary> /// <param name="dbci">DB conection informations</param> /// <param name="parent">parent window</param> public ServiceRights(UserConnDetails dbci, Form parent) { this.dbci = dbci; this.parent = parent; collectTheUserRightGroups(); }
public OrderingModellerWriteOut(UserConnDetails dbci, Form parentMain) { startDB = new InterfaceMySQLStartDBConnect(); mdi = startDB.kapcsolodas(dbci, parentMain); }
public ServiceLogin(Form parent, UserConnDetails conDetails) { modelLogin = new ServiceLoginModel(parent, conDetails); }
private List <string[]> resultUsers; //doubltly change durring the program-running public RequestsModelReadIn(UserConnDetails dbci, Form parent) { startDb = new InterfaceMySQLStartDBConnect(); mdi = startDb.kapcsolodas(dbci, parent); }
public OrderingModellerReadIn(UserConnDetails dbci, Form parentMainWin) { startDB = new InterfaceMySQLStartDBConnect(); mdi = startDB.kapcsolodas(dbci, parentMainWin); getTheUserPoolForTableFilling(); }
public PersonalProfileModelDB(UserConnDetails dbci, Form parent) { startDB = new InterfaceMySQLStartDBConnect(); mdi = startDB.kapcsolodas(dbci, parent); }
public ServiceRightsModel(UserConnDetails dbci, Form paretnRightWin) { startDB = new InterfaceMySQLStartDBConnect(); mdi = startDB.kapcsolodas(dbci, paretnRightWin); }