private void Sdk_OnXNotify(object sender, AxTrueConf_CallXLib._ITrueConfCallXEvents_OnXNotifyEvent e) { if (statusLblLogin.Text == "Logged in") //after success login { UpdateFileList(); //get list of received files } }
private void Sdk_OnXNotify(object sender, AxTrueConf_CallXLib._ITrueConfCallXEvents_OnXNotifyEvent e) { if (e.data.Contains("getAppState")) //checking that received notification contains result for getAppState { dynamic json = JsonConvert.DeserializeObject(e.data); //converting received JSON object status = json.appState; //saving app state lblStatus.Content = statuses.ElementAt(status); //setting content of the status label SetColorStatus(); //setting the color of the status label switch (status) //disabling the call button when the user is not logged in (app state <3) and enabling after logging in (app state> 2) { case 1: case 2: btnCall.IsEnabled = false; btnConnect.IsEnabled = true; break; case 3: case 4: case 5: case 6: btnCall.IsEnabled = true; btnConnect.IsEnabled = true; break; } } }