Пример #1
0
    private void CopyActionPointCallback(string actionPointName, string data)
    {
        CopyActionPointResponse response = JsonConvert.DeserializeObject <CopyActionPointResponse>(data);

        if (response.Result)
        {
            Notifications.Instance.ShowToastMessage($"Action point {actionPointName} was duplicated");
        }
        else
        {
            Notifications.Instance.ShowNotification("Failed to duplicate action point", response.Messages.FirstOrDefault());
        }
    }
Пример #2
0
    private void CopyActionPointDryRunCallback(string _, string data)
    {
        CopyActionPointResponse response = JsonConvert.DeserializeObject <CopyActionPointResponse>(data);

        if (response.Result)
        {
            CopyButton.SetInteractivity(true);
        }
        else
        {
            CopyButton.SetInteractivity(false, response.Messages.FirstOrDefault());
        }
    }