/// <summary> /// アドインがOneNoteから切断された際に呼ばれます /// </summary> /// <param name="RemoveMode"></param> /// <param name="custom"></param> /// <remarks>アドインの終了処理を行います</remarks> public void OnDisconnection(ext_DisconnectMode RemoveMode, ref Array custom) { cli.Dispose(); this.cli = null; GC.Collect(); GC.WaitForPendingFinalizers(); }
public MainWindow() { InitializeComponent(); cli = new tanets_blue.core.OneNoteClient(); HTMLGenerator.GetBinaryObject = (x1, x2) => cli.GetBinaryObject(x1, x2); }
public void OnConnection(object Application, ext_ConnectMode ConnectMode, object AddInInst, ref Array custom) { cli = new tanets_blue.core.OneNoteClient(); HTMLGenerator.GetBinaryObject = (x1, x2) => cli.GetBinaryObject(x1, x2); }