Beispiel #1
0
        public (bool, string) UpdateColorConfigs(string scenarioName, List <ColorConfig> colorConfigs)
        {
            if (this.kgConfigFrame == null)
            {
                return(false, "KG Color Config doesn't exist.");
            }

            (bool success, string msg) = this.kgConfigFrame.UpdateVertexLabelColorMapForScenario(scenarioName, colorConfigs);

            if (!success)
            {
                return(success, msg);
            }


            success = dsMgmt.UpdateColorConfig(this.user, this.dsName, scenarioName, colorConfigs);

            if (!success)
            {
                msg = "Failed to update color config in persistent data store.";
            }
            else
            {
                msg = "Update color config successfully.";
            }

            return(success, msg);
        }