public void OnCancelChanges()
        {
            m_ParentWindow.Hide();

            foreach (CheckBox C in TempCheckedBoxes)
            {
                C.IsChecked = false;
            }
            foreach (CheckBox C in TempUncheckedBoxes)
            {
                C.IsChecked = true;
            }
            foreach (SelectionChangedEventArgs S in TempComboBoxChanges)
            {
                ComboBox Cbox = S.Source as ComboBox;
                Cbox.SelectedItem = S.RemovedItems[0];
            }
            if (TempTriforceBoxChanges != null)
            {
                ComboBox Cbox = TempTriforceBoxChanges.Source as ComboBox;
                Cbox.SelectedItem = TempTriforceBoxChanges.RemovedItems[0];
            }

            TempCheckedBoxes.Clear();
            TempUncheckedBoxes.Clear();
            TempComboBoxChanges.Clear();
            TempTriforceBoxChanges = null;

            ItemIDs = m_TempIDs;
        }
        public void OnSaveChanges()
        {
            ItemIDs = m_TempIDs;
            m_ParentWindow.Hide();

            TempCheckedBoxes.Clear();
            TempUncheckedBoxes.Clear();
            TempComboBoxChanges.Clear();
            TempTriforceBoxChanges = null;
        }