public override void Destroy() { updateStatusBarLagger.Dispose(); if (syncWindow != null) { syncWindow.Destroy(); syncWindow = null; } base.Destroy(); }
protected void btnSync_Click(object sender, EventArgs e) { if (!PerformLogin()) { return; } if (syncWindow == null) { syncWindow = new SyncWindow(); syncWindow.StatusChanged += syncWindow_StatusChanged; } syncWindow.Modal = false; syncWindow.Show(); }