Пример #1
0
        protected virtual void OnThemeItemClick(LayerOrderEventArgs e)
        {
            EventHandler <LayerOrderEventArgs> handler = ThemeItemClick;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #2
0
 private void themeItem_ThemeItemClick(object sender, LayerOrderEventArgs e)
 {
     for (int i = 0; i < themeView.Items.Count; i++)
     {
         if (e.Name == themeView.Items[i].ShapeName)
         {
             selectedOrder = i;
             themeView.Items[i].BorderStyle = BorderStyle.Fixed3D;
             themeView.Items[i].BackColor   = Color.FromArgb(100, 74, 142, 207);
         }
         else
         {
             themeView.Items[i].BorderStyle = BorderStyle.FixedSingle;
             themeView.Items[i].BackColor   = Color.White;
         }
     }
 }