SHARE
TWEET

Untitled

a guest Mar 20th, 2016 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using FirebirdSql.Data.FirebirdClient;
  11.  
  12. namespace splash1
  13. {
  14.     public partial class Sistema_Login : Form
  15.     {
  16.    
  17.  
  18.         public Sistema_Login()
  19.         {
  20.             InitializeComponent();
  21.         }
  22.  
  23.         public void logar(){ }
  24.  
  25.         private void Sistema_Login_Load(object sender, EventArgs e)
  26.         {
  27.         }
  28.     }
  29.                 public static class ConexaoFirebird
  30.     {
  31.         static FbConnection _conexaoFB;
  32.  
  33.         public static FbConnection conexao
  34.         {
  35.             get
  36.             {
  37.                 return _conexaoFB;
  38.             }
  39.         }
  40.  
  41.         public static bool conectar()
  42.         {
  43.             string strConexao;
  44.  
  45.             strConexao = "User=SYSDBA;" +
  46.             "Password=masterkey;" +
  47.             "Database=C:\\Users\\solan\\Documents\\firebired\\BANCO.FDB;" +
  48.             "Port=3050;" +
  49.             "Dialect=3;" +
  50.             "Charset=NONE;" +
  51.             "Role=;" +
  52.             "Connection timeout=7;" +
  53.             "Connection lifetime=0;" +
  54.             "Pooling=true;" +
  55.             "Packet Size=8192;" +
  56.             "Server Type=0";
  57.  
  58.  
  59.             _conexaoFB = new FbConnection(strConexao);
  60.             _conexaoFB.Open();
  61.             return true;
  62.         }
  63.  
  64.         public static bool Desconectar()
  65.         {
  66.             _conexaoFB.Close();
  67.             _conexaoFB = null;
  68.  
  69.             return false;
  70.         }
  71.        
  72.        private void textBox2_TextChanged(object sender );
  73.         {
  74.         }
  75.  
  76.        
  77.  
  78.         private void label2_Click(object sender, EventArgs e);
  79.         {
  80.             throw new NotImplementedException();
  81.         }
  82.  
  83.         private void button2_Click(object sender, EventArgs e)
  84.         {
  85.             throw new NotImplementedException();
  86.             Application.Exit();
  87.         }
  88.  
  89.         private void label1_Click(object sender, EventArgs e)
  90.         {
  91.                throw new NotImplementedException();
  92.         }
  93.  
  94.         public void   button1_Click(object sender, EventArgs e)
  95.         {
  96.             throw new NotImplementedException();
  97.         }
  98.  
  99.         private void TextBox(string p)
  100.         {
  101.             throw new NotImplementedException();
  102.         }
  103.  
  104.         private void textBox1_TextChanged(object sender, EventArgs e)
  105.         {
  106.  
  107.         }
  108.  
  109.         private void Sistema_Login_Load(object sender, EventArgs e)
  110.         {
  111.  
  112.         }
  113.  
  114.         private void label3_Click(object sender, EventArgs e)
  115.         {
  116.  
  117.         }
  118.  
  119.         private void label4_Click(object sender, EventArgs e)
  120.         {
  121.  
  122.         }
  123.  
  124.         private void pictureBox1_Click(object sender, EventArgs e)
  125.         {
  126.  
  127.         }
  128.  
  129.         private void pictureBox1_Click_1(object sender, EventArgs e)
  130.         {
  131.  
  132.         }
  133. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top