Exemplo n.º 1
0
        public string GetAssemblyName()
        {
            var be = AssemblyNameTextBox.GetBindingExpression(TextBox.TextProperty);

            be?.UpdateTarget();
            return(AssemblyNameTextBox.Text);
        }
Exemplo n.º 2
0
        public void SetAssemblyName(string assemblyName)
        {
            AssemblyNameTextBox.Text = assemblyName;
            var be = AssemblyNameTextBox.GetBindingExpression(TextBlock.TextProperty);

            be?.UpdateSource();
        }
Exemplo n.º 3
0
        public void SetTextBoxValue(string controlName, string input)
        {
            switch (controlName)
            {
            case "AssemblyName":
                AssemblyNameTextBox.Text = input;
                BindingExpression assem = AssemblyNameTextBox.GetBindingExpression(TextBlock.TextProperty);
                assem?.UpdateSource();
                break;

            case "ConfigFile":
                ConfigFileTextbox.Text = input;
                BindingExpression config = ConfigFileTextbox.GetBindingExpression(TextBlock.TextProperty);
                config?.UpdateSource();
                break;

            case "GacAssemblyName":
                GacAssemblyNameTextBox.Text = input;
                BindingExpression gac = GacAssemblyNameTextBox.GetBindingExpression(TextBlock.TextProperty);
                gac?.UpdateSource();
                break;
            }
        }