Exemplo n.º 1
0
        private void NavigateToRole(ICommandAdapter adapter)
        {
            var navigateCommand = new NavigateCommand();

            navigateCommand.Parameters.MainParameter = new MainParameter(this.ParameterValue("RolePath", "Default.Role"));
            navigateCommand.Execute(adapter);
        }
Exemplo n.º 2
0
        protected override void InternalExecute(ICommandAdapter adapter)
        {
            var navigateCommand = new NavigateCommand();

            navigateCommand.Parameters.MainParameter = new MainParameter("Default.My Details");
            navigateCommand.Execute(adapter);

            var actionCommand = new ActionCommand();

            actionCommand.Parameters.MainParameter  = new MainParameter("Change My Password");
            actionCommand.Parameters.ExtraParameter = new MainParameter();
            actionCommand.Execute(adapter);

            var fillFormCommand = new FillFormCommand();
            var password        = Parameters.MainParameter.Value + "";

            fillFormCommand.Parameters.Add(new Parameter("New Password", password, true, StartPosition));
            fillFormCommand.Parameters.Add(new Parameter("Confirm Password", password, true, StartPosition));
            fillFormCommand.Execute(adapter);

            actionCommand = new ActionCommand();
            actionCommand.Parameters.MainParameter  = new MainParameter("OK");
            actionCommand.Parameters.ExtraParameter = new MainParameter();
            actionCommand.Execute(adapter);
        }
Exemplo n.º 3
0
        protected override void InternalExecute(ICommandAdapter adapter){
            var navigateCommand = new NavigateCommand();
            navigateCommand.Parameters.MainParameter = new MainParameter("Default.My Details");
            navigateCommand.Execute(adapter);
            
            var actionCommand = new ActionCommand();
            actionCommand.Parameters.MainParameter = new MainParameter("Change My Password");
            actionCommand.Parameters.ExtraParameter = new MainParameter();
            actionCommand.Execute(adapter);

            var fillFormCommand = new FillFormCommand();
            var password = Parameters.MainParameter.Value+"";
            fillFormCommand.Parameters.Add(new Parameter("New Password",password,true,StartPosition));
            fillFormCommand.Parameters.Add(new Parameter("Confirm Password", password, true, StartPosition));
            fillFormCommand.Execute(adapter);

            actionCommand = new ActionCommand();
            actionCommand.Parameters.MainParameter = new MainParameter("OK");
            actionCommand.Parameters.ExtraParameter = new MainParameter();
            actionCommand.Execute(adapter);
        }
Exemplo n.º 4
0
 private void NavigateToRole(ICommandAdapter adapter) {
     var navigateCommand = new NavigateCommand();
     navigateCommand.Parameters.MainParameter = new MainParameter(this.ParameterValue("RolePath", "Default.Role"));
     navigateCommand.Execute(adapter);
 }