public MainPage() { InitializeComponent(); prot = new myProtect(); code.Text = prot.getCode(); pass.Text = prot.getKey(); }