Signum.Windows.SearchWindow.searchControl_Loaded C# (CSharp) Метод

searchControl_Loaded() приватный Метод

private searchControl_Loaded ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
Результат void
        void searchControl_Loaded(object sender, RoutedEventArgs e)
        {
            if (this.EntityTypeTitle == null)
                this.EntityTypeTitle = searchControl.EntityType.NicePluralName();

            if (this.QueryNameTitle == null)
                this.QueryNameTitle = QueryUtils.GetNiceName(QueryName);

            if (this.QueryNameTitle.StartsWith(this.EntityTypeTitle))
                this.QueryNameTitle = this.QueryNameTitle.Substring(this.EntityTypeTitle.Length).Trim();
            else
                this.QueryNameTitle = "- " + this.QueryNameTitle;

            AutomationProperties.SetName(this, QueryUtils.GetKey(QueryName));
        }