Beispiel #1
0
 public static extern bool RaisePMDGEvent(SDK.PMDGEvents pmdgEvent, int parameter);
Beispiel #2
0
 private void setManagedPMDGControl(SDK.PMDGEvents pmdgEvent, int data)
 {
     NativeMethod.RaisePMDGEvent(pmdgEvent, data);
 }
Beispiel #3
0
 private void togglePMDGControl(SDK.PMDGEvents pmdgEvent, int data, CheckBox indicator)
 {
     data = ~data;
     NativeMethod.RaisePMDGEvent(pmdgEvent, data);
     indicator.Checked = (data == 1 ? true : false);
 }
Beispiel #4
0
 private void toggleManagedPMDGControl(SDK.PMDGEvents pmdgEvent, CheckBox indicator)
 {
     indicator.Checked = !indicator.Checked;
     NativeMethod.RaisePMDGEvent(pmdgEvent, (indicator.Checked ? 1 : 0));
 }