BRT_BuildReportWindow.DrawTopRowButtons C# (CSharp) Method

DrawTopRowButtons() private method

private DrawTopRowButtons ( ) : void
return void
    void DrawTopRowButtons()
    {
        if (GUI.Button(new Rect(5, 5, 100, 20), REFRESH_LABEL) && !LoadingValuesFromThread)
        {
            Refresh();
        }
        if (GUI.Button(new Rect(110, 5, 100, 20), OPEN_LABEL) && !LoadingValuesFromThread)
        {
            string filepath = EditorUtility.OpenFilePanel(
                OPEN_SERIALIZED_BUILD_INFO_TITLE,
                BuildReportTool.Options.BuildReportSavePath,
                "xml");

            OpenBuildInfoAsync(filepath);
        }
        if (GUI.Button(new Rect(215, 5, 100, 20), SAVE_LABEL) && BuildReportTool.Util.BuildInfoHasContents(_buildInfo))
        {
            string filepath = EditorUtility.SaveFilePanel(
                SAVE_MSG,
                BuildReportTool.Options.BuildReportSavePath,
                _buildInfo.GetDefaultFilename(),
                "xml");

            if (!string.IsNullOrEmpty(filepath))
            {
                BuildReportTool.Util.SerializeBuildInfo(_buildInfo, filepath);
            }
        }
        if (!BuildReportTool.Util.BuildInfoHasContents(_buildInfo))
        {
            if (GUI.Button(new Rect(320, 5, 100, 20), OPTIONS_CATEGORY_LABEL))
            {
                _selectedCategoryIdx = OPTIONS_IDX;
            }
            if (GUI.Button(new Rect(425, 5, 100, 20), HELP_CATEGORY_LABEL))
            {
                _selectedCategoryIdx = HELP_IDX;
            }
        }
    }