Exemple #1
0
        private void Save_Click(object sender, RoutedEventArgs e)
        {
            DynamicIPConfig config = new DynamicIPConfig
            {
                DomainProvider = (string)((ComboBoxItem)domainProviders.SelectedItem).Content,
                Login          = login.Text,
                Password       = password.Text,
                HostName       = hostName.Text
            };

            DynamicIPConfigManager.SaveConfiguration(config);
        }
Exemple #2
0
        private void InitConfiguration()
        {
            DynamicIPConfig config = new DynamicIPConfig();

            try
            {
                config = DynamicIPConfigManager.LoadConfiguration();
            }
            catch (Exception ex) { }

            UpdateView(config);
        }