private void TestingObject_Click(object sender, EventArgs e) { tf.objectReference = this.Content; tf.objectName = this.Text; Debug.WriteLine(tf.objectReference.ToString()); tf.Close(); }