public ChangeManagedNameActionDialog(ChangeManagedNameAction fixedChangeManagedNameAction)
 {
     InitializeComponent();
     if (fixedChangeManagedNameAction != null)
     {
         m_fixedChangeManagedNameAction = fixedChangeManagedNameAction;
         m_newName = m_fixedChangeManagedNameAction.NewName;
     }
 }
Ejemplo n.º 2
0
        public IAction Create(Dictionary <string, string> parameters)
        {
            ChangeManagedNameAction changeManagedNameAction = new ChangeManagedNameAction();

            if (parameters.ContainsKey(ParameterNewName))
            {
                changeManagedNameAction.NewName = parameters[ParameterNewName];
            }
            else
            {
                throw new NoActionParameterException(ActionName, ParameterNewName);
            }
            return(changeManagedNameAction);
        }
Ejemplo n.º 3
0
        public IAction Create()
        {
            ChangeManagedNameAction changeManagedNameAction = new ChangeManagedNameAction();

            return(changeManagedNameAction);
        }
Ejemplo n.º 4
0
 private bool DoChangeManagedNameActionDialog(ChangeManagedNameAction action)
 {
     ChangeManagedNameActionDialog changeManagedNameActionDialog;
     if (action != null && action.IsInitialized)
         changeManagedNameActionDialog =
             new ChangeManagedNameActionDialog(action);
     else
         changeManagedNameActionDialog = new ChangeManagedNameActionDialog();
     DialogResult dialogResult = changeManagedNameActionDialog.ShowDialog();
     if (dialogResult == DialogResult.OK)
     {
         action.NewName = changeManagedNameActionDialog.NewName;
         action.IsInitialized = true;
         return true;
     }
     return false;
 }
Ejemplo n.º 5
0
 public IAction Create(Dictionary<string, string> parameters)
 {
     if (parameters == null) throw new ArgumentNullException(nameof(parameters));
     var changeManagedNameAction = new ChangeManagedNameAction();
     if (parameters.ContainsKey(ParameterNewName))
     {
         changeManagedNameAction.NewName = parameters[ParameterNewName];
     }
     else
     {
         throw new NoActionParameterException(ActionName, ParameterNewName);
     }
     return changeManagedNameAction;
 }
Ejemplo n.º 6
0
 public IAction Create()
 {
     var changeManagedNameAction = new ChangeManagedNameAction();
     return changeManagedNameAction;
 }