private void Form1_Load(object sender, EventArgs e)
        {
            propertyGrid1.SelectedObject = connectionManeger.StringBuilder;
            toolStripStatusLabel1.Text = connectionManeger.State;
            connectionManeger.StateChange += new Action<string>(databaseUserStateChange);
            connectionManeger.ErrorSend += new Action<string>(ErrorSend);
            connectionManeger.MessageSend += new Action<string>(databaseUser_MessageSend);
            treeViewFormatter = new MySqlDatabaseTreeViewFormatter(treeView1, dataGridView1);
            treeViewFormatter.ErrorSend += new Action<string>(ErrorSend);
            this.FormClosing += FullSettingsForm_FormClosing;

            foreach (ErrorMessageLogger<string> eml in MedicalChestManeger.Instance.Loggers)
            {
                listBox1.Items.Add(eml.ToString());
            }
        }
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     databaseUser.OpenConnection();
     MySqlDatabaseTreeViewFormatter treeViewFormatter = new MySqlDatabaseTreeViewFormatter(treeView1, dataGridView1);
     treeViewFormatter.ErrorSend+=new Action<string>(ErrorSend);
 }