示例#1
0
        void ReleaseDesignerOutlets()
        {
            if (AddAllButton != null)
            {
                AddAllButton.Dispose();
                AddAllButton = null;
            }

            if (AddButton != null)
            {
                AddButton.Dispose();
                AddButton = null;
            }

            if (ApplyButton != null)
            {
                ApplyButton.Dispose();
                ApplyButton = null;
            }

            if (CancelButton != null)
            {
                CancelButton.Dispose();
                CancelButton = null;
            }

            if (RemoveAllButton != null)
            {
                RemoveAllButton.Dispose();
                RemoveAllButton = null;
            }

            if (RemoveButton != null)
            {
                RemoveButton.Dispose();
                RemoveButton = null;
            }

            if (NewAttributesList != null)
            {
                NewAttributesList.Dispose();
                NewAttributesList = null;
            }

            if (ExistingAttributesList != null)
            {
                ExistingAttributesList.Dispose();
                ExistingAttributesList = null;
            }
        }
示例#2
0
 private void RefreshData()
 {
     NewAttributesList.ReloadData();
     ExistingAttributesList.ReloadData();
 }