예제 #1
0
 public LoginForm()
 {
     InitializeComponent();
     uLogin      = new UserLogin();
     stPathFiles = new stPath();
     stPathFiles.LoadIniFile();
     allEmployees.Clear();
     db2.GetAllEmloyees(ref allEmployees);
     comboBox1.DataSource    = allEmployees;
     comboBox1.DisplayMember = "FullName";
     comboBox1.ValueMember   = "ID";
     SetLastEmployee();
     //перелік користувачів
 }
예제 #2
0
 public MainForm()
 {
     InitializeComponent();
     stPathFiles = new stPath();
     stPathFiles.LoadIniFile();
     if (stPathFiles.CheckFirebirdDll)
     {
         db2 = new DB();
         glb.isConnection = true;
         if (!db2.CheckConnection())
         {
             MessageBox.Show(db2.error);
             glb.isConnection = false;
         }
     }
     else
     {
         glb.isConnection = false;
     }
 }