private async void Run_cmd_Click(object sender, RoutedEventArgs e)
        {
            String Error = "";

            btnRunCMD.Content       = "Wait ...";
            btnMandatory.IsEnabled  = false;
            btnAddParam.IsEnabled   = false;
            btnGetExample.IsEnabled = false;
            btnRunCMD.IsEnabled     = false;

            var newDataTable = new System.Data.DataTable();

            newDataTable.Columns.Add(new DataColumn("Parameter", typeof(string))
            {
                MaxLength = 200
            });
            newDataTable.Columns.Add(new DataColumn("Value", typeof(string))
            {
                MaxLength = 60000
            });
            newDataTable.Columns.Add(new DataColumn("isEnabled", typeof(Boolean))
            {
                DefaultValue = true
            });
            ConvertModelToString tmp = new ConvertModelToString();
            Boolean ValidParam;

            foreach (ParametersViewModel item in Parameters)
            {
                ValidParam = true;
                try
                {
                    var    row = newDataTable.NewRow();
                    String str = tmp.ConvertModelItem(ModelItemToArgument(item.Parameter));
                    if (str.Length > 1)
                    {
                        if (str[0] == '"')
                        {
                            str = str.Remove(0, 1);
                            str = str.Remove(str.Length - 1, 1);
                        }
                    }
                    if (str.Trim().Length < 1)
                    {
                        ValidParam = false;
                    }
                    row["Parameter"] = str;
                    str = tmp.ConvertModelItem(ModelItemToArgument(item.ValueData));
                    if (str.Length > 1)
                    {
                        if (str[0] == '"')
                        {
                            str = str.Remove(0, 1);
                            str = str.Remove(str.Length - 1, 1);
                        }
                    }
                    row["Value"]     = str;
                    row["isEnabled"] = item.isEnabled;
                    if (ValidParam)
                    {
                        newDataTable.Rows.Add(row);
                    }
                }
                catch (Exception ex)
                {
                    Error = ex.ToString();
                }
            }

            Boolean valid = false;
            var     task  = await(new CmdRestAPI(AuthToken, ServiceURL, Salesforce_Marketing_Cloud_Scope.Design_SOAP, newDataTable, ServiceName, IdDecision, NameDecision, CmdTYPE)).ExecuteAsync();

            if (task.ValidConnection)
            {
                valid = true;
            }
            else
            {
                if (!Salesforce_Marketing_Cloud_Scope.Design_VALIDCONN)
                {
                    Init_Connection();
                    var task2 = await(new CmdRestAPI(dictionaryForUrl)).ExecuteAsync();

                    if (task2.ValidConnection)
                    {
                        AuthToken  = task2.RespAuthToken;
                        ServiceURL = task2.RespServiceURL;
                        Salesforce_Marketing_Cloud_Scope.Design_AUTH      = AuthToken;
                        Salesforce_Marketing_Cloud_Scope.Design_SERVICES  = ServiceURL;
                        Salesforce_Marketing_Cloud_Scope.Design_SOAP      = task2.RespSoapClient;
                        Salesforce_Marketing_Cloud_Scope.Design_VALIDCONN = true;
                    }
                    System.Threading.Thread.Sleep(500);
                    task = await(new CmdRestAPI(AuthToken, ServiceURL, task2.RespSoapClient, newDataTable, ServiceName, IdDecision, NameDecision, CmdTYPE)).ExecuteAsync();
                    if (task.ValidConnection)
                    {
                        valid = true;
                    }
                }
                else
                {
                    CommandResult tmpwindow = new CommandResult(false, task.Response, task.ID, AuthToken, ServiceURL, ServiceName, CmdTYPE);
                    tmpwindow.Show();
                }
            }
            if (valid) //MessageBox.Show("Valid command." + Environment.NewLine + Environment.NewLine + "Response:      " + task.Response + Environment.NewLine + Environment.NewLine + "ID:   " + task.ID);
            {
                CommandResult tmpwindow = new CommandResult(true, task.Response, task.ID, AuthToken, ServiceURL, ServiceName, CmdTYPE);
                tmpwindow.Show();
            }

            btnRunCMD.Content       = "Run command";
            btnMandatory.IsEnabled  = true;
            btnAddParam.IsEnabled   = true;
            btnGetExample.IsEnabled = true;
            btnRunCMD.IsEnabled     = true;
        }