Пример #1
0
 private void OnDisconnectCommand()
 {
     if (Program.IsRun)
     {
         DR2API.DR2_Click(ApiHandle, 2);
     }
 }
Пример #2
0
 private void OnMenuClickHelp(object sender, RoutedEventArgs e)
 {
     if (Program.IsRun)
     {
         DR2API.DR2_Click(ViewModelBase.ApiHandle, 4, _isLangUS);
     }
 }
Пример #3
0
 private void OnHowToConnectCommand2()
 {
     if (Program.IsRun)
     {
         DR2API.DR2_Click(ApiHandle, 4, _view._isLangUS);
     }
 }
Пример #4
0
 private void OnDisConnectClick(object sender, EventArgs e)
 {
     if (Program.IsRun)
     {
         DR2API.DR2_Click(ViewModelBase.ApiHandle, 2);
     }
 }
Пример #5
0
 private void OnHowToConnectCommand()
 {
     if (Program.IsRun)
     {
         DR2API.DR2_Click(ApiHandle, 1, m_MainWindow._isLangUS);
     }
 }
Пример #6
0
 private void OnCloseCommand()
 {
     if (Program.IsRun)
     {
         // DR2API.DR2_SetFullscreen(ApiHandle, false);
         DR2API.DR2_Click(ApiHandle, 2);
     }
 }
Пример #7
0
 public static void Stop()
 {
     if (Program.IsRun)
     {
         DR2API.DR2_Click(ApiHandle, 2);
         DR2API.DR2_Stop(ApiHandle);
     }
     Started = false;
 }
Пример #8
0
        private void OnCloseCommand()
        {
            Window.GetWindow(_client as DependencyObject).Close();

            if (Program.IsRun)
            {
                //DR2API.DR2_SetFullscreen(ApiHandle, false);
                DR2API.DR2_Click(ApiHandle, 2);
            }
        }