public void OnCopyFromClipboardButton(Office.IRibbonControl control) { logger.Log("Copy from Clipboard clicked."); if (!this.shapePersistence.SaveShapeFromClipBoard(null)) { MessageBox.Show("Clipboard content could not be read.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { SharedFavView.ShowOrFocus(); } }
public void OnOpenSharedFavButton(Office.IRibbonControl control) { logger.Log("Open Button pressed."); SharedFavView.ShowOrFocus(); }
private void SharedFavView_FormClosed(object sender, FormClosedEventArgs e) { CURRENT_INSTANCE = null; }
private void SharedFavView_Shown(object sender, EventArgs e) { CURRENT_INSTANCE = this; }
public UpdateFavViewListener(SharedFavView sharedFavView) { this.sharedFavView = sharedFavView; }