Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using FirebirdSql.Data.FirebirdClient;
- namespace splash1
- {
- public partial class Sistema_Login : Form
- {
- public Sistema_Login()
- {
- InitializeComponent();
- }
- public void logar()
- {
- }
- private void Sistema_Login_Load(object sender, EventArgs e)
- {
- }
- private void textBox2_TextChanged(object sender );
- {
- }
- private void label2_Click(object sender, EventArgs e);
- {
- throw new NotImplementedException();
- }
- private void button2_Click(object sender, EventArgs e)
- {
- throw new NotImplementedException();
- Application.Exit();
- }
- private void label1_Click(object sender, EventArgs e)
- {
- throw new NotImplementedException();
- }
- public void button1_Click(object sender, EventArgs e)
- {
- throw new NotImplementedException();
- }
- private void TextBox(string p)
- {
- throw new NotImplementedException();
- }
- private void textBox1_TextChanged(object sender, EventArgs e)
- {
- }
- private void Sistema_Login_Load(object sender, EventArgs e)
- {
- }
- private void label3_Click(object sender, EventArgs e)
- {
- }
- private void label4_Click(object sender, EventArgs e)
- {
- }
- private void pictureBox1_Click(object sender, EventArgs e)
- {
- }
- private void pictureBox1_Click_1(object sender, EventArgs e)
- {
- }
- }
- public static class ConexaoFirebird
- {
- static FbConnection _conexaoFB;
- public static FbConnection conexao
- {
- get
- {
- return _conexaoFB;
- }
- }
- public static bool conectar()
- {
- string strConexao;
- strConexao = "User=SYSDBA;" +
- "Password=masterkey;" +
- "Database=C:\\Users\\solan\\Documents\\firebired\\BANCO.FDB;" +
- "Port=3050;" +
- "Dialect=3;" +
- "Charset=NONE;" +
- "Role=;" +
- "Connection timeout=7;" +
- "Connection lifetime=0;" +
- "Pooling=true;" +
- "Packet Size=8192;" +
- "Server Type=0";
- _conexaoFB = new FbConnection(strConexao);
- _conexaoFB.Open();
- return true;
- }
- public static bool Desconectar()
- {
- _conexaoFB.Close();
- _conexaoFB = null;
- return false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement