예제 #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
파일: BaseForm.cs 프로젝트: aum-inv/AUM
 private void UserToolStrip1_FlowDirectionChangedEvent(object sender, EventArgs e)
 {
     flowDirection = (FlowDirectionTypeEnum)sender;
     setFlow();
 }