Example #1
0
        private static void AddInstance(IXenConnection connection, XenDialogBase dialog)
        {
            lock(instances)
            {
                if (!instances.ContainsKey(connection))
                    instances.Add(connection, new List<XenDialogBase>());

                instances[connection].Add(dialog);
            }
        }
Example #2
0
        private static void AddInstance(IXenConnection connection, XenDialogBase dialog)
        {
            lock (instances)
            {
                if (!instances.ContainsKey(connection))
                {
                    instances.Add(connection, new List <XenDialogBase>());
                }

                instances[connection].Add(dialog);
            }
        }