Exemple #1
0
        public static RectangleEventArgs DeleteRect()
        {
            RectangleEventArgs e = new RectangleEventArgs();

            e.m_Action = RectangleActions.Delete;
            return(e);
        }
Exemple #2
0
 public static RectangleEventArgs UpdateRect(Rectangle rect)
 {
     RectangleEventArgs e = new RectangleEventArgs();
     e.m_Action = RectangleActions.UpdateRect;
     e.m_Rectangle = rect;
     return e;
 }
Exemple #3
0
        public static RectangleEventArgs UpdateRect(Rectangle rect)
        {
            RectangleEventArgs e = new RectangleEventArgs();

            e.m_Action    = RectangleActions.UpdateRect;
            e.m_Rectangle = rect;
            return(e);
        }
Exemple #4
0
        public static RectangleEventArgs UpdateZ(int minZ, int maxZ)
        {
            RectangleEventArgs e = new RectangleEventArgs();

            e.m_Action = RectangleActions.UpdateZ;
            e.m_MinZ   = minZ;
            e.m_MaxZ   = maxZ;
            return(e);
        }
Exemple #5
0
        private void ChangeZ()
        {
            RectangleEventArgs e = RectangleEventArgs.UpdateZ(MinZ, MaxZ);

            OnRectangleChanged(e);
        }
Exemple #6
0
        private void ChangeRect()
        {
            RectangleEventArgs e = RectangleEventArgs.UpdateRect(this.Rectangle);

            OnRectangleChanged(e);
        }
Exemple #7
0
        private void ButtonDel_Click(object sender, System.EventArgs e)
        {
            RectangleEventArgs ev = RectangleEventArgs.DeleteRect();

            OnRectangleChanged(ev);
        }
Exemple #8
0
 protected void OnRectangleChanged(RectangleEventArgs e)
 {
     RectangleChanged(this, e);
 }
Exemple #9
0
 public static RectangleEventArgs UpdateZ(int minZ, int maxZ)
 {
     RectangleEventArgs e = new RectangleEventArgs();
     e.m_Action = RectangleActions.UpdateZ;
     e.m_MinZ = minZ;
     e.m_MaxZ = maxZ;
     return e;
 }
Exemple #10
0
 public static RectangleEventArgs DeleteRect()
 {
     RectangleEventArgs e = new RectangleEventArgs();
     e.m_Action = RectangleActions.Delete;
     return e;
 }
Exemple #11
0
 protected void OnRectangleChanged( RectangleEventArgs e )
 {
     RectangleChanged( this, e );
 }
        private void rectPanel_RectangleChanged(object sender, RectangleEventArgs e)
        {
            m_Modified = true;

            switch (e.Action)
            {
                case RectangleActions.Delete:
                    DeleteSelectedRectangle();
                    SelectPanel();
                    break;
                case RectangleActions.UpdateRect:
                    SelectedRect.Rectangle = e.Rectangle;
                    UpdateSelectedRect();
                    Map.Refresh();
                    break;
                case RectangleActions.UpdateZ:
                    SelectedRect.MinZ = e.MinZ;
                    SelectedRect.MaxZ = e.MaxZ;
                    UpdateSelectedRect();
                    break;
            }
        }