Ejemplo n.º 1
0
 public MainWindow(string u, string p, ADAddress a)
 {
     InitializeComponent();
     userid          = u;
     password        = p;
     domainList      = a;
     this.Visibility = Visibility.Visible;
 }
Ejemplo n.º 2
0
 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();
     }
 }