//constactor public frmSearchAccountNM() { InitializeComponent(); try { Acn = new AccountNm(@".\s2008", "dbSimlpeSales", null, null); IDUSER = 1; }catch (Exception ex) { MessageBox.Show(ex.Message); } }
public frmSimple() { InitializeComponent(); try { Acn = new AccountNm(@".\s20012", "DBRazazi", null, null); IDUSER = 1; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
/// constactor with input public frmSearchAccountNM(string ServNm, string DbNm, string UesrSql, string PassSql, int UserId) { InitializeComponent(); try { Acn = new AccountNm(ServNm, DbNm, UesrSql, PassSql); // Acn = new AccountNm(@".\s2008", "dbSimlpeSales", null, null); IDUSER = UserId; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public frmRecive(string ServNm, string DbNm, string UesrSql, string PassSql, int UserId) { InitializeComponent(); try { IDUSER = UserId; Sern = ServNm; this.DbNm = DbNm; userSql = UesrSql; passSql = PassSql; Acn = new AccountNm(ServNm, DbNm, UesrSql, PassSql); // Acn = new AccountNm(@".\s2008", "dbSimlpeSales", null, null); } catch (Exception ex) { MessageBox.Show(ex.Message); } }