Пример #1
0
        public Settings()
        {
            _settingsManager = SettingsManager.Instance;
            InitializeComponent();
            HostBox.Text = _settingsManager.Host;
            PortBox.Text = _settingsManager.Port;
            PasswordBox.Text = _settingsManager.Password;

            BackKeyPress += BackKeyPressed;
        }
Пример #2
0
        // Constructor
        public MainPage()
        {
            _currentTrackIdentifier = -1;
            _clientId = -1;
            _packetCount = 0;
            _settings = SettingsManager.Instance;

            _data = new ObservableCollection<ZpdTrack>();

            InitializeComponent();
            if (null == ClientManager.Client)
            {
                ClientManager.InitAndGetClient();
            }

            InitClient();

            _timer = new Timer(TimerCallback, this, 0, 1000);

            trackQueueListBox.DataContext = _data;
            trackQueueListBox.ItemsReordered += ItemsReorderedHandler;
        }