Ejemplo n.º 1
0
        private CommandClientAdapter GetOrCreateClientAdapter(Sce.Atf.Applications.ICommandClient client)
        {
            CommandClientAdapter adapter;

            if (!m_clientAdapters.TryGetValue(client, out adapter))
            {
                adapter = new CommandClientAdapter(client);
                lock (m_clientAdapters)
                {
                    m_clientAdapters.Add(client, adapter);
                }
            }
            return(adapter);
        }
Ejemplo n.º 2
0
 private CommandClientAdapter GetOrCreateClientAdapter(Sce.Atf.Applications.ICommandClient client)
 {
     CommandClientAdapter adapter;
     if (!m_clientAdapters.TryGetValue(client, out adapter))
     {
         adapter = new CommandClientAdapter(client);
         lock (m_clientAdapters)
         {
             m_clientAdapters.Add(client, adapter);
         }
     }
     return adapter;
 }