private void button1_Click(object sender, EventArgs e) { var cvs = new Cvs(); cvs.OpenLast(); if(cvs.Opened() && cvs.Branch(textBox1.Text)) { _parent.Reload(); Close(); } else { MessageBox.Show("Error"); } }