Guest User

Untitled

a guest
Mar 20th, 2016
89
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. public static class ConexaoFirebird
  29. {
  30. static FbConnection _conexaoFB;
  31.  
  32. public static FbConnection conexao
  33. {
  34. get
  35. {
  36. return _conexaoFB;
  37. }
  38. }
  39.  
  40. public static bool conectar()
  41. {
  42. string strConexao;
  43.  
  44. strConexao = "User=SYSDBA;" +
  45. "Password=masterkey;" +
  46. "Database=C:\\Users\\solan\\Documents\\firebired\\BANCO.FDB;" +
  47. "Port=3050;" +
  48. "Dialect=3;" +
  49. "Charset=NONE;" +
  50. "Role=;" +
  51. "Connection timeout=7;" +
  52. "Connection lifetime=0;" +
  53. "Pooling=true;" +
  54. "Packet Size=8192;" +
  55. "Server Type=0";
  56.  
  57.  
  58. _conexaoFB = new FbConnection(strConexao);
  59. _conexaoFB.Open();
  60. return true;
  61. }
  62.  
  63. public static bool Desconectar()
  64. {
  65. _conexaoFB.Close();
  66. _conexaoFB = null;
  67.  
  68. return false;
  69. }
  70.  
  71.  
  72. }
  73.  
  74. private void textBox2_TextChangedobject sender; EventArgs e;
  75. {
  76. }
  77.  
  78.  
  79.  
  80. private void label2_Click(object sender, EventArgs e;
  81. {
  82. throw new NotImplementedException();
  83. }
  84.  
  85. private void button2_Click(object sender, EventArgs e)
  86. {
  87. Application.Exit();
  88. }
  89.  
  90. private void label1_Click(object sender, EventArgs e)
  91. {
  92. throw new NotImplementedException();
  93. }
  94.  
  95. public void button1_Click(object sender, EventArgs e)
  96. {
  97. throw new NotImplementedException();
  98. }
  99.  
  100. private void TextBox(string p)
  101. {
  102. throw new NotImplementedException();
  103. }
  104.  
  105. private void textBox1_TextChanged(object sender, EventArgs e)
  106. {
  107.  
  108. }
  109.  
  110. private void Sistema_Login_Load(object sender, EventArgs e)
  111. {
  112.  
  113. }
  114.  
  115. private void label3_Click(object sender, EventArgs e)
  116. {
  117.  
  118. }
  119.  
  120. private void label4_Click(object sender, EventArgs e)
  121. {
  122.  
  123. }
  124.  
  125. private void pictureBox1_Click(object sender, EventArgs e)
  126. {
  127.  
  128. }
  129.  
  130. private void pictureBox1_Click_1(object sender, EventArgs e)
  131. {
  132.  
  133. }
  134. }
RAW Paste Data