Ejemplo n.º 1
0
        // Edit button released
        public virtual void OnEditEnd()
        {
            if (General.Interface.IsActiveWindow)
            {
                List <Linedef> linedefs = mode.GetSelectedLinedefs();
                DialogResult   result   = General.Interface.ShowEditLinedefs(linedefs);
                if (result == DialogResult.OK)
                {
                    foreach (Linedef l in linedefs)
                    {
                        if (l.Front != null)
                        {
                            VisualSector vs = mode.GetVisualSector(l.Front.Sector);
                            if (vs != null)
                            {
                                (vs as BaseVisualSector).Changed = true;
                            }
                        }

                        if (l.Back != null)
                        {
                            VisualSector vs = mode.GetVisualSector(l.Back.Sector);
                            if (vs != null)
                            {
                                (vs as BaseVisualSector).Changed = true;
                            }
                        }
                    }
                }
            }
        }