Exemplo n.º 1
0
            public object Clone()
            {
                ResizeParam copy = new ResizeParam();

                copy.size            = size;
                copy.backgroundColor = backgroundColor;
                return(copy);
            }
Exemplo n.º 2
0
        private void ResizeButton_MouseUp(object sender, MouseEventArgs e)
        {
            isEnabled = false;

            ResizeParam actionParameters = new ResizeParam();

            actionParameters.backgroundColor = Setting.GetInstance().BackgroundColor;
            actionParameters.size            = new Size(this.Left + (e.X - tempPoint.X),
                                                        this.Top + (e.Y - tempPoint.Y));
            History.GetInstance().PushBackAction(new MAction(this, actionParameters));
        }
Exemplo n.º 3
0
 public void MakeAction(ActionParameters_t toolParameters)
 {
     try
     {
         ResizeParam resizeParam = (ResizeParam)toolParameters;
         ResizeAction(resizeParam.size, resizeParam.backgroundColor);
         this.Location = new Point(resizeParam.size);
     }
     catch (Exception)
     {
         throw;
     }
 }