Exemplo n.º 1
0
        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();
                }
            }
        }
Exemplo n.º 2
0
 public void EditAccessKey(object obj)
 {
     FormAdapter.ShowView(nameof(Model.AccessKey));
     FormAdapter.HideView(EDIT_ACCESSKEY_CONTROL);
 }
Exemplo n.º 3
0
 public void EditPassword(object obj)
 {
     FormAdapter.ShowView(nameof(Model.Password));
     FormAdapter.HideView(EDIT_PASSWORD_CONTROL);
 }