BetterExplorer.Utilities.GetValueOnly C# (CSharp) Method

GetValueOnly() private method

private GetValueOnly ( string property, string value ) : string
property string
value string
return string
		public static string GetValueOnly(string property, string value) {
			return value.Substring(property.Length + 1);
		}

Usage Example

        /*
         * public void SetFilterName(string name) {
         *      string title = FindResource("txtSetFilter") as string;
         *      textBlock1.Text = title.Replace("(VAL)", name);
         * }
         */

        public StringSearchCriteriaDialog(string property, string value, string displayname)
        {
            InitializeComponent();
            //SetFilterName(displayname);

            string title = FindResource("txtSetFilter") as string;

            textBlock1.Text = title.Replace("(VAL)", displayname);

            textBox1.Text = Utilities.GetValueOnly(property, value);
            textBox1.Focus();
        }