private void btnNameTransform_Click(object sender, RoutedEventArgs e)
        {
            NameTransformOptionsWindow dialog = new NameTransformOptionsWindow();
            dialog.Host = this.txtHost.Text;
            dialog.SourceSchemaFields = this._SourceSchemaFields;
            dialog.DbHost = this.txtDbHost.Text;
            dialog.SourceDatabase = this.cbSourceDatabase.SelectedValue as string;
            dialog.SourceTable = this.cbSourceTable.SelectedValue as string;

            bool res = dialog.ShowDialog() == true;
            if (res)
            {
                this._FormatString = dialog.FormatString;
                this._Replacements = dialog.Replacements;

                this.ChangeButtonsVisibility();
            }
        }
        private void btnNameTransform_Click(object sender, RoutedEventArgs e)
        {
            ItemInfo sourceSchema = this.cbSourceSchema.SelectedValue as ItemInfo;
            if (sourceSchema == null)
                return;

            NameTransformOptionsWindow dialog = new NameTransformOptionsWindow();
            dialog.Host = this.txtHost.Text;
            dialog.SourceSchemaUri = sourceSchema.TcmId;

            bool res = dialog.ShowDialog() == true;
            if (res)
            {
                this._FormatString = dialog.FormatString;
                this._Replacements = dialog.Replacements;

                this.ChangeButtonsVisibility();
            }
        }