Пример #1
0
        private void tsbAlignment_Click(object sender, EventArgs e)
        {
            ToolStripButton c = sender as ToolStripButton;

            FlowDirectionTypeEnum type = FlowDirectionTypeEnum.TABLE;

            if (c.Text == "List")
            {
                type = FlowDirectionTypeEnum.LIST;
            }
            else if (c.Text == "Tab")
            {
                type = FlowDirectionTypeEnum.TAB;
            }

            if (FlowDirectionChangedEvent != null)
            {
                FlowDirectionChangedEvent(type, e);
            }

            //tsbTable.BackColor = Color.WhiteSmoke;
            //tsbList.BackColor = Color.WhiteSmoke;
            //tsbFTab.BackColor = Color.WhiteSmoke;

            ((ToolStripButton)sender).BackColor = Color.Yellow;
        }
Пример #2
0
 private void UserToolStrip1_FlowDirectionChangedEvent(object sender, EventArgs e)
 {
     flowDirection = (FlowDirectionTypeEnum)sender;
     setFlow();
 }