WorldEditor.frmEditLocation.SaveProperties C# (CSharp) Method

SaveProperties() private method

private SaveProperties ( ) : void
return void
        private void SaveProperties()
        {
            Loc.Name = txtName.Text;
            Loc.Pid = Decimal.ToInt32(numPID.Value);
            Loc.Size = Decimal.ToInt32(numSize.Value);
            Loc.X = Decimal.ToInt32(numXPos.Value);
            Loc.Y = Decimal.ToInt32(numYPos.Value);
            Loc.Entrance = txtEntrance.Text;
            Loc.EntranceScript = txtEntranceScript.Text;
            Loc.MaxPlayers = Decimal.ToInt32(numMaxCopies.Value);
            Loc.WorldMapName = txtWMName.Text;
            Loc.WorldMapDescription = txtDescription.Text;
            Loc.WorldMapSignImagePath = txtSignImagePath.Text;
            Loc.WorldMapTownImagePath = txtTownImagePath.Text;
            Loc.Visible = chkVisible.Checked;
            Loc.Modified = true;
            Loc.AutoGarbage = chkEncounter.Checked;
            Loc.GeckVisible = chkGeck.Checked;
            Loc.Flags = new List<string>(txtFlags.Lines);
            Save = true;
        }