public PresetVoiLutActionContainer(WindowLevelTool ownerTool, string actionSite, PresetVoiLut preset, int index)
			{
				_ownerTool = ownerTool;
				_preset = preset;

				string actionId = String.Format("apply{0}", _preset.Operation.Name);

				ActionPlaceholder actionPlaceholder = ownerTool.FindActionPlaceholder(actionSite);
				_action = actionPlaceholder.CreateMenuAction(actionId, string.Format("presetLut{0}", index), ClickActionFlags.None, ownerTool._resolver);
				_action.Label = _preset.Operation.Name;
				_action.KeyStroke = _preset.KeyStroke;
				_action.SetClickHandler(this.Apply);
			}
Exemple #2
0
            public PresetVoiLutActionContainer(WindowLevelTool ownerTool, string actionSite, PresetVoiLut preset, int index)
            {
                _ownerTool = ownerTool;
                _preset    = preset;

                string actionId = String.Format("{1}:apply{0}", _preset.Operation.Name, typeof(WindowLevelTool).FullName);

                ActionPlaceholder actionPlaceholder = ownerTool.FindActionPlaceholder(actionSite);

                _action           = actionPlaceholder.CreateMenuAction(actionId, string.Format("presetLut{0}", index), ClickActionFlags.None, ownerTool._resolver);
                _action.Label     = _preset.Operation.Name;
                _action.KeyStroke = _preset.KeyStroke;
                _action.SetClickHandler(this.Apply);
            }