Пример #1
0
        public AliasConfigForm()
        {
            InitializeComponent();

            _stateProvider = new AliasStateProvider(serverToAliasTextBox.Text);

            _growler = new Growler();
            _growler.Register();

            _model = _viewModel = new AliasStateViewModel(_stateProvider, Settings.Default.ServerToAlias, _growler);
            _viewModel.PropertyChanged += AliasStateChanged;
            stateBindingSource.DataSource = _viewModel;

            SetUIStateFromProvider();
        }