コード例 #1
0
		public Controller(View view) 
		{
			//Trace.Write("SpottedScript.Controls.MultiBuddyChooser.Ctor");
			this.view = view;
			view.uiAddByMusicAndPlaceJ.Click(AddByMusicAndPlaceButtonClick);
			view.uiAddAllButtonJ.Click(AddAllButtonClick);
			view.uiShowAllTownsAndMusicJ.Click(ShowAllTownsAndMusicCheckBoxClick);
			view.uiShowAddAllJ.Click(ShowAddAll);
			view.uiShowAddByJ.Click(ShowAddBy);
			view.uiShowBuddyListJ.Click(ShowBuddyList);
			view.uiJustBuddiesRadioJ.Click(AutoCompleteQueryGroupClick);
			view.uiAllMembersRadioJ.Click(AutoCompleteQueryGroupClick);

			CopyValuesFromSelectListToArray(this.view.uiMusicTypes, contextMusicTypes);
			CopyValuesFromSelectListToArray(this.view.uiPlaces, contextPlaces);

			createUserFromEmailBehaviour = new CreateUserFromEmailController(this.view.uiBuddyMultiSelector.HtmlAutoComplete);
			createUsersFromEmailsBehaviour = new CreateUsersFromEmailsController(this.view.uiBuddyMultiSelector.HtmlAutoComplete);

			this.oldItemRemoved = this.view.uiBuddyMultiSelector.ItemRemoved;
			this.view.uiBuddyMultiSelector.ItemRemoved = this.OnMultiSelectorItemRemoved;
		}
コード例 #2
0
		public Controller(View view)
		{
			this.view = view;
			behaviour = new CreateUserFromEmailController(view.uiHtmlAutoComplete);
		}