/// <summary> /// Event when Picture List was saved /// </summary> /// <param name="sender"></param> /// <param name="args"></param> void _PictureList_Saved(object sender, OnPictureListSavedEventArgs args) { if (this.InvokeRequired) {// Make sure we run on UI thread // Create a delegate to self PictureList.OnSaved safeEvent = new PictureList.OnSaved(_PictureList_Saved); // Roll arguments in an Object array Object[] arguments = new Object[] { sender, args }; // "Recurse once, onto another thread" this.Invoke(safeEvent, arguments); return; } textBoxLog.Text = args.Result; toolStripStatusLabelInfo.Text = "Data saved"; LoadPictureIndex(); this.Cursor = Cursors.Default; }
/// <summary> /// Event when Picture List was saved /// </summary> /// <param name="sender"></param> /// <param name="args"></param> void _PictureList_Saved(object sender, OnPictureListSavedEventArgs args) { if (this.InvokeRequired) {// Make sure we run on UI thread // Create a delegate to self PictureList.OnSaved safeEvent = new PictureList.OnSaved(_PictureList_Saved); // Roll arguments in an Object array Object[] arguments = new Object[] {sender, args }; // "Recurse once, onto another thread" this.Invoke(safeEvent, arguments); return; } textBoxLog.Text = args.Result; toolStripStatusLabelInfo.Text = "Data saved"; LoadPictureIndex(); this.Cursor = Cursors.Default; }