|
39 | 39 | using SIL.LCModel.Core.KernelInterfaces; |
40 | 40 | using SIL.FieldWorks.Common.FwUtils; |
41 | 41 | using static SIL.FieldWorks.Common.FwUtils.FwUtils; |
42 | | -using SIL.FieldWorks.Common.RootSites; |
43 | 42 | using SIL.LCModel; |
44 | 43 | using SIL.LCModel.Application; |
45 | 44 | using SIL.LCModel.DomainServices; |
@@ -1156,8 +1155,7 @@ public virtual bool OnRefresh(object argument) |
1156 | 1155 | var window = m_propertyTable.GetValue<Form>("window"); |
1157 | 1156 | using (new WaitCursor(window)) |
1158 | 1157 | { |
1159 | | - if (m_rch != null) |
1160 | | - m_rch.Fixup(false); // no need to recursively refresh! |
| 1158 | + m_rch?.Fixup(false); // no need to recursively refresh! |
1161 | 1159 | m_list.ReloadList(); |
1162 | 1160 | return false; //that other colleagues do a refresh, too. |
1163 | 1161 | } |
@@ -2058,8 +2056,7 @@ virtual public bool IsControllingTheRecordTreeBar |
2058 | 2056 | m_propertyTable.SetProperty("UpdateStatusBar", m_updateStatusBar, true); |
2059 | 2057 | m_propertyTable.SetPropertyPersistence("UpdateStatusBar", false); |
2060 | 2058 |
|
2061 | | - if (oldActiveClerk != null) |
2062 | | - oldActiveClerk.BecomeInactive(); |
| 2059 | + oldActiveClerk?.BecomeInactive(); |
2063 | 2060 | m_propertyTable.SetProperty("OldActiveClerk", oldActiveClerk, true); |
2064 | 2061 | m_propertyTable.SetPropertyPersistence("OldActiveClerk", false); |
2065 | 2062 | m_propertyTable.SetProperty("ActiveClerk", this, true); |
@@ -2333,16 +2330,6 @@ protected virtual void ClearInvalidSubitem() |
2333 | 2330 | { |
2334 | 2331 | } |
2335 | 2332 |
|
2336 | | - /// <summary> |
2337 | | - /// Handles refreshing the record list after an object was deleted. |
2338 | | - /// </summary> |
2339 | | - /// <remarks>This should be overriden to perform more efficient refreshing of the record list display</remarks> |
2340 | | - protected virtual void RefreshAfterInvalidObject() |
2341 | | - { |
2342 | | - // to be safe we just do a full refresh |
2343 | | - m_propertyTable.GetValue<IApp>("App").RefreshAllViews(); |
2344 | | - } |
2345 | | - |
2346 | 2333 | private int FindClosestValidIndex(int idx, int cobj) |
2347 | 2334 | { |
2348 | 2335 | for (int i = idx + 1; i < cobj; ++i) |
|
0 commit comments