예제 #1
0
파일: ActionItem.cs 프로젝트: hultqvist/Eto
		public override void Generate(ToolBar toolBar)
		{
			var tbb = new SeparatorToolBarItem(toolBar.Generator) { Type = this.ToolBarType };
			if (!string.IsNullOrEmpty (ToolBarItemStyle))
				tbb.Style = ToolBarItemStyle;
			toolBar.Items.Add(tbb);
		}
예제 #2
0
		public override ToolBarItem GenerateToolBarItem(Generator generator, ToolBarTextAlign textAlign)
		{
			var tbb = new SeparatorToolBarItem(generator) { Type = this.ToolBarType };
			if (!string.IsNullOrEmpty (ToolBarItemStyle))
				tbb.Style = ToolBarItemStyle;
			return tbb;
		}
예제 #3
0
        public override void Generate(ToolBar toolBar)
        {
            var tbb = new SeparatorToolBarItem(toolBar.Generator)
            {
                Type = this.ToolBarType
            };

            if (!string.IsNullOrEmpty(ToolBarItemStyle))
            {
                tbb.Style = ToolBarItemStyle;
            }
            toolBar.Items.Add(tbb);
        }
예제 #4
0
        public override ToolBarItem GenerateToolBarItem(Generator generator, ToolBarTextAlign textAlign)
        {
            var tbb = new SeparatorToolBarItem(generator)
            {
                Type = this.ToolBarType
            };

            if (!string.IsNullOrEmpty(ToolBarItemStyle))
            {
                tbb.Style = ToolBarItemStyle;
            }
            return(tbb);
        }