public MainWindow(string u, string p, ADAddress a) { InitializeComponent(); userid = u; password = p; domainList = a; this.Visibility = Visibility.Visible; }
private void readXML() { try { using (TextReader reader = new StreamReader(Directory.GetCurrentDirectory() + "\\adaddress.xml")) { XmlSerializer serializer = new XmlSerializer(typeof(ADAddress)); adAddr = (ADAddress)serializer.Deserialize(reader); } } catch (Exception e) { System.Windows.MessageBox.Show(e.Message); Application.Current.Shutdown(); } }