private void ViewShown(IEditTicketView sender) { if (!isHiding) { currentTicketBuilder = Argument.EditTreeView.CurrentObject as TicketBuilder; if (currentTicketBuilder != null) { sender.TicketName = currentTicketBuilder.TicketName; sender.Questions = new List <QuestionBuilder>(currentTicketBuilder.SortedQuestionBuilders); sender.QuestionsCount = currentTicketBuilder.SortedQuestionBuilders.Count; sender.GroupsCount = currentTicketBuilder.GetQuestionGroupBuilders().Length; } isSaved = true; } }