Пример #1
0
 private void colorSwatchesBarButtonItem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (SvgSkinPaletteSelector svgSkinPaletteSelector = new SvgSkinPaletteSelector(this))
     {
         svgSkinPaletteSelector.ShowDialog( );
     }
 }
Пример #2
0
 private void itmColorSwatch_ItemClick(object sender, ItemClickEventArgs e)
 {
     using (SvgSkinPaletteSelector svgSkinPaletteSelector = new SvgSkinPaletteSelector(this))
     {
         svgSkinPaletteSelector.ShowDialog();
     }
 }
Пример #3
0
 void bbiSwatches_ItemClick(object sender, ItemClickEventArgs e)
 {
     using (SvgSkinPaletteSelector svgSkinPaletteSelector = new SvgSkinPaletteSelector(this.FindForm())) {
         svgSkinPaletteSelector.ShowDialog();
     }
     UpdateCustomColors();
 }
Пример #4
0
        /// <summary>
        /// Displays the Bezier color palette switcher overlay, which allows the user to change the current Bezier palette.
        /// </summary>
        public void ChangeBezierPalette()
        {
            var mainWindow = new Form();

            foreach (Form window in Application.OpenForms)
            {
                if (window is MainView)
                {
                    mainWindow = window;
                }
            }

            if (!(mainWindow is MainView))
            {
                return;
            }
            using (var palletteSelector = new SvgSkinPaletteSelector(mainWindow))
            {
                palletteSelector.ShowDialog();
            }
        }
Пример #5
0
 void paletteSelectorBBI_ItemClick(object sender, ItemClickEventArgs e)
 {
     using (SvgSkinPaletteSelector form = new SvgSkinPaletteSelector(this))
         form.ShowDialog();
 }