Exemple #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();
                }
            }
        }
        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();
                }
            }
        }