public bool IsSatisfy(Element element) { if (_condition.IsReverse) { return !CommonProcessing.GetViewName(element).StartsWith(_condition.Content); } else { return CommonProcessing.GetViewName(element).StartsWith(_condition.Content); } }
public bool IsSatisfy(Element element) { if (_condition.IsReverse) { return(!CommonProcessing.GetViewName(element).Contains(_condition.Content)); } else { return(CommonProcessing.GetViewName(element).Contains(_condition.Content)); } }
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { UIDocument uIDocument = commandData.Application.ActiveUIDocument; _document = uIDocument.Document; _sections = CommonProcessing.GetSelectedElementsIsSection(uIDocument); if (_sections.Count < 1) { TaskDialog.Show("Lỗi", "Không có Section trong các element đã chọn"); return(Result.Cancelled); } SectionName sectionName = new SectionName(SendSectionName); if (sectionName.ShowDialog() == System.Windows.Forms.DialogResult.OK) { RenameSection(_sectionNameDetail); } return(Result.Succeeded); }