public FormPrincipal(string[] args) { InitializeComponent(); this.Text = AssemblyTitle + " - " + AssemblyVersion; ClassWebBI.ClassFuncoes clFuncoes = new ClassWebBI.ClassFuncoes(); string[] vVersao = AssemblyVersion.Split(new char[] { '.' }); string sVersao = vVersao[0] + vVersao[1]; clFuncoes.LeConfig(); FormLogin frmLogin = new FormLogin(args[1].ToString(), args[2].ToString()); frmLogin.ShowDialog(); }
public FormPrincipal() { InitializeComponent(); this.Text = AssemblyTitle + " - " + AssemblyVersion; ClassWebBI.ClassFuncoes clFuncoes = new ClassWebBI.ClassFuncoes(); string[] vVersao = AssemblyVersion.Split(new char[] { '.' }); string sVersao = vVersao[0] + vVersao[1]; clFuncoes.LeConfig(); clFuncoes.InicializaBancoDados(Convert.ToInt32(sVersao)); FormLogin frmLogin = new FormLogin(); frmLogin.ShowDialog(); }