private void DoBinding() { JavaPathTextBox.Init(mAct, ActJavaEXE.Fields.JavaWSEXEPath); GingerCore.General.ObjFieldBinding(ScriptNameComboBox, ComboBox.SelectedValueProperty, mAct, ActJavaEXE.Fields.ScriptName); GingerCore.General.ObjFieldBinding(ScriptDescriptionLabel, Label.ContentProperty, mAct, ActJavaEXE.Fields.ScriptDecription); ScriptNameComboBox.SelectionChanged += ScriptNameComboBox_SelectionChanged;//here so won't be triggred after binding but only on user change }
private void DoBinding() { JavaPathTextBox.Init(Context.GetAsContext(mAct.Context), mAct, ActLaunchJavaWSApplication.Fields.JavaWSEXEPath); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(LaunchJavaApplicationChkbox, CheckBox.IsCheckedProperty, mAct, ActLaunchJavaWSApplication.Fields.LaunchJavaApplication); JavaApplicationPathTextBox.Init(Context.GetAsContext(mAct.Context), mAct, ActLaunchJavaWSApplication.Fields.URL); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(JavaApplicationLaunchWaitForWinTitleChckBox, CheckBox.IsCheckedProperty, mAct, ActLaunchJavaWSApplication.Fields.WaitForWindowWhenDoingLaunch); WaitForWindowTitleTextBox.Init(Context.GetAsContext(mAct.Context), mAct, ActLaunchJavaWSApplication.Fields.WaitForWindowTitle); WaitForWindowTitleMaxTimeTextBox.Init(Context.GetAsContext(mAct.Context), mAct, ActLaunchJavaWSApplication.Fields.WaitForWindowTitleMaxTime); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(BlockingWindowChkbox, CheckBox.IsCheckedProperty, mAct, ActLaunchJavaWSApplication.Fields.BlockingJavaWindow); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(LaunchWithAgent, CheckBox.IsCheckedProperty, mAct, ActLaunchJavaWSApplication.Fields.LaunchWithAgent); AgentPathTextBox.Init(Context.GetAsContext(mAct.Context), mAct, ActLaunchJavaWSApplication.Fields.JavaAgentPath); JavaAgentPortTextBox.Init(Context.GetAsContext(mAct.Context), mAct, ActLaunchJavaWSApplication.Fields.Port); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(ShowAgent, CheckBox.IsCheckedProperty, mAct, ActLaunchJavaWSApplication.Fields.ShowAgent); rbGroupPortConfig.Init(typeof(ActLaunchJavaWSApplication.ePortConfigType), RadioButtonPanel, mAct.GetOrCreateInputParam(ActLaunchJavaWSApplication.Fields.PortConfigParam, ActLaunchJavaWSApplication.ePortConfigType.Manual.ToString()), new RoutedEventHandler(PortConfigRB_Click)); UpdateAgentPortTextBoxEnabledStatus(); }