Example #1
0
        public static BucketTool GetInstance()
        {
            if (_instance == null)
            {
                _instance = new BucketTool();
            }

            return(_instance);
        }
Example #2
0
        public static BucketTool GetInstance(Color outline, Color fill, bool outlineEnabled, bool fillEnabled)
        {
            if (_instance == null)
            {
                _instance = new BucketTool(outline, fill, outlineEnabled, fillEnabled);
            }

            _instance.OutlineColor   = outline;
            _instance.FillColor      = fill;
            _instance.OutlineEnabled = outlineEnabled;
            _instance.FillEnabled    = fillEnabled;

            return(_instance);
        }