public FindScreenDialog(IFindDialogDAO findDao, bool bMultiSelection, bool bSearchOnStart) : base("Find Screens", findDao) { if (this.DesignMode == false) { this.MainSQL = "select ScreenID, ClassName, DisplayName, Description from tbs_Screen"; this.OptionalSQL = " ORDER BY ClassName"; this.MultiSelection = bMultiSelection; this.FindOnStart = bSearchOnStart; this.OptionDirection = FindOptionDirection.Down; FindOption option = null; // Class Name option = this.FindOptions.Add("Class Name", "ClassName", FindOperator.Like); // Display Name option = this.FindOptions.Add("Display Name", "DisplayName", FindOperator.Like); // Description option = this.FindOptions.Add("Description", "Description", FindOperator.Like); this.RememberSize = new Size(800, 515); //this.ResultFormats.Add((int)eColumns.ScreenID, null, 2, false, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.ClassName, null, 395 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.DisplayName, null, 230 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.Description, null, 329 , true, CellHorizontalAlignment.General); } }
public FindUserDialog(IFindDialogDAO findDao, bool bMultiSelection, bool bSearchOnStart) : base("Find User", findDao) { if (this.DesignMode == false) { this.m_findDialogDAO = findDao; this.Text = "Find User"; this.MainSQL = "select Username, FirstName, LastName, Email from tbs_User"; this.OptionalSQL = "ORDER BY Username"; this.MultiSelection = bMultiSelection; this.FindOnStart = bSearchOnStart; FindOption option = null; // Username option = this.FindOptions.Add("User Name", "Username", FindOperator.Like); option.EditCheckAble = true; // FirstName option = this.FindOptions.Add("First Name", "FirstName", FindOperator.Like); // LastName option = this.FindOptions.Add("Last Name", "LastName", FindOperator.Like); // Email option = this.FindOptions.Add("Email", "Email", FindOperator.Like); // Result Format this.RememberSize = new Size(730, 500); //this.ResultFormats.Add((int)eColumn.Username, null, 78 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumn.FirstName, null, 96 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumn.Name, null, 82 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumn.Tel, null, 86 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumn.Mobile, null, 86 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumn.Email, null, 156 , true, CellHorizontalAlignment.General); } }
public FindUserGroupDialog(IFindDialogDAO findDao, bool bMultiSelection, bool bSearchOnStart) : base("Find User Group", findDao) { if (this.DesignMode == false) { this.Text = "Find User Group"; this.MainSQL = "select GroupID, GroupName, Description, CreateDate, UpdateDate, CreateUser, UpdateUser from tbs_UserGroups "; this.OptionalSQL = "order by GroupName"; this.MultiSelection = bMultiSelection; this.OptionDirection = FindOptionDirection.Down; this.FindOnStart = bSearchOnStart; FindOption option = null; // Group Name option = this.FindOptions.Add("Group Name", "GroupName", FindOperator.Like); // Description option = this.FindOptions.Add("Description", "Description", FindOperator.Like); this.RememberSize = new Size(730, 500); //this.ResultFormats.Add((int)eColumns.GroupID, null, 65 , false, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.GroupName, null, 117 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.Description, null, 164 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.CreateDate, Util.GetDateTimeCellType(), 120 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.UpdateDate, Util.GetDateTimeCellType(), 116, true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.CreateUser, null, 93 , true, CellHorizontalAlignment.General); //this.ResultFormats.Add((int)eColumns.UpdateUser, null, 94 , true, CellHorizontalAlignment.General); } }
/// <summary> /// Find all items /// </summary> /// <returns>Sorted by depth and titles.</returns> public IEnumerable<WikiPageTreeNode> FindAll(FindOption option) { if (option == FindOption.LoadPages) return (from x in _session.Query<WikiPageTreeNode>().Fetch(x => x.Page) orderby x.Depth, x.Titles select x).ToList(); else return (from x in _session.Query<WikiPageTreeNode>() orderby x.Depth, x.Titles select x).ToList(); }
public IList <T> FindAll(FindOption findOption = FindOption.Active) { var queryOver = Session.QueryOver <T>(); if (findOption != FindOption.Both) { queryOver.Where(i => i.IsActive == (findOption == FindOption.Active)); } return(queryOver.List()); }
internal static extern bool ewk_view_text_find(IntPtr obj, string text, FindOption option, int maxMatchCount);
/// <summary> /// Searches and highlights the given text string in the document. /// </summary> /// <param name="text">The text to find.</param> /// <param name="option">The options to find.</param> /// <param name="maxMatchCount">The maximum match count to find, unlimited if 0.</param> /// <since_tizen> 6 </since_tizen> public void FindText(string text, FindOption option, int maxMatchCount) { Interop.ChromiumEwk.ewk_view_text_find(_realHandle, text, option, maxMatchCount); }