public ActionBubble(ActionBubble ab) { InitializeComponent(); this.Height = ab.Height; this.Width = ab.Width; this.front = ab.front; this.back = ab.back; this.BubbleData = ab.BubbleData; this.clickHandler = ab.clickHandler; }
// override object.Equals public override bool Equals(object obj) { // // See the full list of guidelines at // http://go.microsoft.com/fwlink/?LinkID=85237 // and also the guidance for operator== at // http://go.microsoft.com/fwlink/?LinkId=85238 // if (obj == null || GetType() != obj.GetType()) { return(false); } // TODO: write your implementation of Equals() here ActionBubbleData refBubble = (obj as ActionBubbleData); return(ActionData.Equals(refBubble.ActionData) && BubbleType == refBubble.BubbleType); }
public ActionBubble() { InitializeComponent(); BubbleData = new ActionBubbleData("", eBubbleType.Empty); IsActive = false; }