Hi there!
To be able to log and trace some events I've added a LoggingHandler class to my java project. Inside this class I'm using two different log4j logger instances - one for logging an event and one for tracing an event into different files. The initialization block of the class looks like this:
public void initialize()
{
System....
"Events" module introduces Event content type, which has such two fields as event_start and event_end. While "Events" module has own calendar, I am need a few different calendars - so I chose Calendar module - which is based on Views.
And here goes the problem: I create a new View, select View Type = Calendar,
in Fields section listbox ...
I am using dynamical loading in treeview, however I want it to load children nodes when click the plus icon instead of clicking label, I tried to override lableClick event and preventDefault event, but it didn't work, yui still load the children node when I clicked label
tree.subscribe("labelClick", function(e) {
YAHOO.util.Event.pr...
I have 2 types of objects, Parents, and Children. I have an abstract class for these two objects. There are 2 types of parents, ParentA, ParentB and there are 2 types of children, ChildA, ChildB. These all inherited their corresponding base classes, i.e ParentA:Parent, ParentB:Parent, ChildA:Child, ChildB:Child.
Each parent has a collec...
Say if I listen for an event:
Subject.NewEvent += delegate(object sender, NewEventArgs e)
{
//some code
});
Now how do I un-register this event? Or just allow the memory to leak?
...
I have a VideoProgressEvent on my FLVPlayback but when I test the video I get these posted in the log:
_streamLength = NaN
calling getStreamLength
calling getStreamLengthResult(279.066)
And the event never fires. What's going on here?
...
A problem I regularly come across writing javascript using jQuery is that when a method of an object involves adding an event listener 'this' changes from being a reference to the object, to being a reference to the DOM element that triggered the event.
Currently if I want to refer to the object from within the event handler I do someth...
I have added an event to a user control, and I call the event in the consumer window of the user control,
My question is: what code does the compiler generate when we assign an event handler through the IDE?
So that I can also use something similar to write the event handler at runtime automatically.
I know we can write an event handl...
Hi I am creating a listbox containing 2 text boxes each time a user clicks on a button (example controls to demo) and adding them to the stackpanel defined in the XAML.
<StackPanel Name="myStackPanel">
<Button Name="myButton" Click="myButton_Click">Click to add a new button</Button>
</StackPanel>
private void myButton_Click(ob...
I've heard of events and SO answers "bubbling up", but what has all that got to do with bubbles?
...
While trying to load a Bitmap onto a SWFLoader the Event.COMPLETE event is not being triggered
mySWFLoader.source = new Bitmap(Bitmap(someEvent.content).bitmapData);
but if I use a URL as source the complete event is triggered:
mySWFLoader.source = "http://example.com/123.jpg";
Is there some kind of restriction while using Bitmap a...
Suppose I have some jQuery code that attaches an event handler to all elements with class "myclass". For example:
$(function(){
$(".myclass").click( function() {
// do something
});
});
And my html might be as follows:
<a class="myclass" href="#">test1</a>
<a class="myclass" href="#">test2</a>
<a class="myclass" href=...
For normal (say Windows Forms) C# applications, to execute commands after a successful build I would use the Build Events->Post-build event command line in Project Properties.
I have a Web Site project which I "Publish", using the "Publish..." command in the context menu in the solution explorer.
Is there a way to run commands after th...
Hello!
I am having problems getting at a click event of a button and am using Silverlight 3.0 w/ matching Silverlight Toolkit.
Problem
I have this TreeView:
.
The value for a certain node is the sum of the values of its children. Only in leaves can data be added (for the time being).
What I want to achieve is that a user can add (an...
How can bind an event on a WPF Control to a method on my ViewModel?
I have a ViewModel:
class MyViewModel {
public string MyText { get; set; }
public void MyMouseHandleMethod(object sender, EventArgs e) { }
}
In a DataTemplate I've got:
<TextBlock Text="{Binding Text}">
Now I would like to attach a method on my ViewModel t...
Possible Duplicates:
Unsubscribe anonymous method in C#
How do I Unregister anonymous event handler
I recently discovered that I can use lambdas to create simple event handlers. I could for example subscribe to a click event like this:
button.Click += (s, e) => MessageBox.Show("Woho");
But how would you unsubscribe it?
...
Where would you unsubscribe events in a UserControl? I subscribe to it in the Load event, like I have done in forms. And in forms I would usually unsubscribe in the Closing event, but I can't find anything similar in the UserControl...
...
Using VS2008, C# and .NET 3.5
I am using databound DataGridView controls to display tabular data read from a web service. In several cases, there is a numeric column that needs to be sorted. I have tried a couple of different ways to get this to work, but the column still ends up sorting alphabetically (ie, 1, 10, 2, 3 instead of 1, 2...
I'm still plagued by background threading in a WinForm UI. Why? Here are some of the issues:
Obviously the most important issue, I can not modify a Control unless I'm executing on the same thread that created it.
As you know, Invoke, BeginInvoke, etc are not available until after a Control is created.
Even after RequiresInvoke return...
Hey SO,
I am wondering what's the best way to insert customization hooks into my application. Basically, my application is split into two assemblies: A Core assembly containing all the business logic and a UserInterface assembly containing the GUI, controller classes (I am using a deviant MVC pattern callse "Passive View") and some help...