Ejemplo n.º 1
0
        private void txtIndexNumber_TextChanged(object sender, EventArgs e)
        {
            int indexNumber;

            Int32.TryParse(txtIndexNumber.Text, out indexNumber);
            int index = lstRepops.SelectedIndex;

            // Update data
            if (index != -1)
            {
                RepopulationPoint repop = lstRepops.Items[lstRepops.SelectedIndex] as RepopulationPoint;
                if (repop != null)
                {
                    repop.RoomIndexNumber = indexNumber;
                }
                lstRepops.Items[lstRepops.SelectedIndex] = repop;
            }

            // Update display if it matches an existing room.
            foreach (RoomTemplate room in _area.Rooms)
            {
                if (room.IndexNumber == indexNumber)
                {
                    MainForm.BuildRTFString(room.Title, rtbRoom);
                    return;
                }
            }
            rtbRoom.Text = String.Empty;
        }
Ejemplo n.º 2
0
        private void txtIndexNumber_TextChanged(object sender, EventArgs e)
        {
            int indexNumber = 0;

            Int32.TryParse(txtIndexNumber.Text, out indexNumber);
            foreach (MobTemplate mob in _area.Mobs)
            {
                if (mob.IndexNumber == indexNumber)
                {
                    MainForm.BuildRTFString(mob.ShortDescription, rtbMobName);
                    return;
                }
            }
            rtbMobName.Text = String.Empty;
        }
Ejemplo n.º 3
0
        private void txtKeyIndexNumber_TextChanged(object sender, EventArgs e)
        {
            int indexNumber;

            Int32.TryParse(txtKeyIndexNumber.Text, out indexNumber);
            foreach (ObjTemplate obj in _area.Objects)
            {
                if (obj.IndexNumber == indexNumber)
                {
                    MainForm.BuildRTFString(obj.ShortDescription, rtbKeyName);
                    return;
                }
            }
            rtbKeyName.Text = String.Empty;
        }
Ejemplo n.º 4
0
        private void txtIndexNumber_TextChanged(object sender, EventArgs e)
        {
            int indexNumber;

            Int32.TryParse(txtIndexNumber.Text, out indexNumber);
            foreach (RoomTemplate room in _area.Rooms)
            {
                if (room.IndexNumber == indexNumber)
                {
                    MainForm.BuildRTFString(room.Title, rtbTargetRoom);
                    return;
                }
            }
            rtbTargetRoom.Text = String.Empty;
        }
Ejemplo n.º 5
0
 private void txtDescription_TextChanged(object sender, EventArgs e)
 {
     MainForm.BuildRTFString(txtDescription.Text, rtbDescription);
 }
Ejemplo n.º 6
0
 private void txtResetMsg_TextChanged(object sender, EventArgs e)
 {
     MainForm.BuildRTFString(txtResetMsg.Text, rtbResetMsg);
 }
Ejemplo n.º 7
0
 private void txtName_TextChanged(object sender, EventArgs e)
 {
     MainForm.BuildRTFString(txtName.Text, rtbAreaName);
 }