public void SendShowYesNoDialogRequest(String title, String text) { MessageShowDialog msg = new MessageShowDialog(); msg.DialogId = new Random().Next(0, 10000).ToString(); currentDialogId = msg.DialogId; msg.DialogType = "yesno"; msg.Title = title; msg.Text = text; SendCommand(msg); }
private void SendShowSelectDialogRequest(string title, string text, List<string> listOptions) { MessageShowDialog msg = new MessageShowDialog(); msg.DialogId = new Random().Next(0, 10000).ToString(); currentDialogId = msg.DialogId; msg.DialogType = "yesnoselect"; msg.Title = title; msg.Text = text; msg.Options = listOptions; SendCommand(msg); }