// Token: 0x060019F6 RID: 6646 RVA: 0x000495B8 File Offset: 0x000477B8
        private void RemoveWayPoint_Click(object sender, EventArgs e)
        {
            WayPointEditor.Class200 @class = this.PlaygroundList.SelectedItems[0] as WayPointEditor.Class200;
            WayPointEditor.Class198 class2 = this.WayPointList.SelectedItems[0] as WayPointEditor.Class198;
            int num = this.WayPointList.SelectedIndices[0];
            Dictionary <PointF, Enum99> dictionary = this.class101_0.WayPoints[@class.enum57_0];

            dictionary.Remove(class2.Point);
            this.WayPointList.Items.Remove(class2);
            if (dictionary.Count == 0)
            {
                this.PlaygroundList.Items.Remove(@class);
                this.class101_0.WayPoints.Remove(@class.enum57_0);
                this.dictionary_0.Remove(@class.enum57_0);
            }
            int count = this.WayPointList.Items.Count;

            if (num < count)
            {
                this.WayPointList.Items[num].Selected = true;
            }
            else if (count > 0)
            {
                this.WayPointList.Items[count - 1].Selected = true;
            }
            base.FileModified = true;
        }
 // Token: 0x060019F9 RID: 6649 RVA: 0x0004983C File Offset: 0x00047A3C
 private void WayPointTypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.WayPointTypeComboBox.SelectedIndex > -1)
     {
         WayPointEditor.Class198 @class = this.WayPointList.SelectedItems[0] as WayPointEditor.Class198;
         WayPointEditor.Class200 class2 = this.PlaygroundList.SelectedItems[0] as WayPointEditor.Class200;
         Enum99 @enum = (Enum99)this.WayPointTypeComboBox.SelectedItem;
         if (@class.WayPointType != @enum)
         {
             Dictionary <PointF, Enum99> dictionary = this.class101_0.WayPoints[class2.enum57_0];
             if (@enum == Enum99.flag_1)
             {
                 foreach (object obj in this.WayPointList.Items)
                 {
                     WayPointEditor.Class198 class3 = (WayPointEditor.Class198)obj;
                     if (class3.WayPointType == Enum99.flag_1)
                     {
                         class3.WayPointType      = Enum99.flag_0;
                         dictionary[class3.Point] = Enum99.flag_0;
                     }
                 }
             }
             @class.WayPointType      = @enum;
             dictionary[@class.Point] = @enum;
         }
         base.FileModified = true;
     }
 }
        // Token: 0x060019F4 RID: 6644 RVA: 0x00049304 File Offset: 0x00047504
        private void method_12()
        {
            if (!this.class141_0.ProcessOpen)
            {
                if (!this.class141_0.smethod_1(this))
                {
                    return;
                }
                this.method_11();
            }
            Enum57 playground = this.class142_0.Playground;

            if (playground == Enum57.const_0)
            {
                DialogBox.smethod_3("Cannot record the position as ToonTown does not appear to be in a playground.", "Unknown Playground");
                return;
            }
            WayPointEditor.Class203 @class = new WayPointEditor.Class203();
            @class.nullable_0 = null;
            EventHandler eventHandler = null;

            WayPointEditor.Class204 class2 = new WayPointEditor.Class204();
            class2.class203_0       = @class;
            class2.wayPointEditor_0 = this;
            class2.loading_0        = new Loading();
            try
            {
                Form loading_ = class2.loading_0;
                if (eventHandler == null)
                {
                    eventHandler = new EventHandler(class2.method_0);
                }
                loading_.Shown += eventHandler;
                class2.loading_0.ShowDialog();
            }
            finally
            {
                if (class2.loading_0 != null)
                {
                    ((IDisposable)class2.loading_0).Dispose();
                }
            }
            if (@class.nullable_0 != null)
            {
                Dictionary <PointF, Enum99> dictionary;
                WayPointEditor.Class200     class3;
                if (this.class101_0.WayPoints.ContainsKey(playground))
                {
                    dictionary = this.class101_0.WayPoints[playground];
                    class3     = this.dictionary_0[playground];
                }
                else
                {
                    dictionary = new Dictionary <PointF, Enum99>();
                    this.class101_0.WayPoints.Add(playground, dictionary);
                    this.PlaygroundList.Items.Add(class3 = new WayPointEditor.Class200(playground));
                    this.dictionary_0.Add(playground, class3);
                    this.PlaygroundList.Sort();
                }
                this.PlaygroundList.SelectedItems.Clear();
                if (class3 != null)
                {
                    class3.Selected = true;
                }
                PointF location = @class.nullable_0.Value.Location;
                WayPointEditor.Class198 class4 = null;
                if (dictionary.ContainsKey(location))
                {
                    WayPointEditor.smethod_0(location);
                    using (IEnumerator enumerator = this.WayPointList.Items.GetEnumerator())
                    {
                        while (enumerator.MoveNext())
                        {
                            object obj = enumerator.Current;
                            WayPointEditor.Class198 class5 = (WayPointEditor.Class198)obj;
                            if (class5.Point == location)
                            {
                                class4 = class5;
IL_1D4:
                                goto IL_217;
                            }
                        }
                        goto IL_1D4;
                    }
                }
                dictionary.Add(location, Enum99.flag_0);
                this.WayPointList.Items.Add(class4 = new WayPointEditor.Class198(location, Enum99.flag_0));
                base.FileModified = true;
IL_217:
                foreach (object obj2 in this.WayPointList.SelectedItems)
                {
                    WayPointEditor.Class198 class6 = (WayPointEditor.Class198)obj2;
                    class6.Selected = false;
                }
                if (class4 != null)
                {
                    class4.Selected = true;
                    return;
                }
            }
            else
            {
                DialogBox.smethod_3("The Way Point Editor was unable to retrieve your toon's coordinates. Check if ToonTown is responding and your toon is in a Playground.", "Unable to Retrieve Coordinates");
            }
        }