private void button1_Click(object sender, EventArgs e) { myClass.directoryNames dirnam = new myClass.directoryNames(); dirnam.import(); textfile tf = new textfile(); tf.a = 10; }