コード例 #1
0
        public void AddOperation(View.VOperation operation)
        {
            lock (operations)
            {
                if (operations.ContainsKey(operation.Name()))
                    throw new Exception("operation name " + operation.Name() + " already exists!");

                operations.Add(operation.Name().ToLower(), operation);

            }
        }