private void btnDeleteAll_Click(object sender, EventArgs e)
 {
     try
     {
         if (this.gridView1.RowCount != 0)
         {
             for (int i = 0; i < this.gridView1.RowCount; i++)
             {
                 GridEditorItem row = this.gridView1.GetRow(i) as GridEditorItem;
                 if (!(row.Tag as Class6).IsNew)
                 {
                     this.ilist_0.Add((row.Tag as Class6).TopoClass);
                 }
             }
             if (this.OnValueChange != null)
             {
                 this.OnValueChange();
             }
             this.bool_1 = true;
             this.vertXtraGrid_0.Clear();
             TopologyEditHelper.m_pList.RemoveAll();
             TopologyEditHelper.OnDeleteAllTopolyClass();
         }
     }
     catch (Exception exception)
     {
         Logger.Current.Error("", exception, "");
     }
 }
        private void btnDelete_Click(object sender, EventArgs e)
        {
            try
            {
                if (this.gridView1.SelectedRowsCount != 0)
                {
                    int[] selectedRows = this.gridView1.GetSelectedRows();
                    for (int i = 0; i < selectedRows.Length; i++)
                    {
                        GridEditorItem row = this.gridView1.GetRow(selectedRows[i]) as GridEditorItem;
                        if (!(row.Tag as Class6).IsNew)
                        {
                            this.ilist_0.Add((row.Tag as Class6).TopoClass);
                        }
                        int index = 0;
                        while (index < TopologyEditHelper.m_pList.Count)
                        {
                            if (TopologyEditHelper.m_pList.get_Element(index) == (row.Tag as Class6).TopoClass)
                            {
                                goto Label_00A9;
                            }
                            index++;
                        }
                        goto Label_00D3;
Label_00A9:
                        TopologyEditHelper.m_pList.Remove(index);
                        TopologyEditHelper.OnDeleteTopolyClass(
                            ((row.Tag as Class6).TopoClass as IObjectClass).ObjectClassID);
Label_00D3:
                        this.vertXtraGrid_0.DeleteRow(row);
                    }
                    this.bool_1 = true;
                    if (this.OnValueChange != null)
                    {
                        this.OnValueChange();
                    }
                }
            }
            catch (Exception exception)
            {
                Logger.Current.Error("", exception, "");
            }
        }