Exemple #1
0
        private void SelectOfficeListView_ItemActivated(object sender, ItemActivatedEventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;
                this.UnselectButton.Enabled = true;
                this.DefaultButton.Enabled = true;

            }
            catch (Exception ex)
            {
                if (ExceptionManager.Handle(ex)) throw;
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }
		private void OnItemActivated(object sender, ItemActivatedEventArgs args)
		{
			try
			{
				if (args.UserState != null && PageManager.HasPage((Guid)args.UserState))
				{
					SafeInvoke(() => RequestItemActivation((UPnPItem)args.Item, PageManager[(Guid)args.UserState]));
				}
			}
			catch (Exception exception)
			{
				Logger.TraceErr(exception);
				throw;
			}
		}
Exemple #3
0
 private void fileList_ItemActivated(object sender, ItemActivatedEventArgs e)
 {
     //infoLabel.Text = "Good, you may now add selected files to scrobble list";
 }
		protected virtual void OnItemActivated(ItemActivatedEventArgs e)
		{
			var handler = ItemActivated;
			try
			{
				if (handler != null)
					handler(this, e);
			}
			catch (Exception exception)
			{
				Logger.TraceErr(exception);
				throw;
			}
		}