private void container_MouseUp(object sender, MouseButtonEventArgs e)
        {
            mouseDown         = false;
            window.Background = null;

            settingType = ShapeSettingType.ShapeSettingType_Move;
        }
        private void Rotate_MouseDown(object sender, MouseButtonEventArgs e)
        {
            settingType       = ShapeSettingType.ShapeSettingType_Rotate;
            window.Background = Brushes.Transparent;

            mouseDown = true;
        }
        public DoodleShapeSettingControl()
        {
            settingType = ShapeSettingType.ShapeSettingType_Move;

            InitializeComponent();
        }
        private void SetType(double w, double h)
        {
            switch (settingType)
            {
            case ShapeSettingType.ShapeSettingType_LeftTop:
            {
                if (w < 0)
                {
                    settingType = ShapeSettingType.ShapeSettingType_RightTop;
                }

                if (h < 0)
                {
                    settingType = ShapeSettingType.ShapeSettingType_LeftBottom;
                }
            }
            break;

            case ShapeSettingType.ShapeSettingType_RightTop:
            {
                if (w < 0)
                {
                    settingType = ShapeSettingType.ShapeSettingType_LeftTop;
                }

                if (h < 0)
                {
                    settingType = ShapeSettingType.ShapeSettingType_RightBottom;
                }
            }
            break;

            case ShapeSettingType.ShapeSettingType_LeftBottom:
            {
                if (w < 0)
                {
                    settingType = ShapeSettingType.ShapeSettingType_RightBottom;
                }

                if (h < 0)
                {
                    settingType = ShapeSettingType.ShapeSettingType_LeftTop;
                }
            }
            break;

            case ShapeSettingType.ShapeSettingType_RightBottom:
            {
                if (w < 0)
                {
                    settingType = ShapeSettingType.ShapeSettingType_LeftBottom;
                }

                if (h < 0)
                {
                    settingType = ShapeSettingType.ShapeSettingType_RightTop;
                }
            }
            break;
            }
        }