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(); //перелік користувачів }
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; } }