コード例 #1
0
ファイル: Handler.cs プロジェクト: themnotyou/pablodraw
        public void GenerateActions(ActionCollection actions, ActionItemCollection menu, ActionItemCollection toolbar)
        {
            //actions.Add("9px", "Use 9px Font|9px Font|Toggle the 9th pixel to emulate text mode", new EventHandler(Use9px));

            //ActionItemSubMenu aiFile = menu.AddSubMenu("&File");

            //aiFile.Actions.Add(actions["9px"]);
        }
コード例 #2
0
        public InfoBarModel(IEnumerable <IInfoBarTextSpan> textSpans, IEnumerable <IInfoBarActionItem> actionItems, ImageMoniker image = default, bool isCloseButtonVisible = true)
        {
            Validate.IsNotNull(textSpans, nameof(textSpans));
            Validate.IsNotNull(actionItems, nameof(actionItems));

            IsCloseButtonVisible = isCloseButtonVisible;
            TextSpans            = new TextSpanCollection(textSpans);
            ActionItems          = new ActionItemCollection(actionItems);
            Image = image;
        }