Example #1
0
        private void btnSetSite_Click(object sender, RoutedEventArgs e)
        {
            if (client != null)
            {
                OpenFileDialog ofd = new OpenFileDialog()
                {
                    DefaultExt = "temsXml",
                    Filter     = "TEMS Files (*.temsXml)|*.temsXml|All Files (*.*)|*.*"
                };

                if (ofd.ShowDialog() ?? false)
                {
                    XDocument doc = XDocument.Load(ofd.FileName);
                    client.SetSite(doc);
                }
            }
        }