Hi all,
I need to get the following two things to work properly.
1. when an action sheet is generated from a button press to stop more than one
action sheet from being created, do you just disable the button as soon as it
is clicked and re-enable as soon as an option is clicked e.g.
private void _rightButton_Clicked (object sender, EventArgs e)
{
this._rightButton.Enabled = false; <----------
_actionSheet = new UIActionSheet ("Pinning Actions");
_actionSheet.AddButton ("Refresh Normal");
_actionSheet.AddButton ("Refresh Tight");
_actionSheet.AddButton ("Set Pinned Flag");
_actionSheet.AddButton ("Print");
_actionSheet.AddButton ("Email");
_actionSheet.AddButton ("Cancel");
_actionSheet.DestructiveButtonIndex = 5;
_actionSheet.CancelButtonIndex = 5;
_actionSheet.Clicked += (actionSender, actionEvent) => {
this._rightButton.Enabled = true; <-------------
switch (actionEvent.ButtonIndex) {
does this look like the right way to do this and this seems to be an issue with
other button events where there is the potential of multiple clicks so I am
having to disable the button at the start of the event and re-enbled at the end
of the event.
2. one of my screens is going to be used out on the road, is there a way of
either inverting the colours on the screen or is there a set of high contrast
colours that others are using, I need to be able to switch between day and
night colours if that makes sense.
thanks
Alex_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch