private void Form_OptionSelected(object sender, OptionSelectedEventArgs e) { if (e.Key == nameof(Model.PayloadType)) { if (e.Value == MessageTemplate.PayloadTypes_Binary) { FormAdapter.HideView(nameof(Model.TextPayload)); FormAdapter.ShowView(nameof(Model.BinaryPayload)); } else if (e.Value == MessageTemplate.PayloadTypes_Text) { FormAdapter.ShowView(nameof(Model.TextPayload)); FormAdapter.HideView(nameof(Model.BinaryPayload)); } else { FormAdapter.HideView(nameof(Model.TextPayload)); FormAdapter.HideView(nameof(Model.BinaryPayload)); } } if (e.Key == nameof(Model.Transport)) { if (e.Value == LagoVista.IoT.Simulator.Admin.Models.Simulator.Transport_RestHttp) { SetForREST(); } } }
public void EditAccessKey(object obj) { FormAdapter.ShowView(nameof(Model.AccessKey)); FormAdapter.HideView(EDIT_ACCESSKEY_CONTROL); }
public void EditPassword(object obj) { FormAdapter.ShowView(nameof(Model.Password)); FormAdapter.HideView(EDIT_PASSWORD_CONTROL); }