Esempio n. 1
0
        private ServerUiConfiguration LoadServerUiConfiguration()
        {
            var configuration = ServerUiConfiguration.ReadConfiguration();

            TextBoxUserLogin.Text                  = configuration.UserLogin;
            PasswordBoxUserPassword.Password       = configuration.UserPassword;
            CheckBoxSaveLoginAndPassword.IsChecked = configuration.SaveLoginAndPassword;

            return(configuration);
        }
Esempio n. 2
0
 public MainWindow()
 {
     InitializeComponent();
     serverUiConfiguration = LoadServerUiConfiguration();
     serverConfiguration   = LoadServerConfiguration();
 }