public LoginPage() { InitializeComponent(); var connectionString = ConfigurationManager.ConnectionStrings["SQLConnection"].ToString(); _service = ADSSingleton.GetInstance(connectionString); }
public RegistarPage() { InitializeComponent(); _contraseña = textBox2.Text; _correo = textBox1.Text; var connectionString = ConfigurationManager.ConnectionStrings["SQLConnection"].ToString(); _service = ADSSingleton.GetInstance(connectionString); }
public PaginaDeInicio() { InitializeComponent(); var connectionString = ConfigurationManager.ConnectionStrings["SQLConnection"].ToString(); _service = ADSSingleton.GetInstance(connectionString); ciudades = new List <Lista>(); ciudadesbuscadas = new List <RootObject>(); dataGridView1.DataSource = new BindingSource(ciudadesbuscadas, null); dataGridView1.DataSource = typeof(List <RootObject>); dataGridView1.DataSource = ciudadesbuscadas; dataGridView2.DataSource = new BindingSource(ciudades, null); dataGridView2.DataSource = typeof(List <Lista>); dataGridView2.DataSource = ciudades; }
public ClimaService(string connectionString) { _dataService = ADSSingleton.GetInstance(connectionString); }