模仿ICE的structured panorama小按钮-LMLPHP

这个按钮的目的是用于手动排列图片序列,应该说写得比较精巧,我使用csharp进行模仿,主要采用的是自动控件创建技术。结果比较简陋,实现功能而已,放出来大家一起学习。
模仿ICE的structured panorama小按钮-LMLPHP

;
        ;
        Button[] btns ];
        ; i ; i, );
                 );
                 );
                 btns[i].Location    )
            {
                )
                    btns[iclick1].Text )
                    btns[iclick2].Text  )
            {
                )
                    )
                    btns[iclick2].Text  )
            {
                )
                    )
                    btns[iclick2].Text  )
            {
                )
                    )
                    btns[iclick2].Text  )
            {
                )
                    )
                    btns[iclick2].Text    )
            {
                btn.BackColor  )
            {
                )
                     )
            {
                )
                     )
            {
                )
                     )
            {
                )
                    return;
                btn.BackColor = Color.Gray;
                btn.ForeColor = Color.White;
                btn.Text = "2";
            }
        }
        private void btns_MouseLeave(object sender, EventArgs e)
        {
            Button btn = (Button)sender;
            int index = int.Parse(btn.Name);
            if (index == iclick1 || index == iclick2)
                return;
            btn.BackColor = Color.Empty;
            btn.ForeColor = Color.Black;
            btn.Text = "";
        }
    }
}
代码下载地址:
04-27 04:50