private void taskPane1_FrameExpanding(object sender, TaskPaneCancelEventArgs ce) { closeAllFrames(); }