Exemplo n.º 1
0
    // Send a request for a message in the layout
    private void SendMessageRequest(string message, WarningStatus status)
    {
        if (status == WarningStatus.Warning)
        {
            style.DrawWarning(message);
        }
        else if (status == WarningStatus.Error)
        {
            style.DrawError(message);
        }
        else
        {
            style.DrawInfo(message);
        }

        if (status != WarningStatus.None)
        {
            settings.currentTabStatus = status;
        }
    }
Exemplo n.º 2
0
    // Send a request for a message in the layout
    private void SendMessageRequest(string message, int index, WarningStatus status)
    {
        if (status == WarningStatus.Warning)
        {
            style.DrawWarning(message);
        }
        else if (status == WarningStatus.Error)
        {
            style.DrawError(message);
        }
        else
        {
            style.DrawInfo(message);
        }

        if (index != -1)
        {
            settings.tabStatus[index] = status;
        }
    }