Example #1
0
        public DialogSetting Clone()
        {
            DialogSetting setting = new DialogSetting();

            setting.Position   = Position;
            setting.Size       = Size;
            setting.IsMinimize = IsMinimize;
            return(setting);
        }
Example #2
0
        public override bool  Equals(object obj)
        {
            DialogSetting setting = obj as DialogSetting;

            if (setting == null)
            {
                return(false);
            }

            return(Point.Equals(Position, setting.Position) &&
                   Size.Equals(Size, setting.Size) &&
                   IsMinimize == setting.IsMinimize);
        }