Ejemplo n.º 1
0
 private void colorSwatchesBarButtonItem_ItemClick(object sender, ItemClickEventArgs e)
 {
     using (DevExpress.Customization.SvgSkinPaletteSelector svgSkinPaletteSelector = new DevExpress.Customization.SvgSkinPaletteSelector(this))
     {
         svgSkinPaletteSelector.ShowDialog( );
     }
 }
Ejemplo n.º 2
0
 private void ShowSwatchPicker(Form owner)
 {
     using (var dialog = new DevExpress.Customization.SvgSkinPaletteSelector(owner)) {
         dialog.ShowDialog();
         SavePalette();
     }
 }
Ejemplo n.º 3
0
        private async void MainForm_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.I && e.Control)
            {
                await ImportWithDirectoryDialogAsync();
            }

            if (e.KeyCode == Keys.F12)
            {
                if (e.Control)
                {
                    using (var dialog = new DevExpress.Customization.SvgSkinPaletteSelector(this))
                    {
                        dialog.ShowDialog();
                    }
                }
                else
                {
                    if (UserLookAndFeel.Default.ActiveSvgPaletteName == "")
                    {
                        UserLookAndFeel.Default.SetSkinStyle(SkinSvgPalette.Bezier.OfficeBlack);
                    }
                    else
                    {
                        UserLookAndFeel.Default.SetSkinStyle(SkinSvgPalette.Bezier.Default);
                    }
                }
            }
        }
Ejemplo n.º 4
0
        private void actionThemeOptions_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            var form = ((WinWindow)Window).Form;

            using (var dialog = new DevExpress.Customization.SvgSkinPaletteSelector(form))
            {
                dialog.ShowDialog();
                SavePalette(Application);
            }
        }