private void BtnPlay_Click(object sender, RoutedEventArgs e) { _mBtnPlay.Background = new SolidColorBrush(Color.FromArgb(255, 0, 255, 0)); _mBtnStop.Background = new SolidColorBrush(Colors.LightGray); if (!_mInitialized) { _mInitialized = true; int result = PlayerDLL.PlayerChromaInit(); if (result == 0) { _mTextStatus.Text = "STATUS: CHROMA [ACTIVE]"; } else { _mTextStatus.Text = string.Format("STATUS: CHROMA [ERROR] Code: {0}", result); } } }