Beispiel #1
0
        internal string AddNewFluid(string profileName)
        {
            if (inks.ContainsKey(profileName))
            {
                return("Fluid profile name already exists");
            }
            FluidConfig ic = new FluidConfig(profileName);

            if ((selectedfluid != null) && inks.ContainsKey(selectedfluid))
            {
                ic.CopyFrom(fluids[selectedfluid]);
            }
            fluids[profileName] = ic;
            SetCurrentFluid(profileName);
            return("OK");
        }