public GlareSet(GlareSet original) { // maybe just use the same attribute reference... attrib = original.attrib; // new GlareSetAttributes( original.attrib ); images = original.images; state = GlareState.Normal; }
void IReflectorCopyPaste.OnPaste(Object o) { PSI_Button original = o as PSI_Button; if (original != null) { this.gs = new GlareSet(original.gs); this.FontTracker = original.FontTracker; this.Text = original.Text; } //throw new Exception( "The method or operation is not implemented." ); }
void Init(Canvas canvas, IReflectorButton click_interface) { AllowShowUsers = new List <string>(); AllowShow = new List <string>(); DisallowShow = new List <string>(); this.canvas = canvas; buttons = new buttons_class(); gs = new GlareSet("default", "default"); FontTracker = FontEditor.GetFontTracker("Default"); allowed_on_system = true; InitializeComponent(); if (click_interface == null) { _click = this as IReflectorButton; } else { _click = click_interface; } #if no_PSI_Base_class SetStyle(ControlStyles.SupportsTransparentBackColor, true); //SetStyle(ControlStyles.Opaque, false); // no background //SetStyle(ControlStyles.UserPaint, true); // generate paint //SetStyle(ControlStyles.AllPaintingInWmPaint, true); // skip paintbackground this.SetStyle(ControlStyles.Opaque, false); this.BackColor = Color.Transparent; this.DoubleBuffered = true; #endif this.security_tags = new List <object>(); this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.CanvasButtonUp); this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.CanvasClick); this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.CanvasButtonDown); this.Paint += new PaintEventHandler(PSI_Button_Paint); //SetStyle(ControlStyles. //this.SetStyle(ControlStyles. //BackColor = Color.Transparent; // Color.FromArgb(0, 1, 0, 0); }