private void Connection_AfterMajorChange(object sender, ConnectionMajorChangeEventArgs e) { try { Program.Invoke(this, () => { ResumeRefreshTreeView(); if (!e.Background) { inMajorChange = false; } }); } catch (Exception exn) { log.Error(exn, exn); // Can do nothing more about this. } }
private void Connection_BeforeMajorChange(object sender, ConnectionMajorChangeEventArgs e) { try { Program.Invoke(this, () => { if (!e.Background) { if (inMajorChange) { return; } inMajorChange = true; } SuspendRefreshTreeView(); }); } catch (Exception exn) { log.Error(exn, exn); // Can do nothing more about this. } }
private void Connection_BeforeMajorChange(object sender, ConnectionMajorChangeEventArgs e) { try { Program.Invoke(this, () => { if (!e.Background) { if (inMajorChange) return; inMajorChange = true; } SuspendRefreshTreeView(); }); } catch (Exception exn) { log.Error(exn, exn); // Can do nothing more about this. } }
private void Connection_AfterMajorChange(object sender, ConnectionMajorChangeEventArgs e) { try { Program.Invoke(this, () => { ResumeRefreshTreeView(); if (!e.Background) inMajorChange = false; }); } catch (Exception exn) { log.Error(exn, exn); // Can do nothing more about this. } }