Exemplo n.º 1
0
        public void changeBorder()
        {
            TEX0Node tex0    = getPVParent().GetTexInfoFor(this).tex0;
            Bitmap   icon    = tex0.GetImage(0);
            Bitmap   newIcon = replaceBorder(icon);

            if (newIcon == null)
            {
                return;
            }

            using (var dialog = new ConfirmIconReplaceDialog()) {
                dialog.CurrentImage = icon;
                dialog.NewImage     = newIcon;
                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    tex0.Replace(newIcon);
                    getPVParent().UpdateImage();
                }
            }
        }
Exemplo n.º 2
0
        public void changeBorder()
        {
            TEX0Node tex0 = getPVParent().GetTexInfoFor(this).tex0;
            Bitmap icon = tex0.GetImage(0);
            Bitmap newIcon = replaceBorder(icon);
            if (newIcon == null) return;

            using (var dialog = new ConfirmIconReplaceDialog()) {
                dialog.CurrentImage = icon;
                dialog.NewImage = newIcon;
                if (dialog.ShowDialog() == DialogResult.OK) {
                    tex0.Replace(newIcon);
                    getPVParent().UpdateImage();
                }
            }
        }