test_notes
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| test_notes [2024/02/13 12:55] – admin | test_notes [2024/02/13 12:57] (current) – admin | ||
|---|---|---|---|
| Line 3781: | Line 3781: | ||
| ===== Next… ===== | ===== Next… ===== | ||
| - | ====== User Controls ====== | ||
| - | |||
| - | Add a ‘New Project’ to the solution. Choose “Visual C# | Windows” in the left panel. Then choose “Windows Forms Control Library” from the middle panel. | ||
| - | |||
| - | Name it ‘ucXxxxXxxx’ and click <OK> | ||
| - | |||
| - | ===== Setup Properties Configurable in the VS IDE ===== | ||
| - | |||
| - | Here is an overview video:\\ | ||
| - | [[file:/// | ||
| - | |||
| - | Each settings name should be formatted as below then typically defaulted to True: | ||
| - | |||
| - | * ControlNameVisible | ||
| - | * ControlNameEnabled | ||
| - | |||
| - | Here are code samples to setup properties for control from the IDE | ||
| - | <hidden Code...> | ||
| - | <code csharp> | ||
| - | [Category(" | ||
| - | public bool RefreshVisible | ||
| - | { | ||
| - | get { return rbtnRefresh.Visible; | ||
| - | set { rbtnRefresh.Visible = value; } // Show or hide the button | ||
| - | } | ||
| - | |||
| - | [Category(" | ||
| - | public bool RefreshEnabled | ||
| - | { | ||
| - | get { return rbtnRefresh.Enabled; | ||
| - | set { rbtnRefresh.Enabled = value; } // Enable or disable the button | ||
| - | } | ||
| - | |||
| - | [Category(" | ||
| - | public bool RecordCountVisible | ||
| - | { | ||
| - | get { return rlblRecordCount.Visible; | ||
| - | set { rlblRecordCount.Visible = value; } // Show or hide the label | ||
| - | } | ||
| - | |||
| - | [Category(" | ||
| - | public bool FilterVisible | ||
| - | { | ||
| - | get { return tlpFilter.Visible; | ||
| - | set { tlpFilter.Visible = value; } // Show or hide the TableLayoutPanel (subpanel in a master tlp) | ||
| - | } | ||
| - | |||
| - | [Category(" | ||
| - | public bool SearchVisible | ||
| - | { | ||
| - | get { return tlpSearch.ColumnStyles[0].Width == 50; } // TableLayoutPanel 1st Column default width is 50 | ||
| - | // ### I’m not sure why we don’t have to support getting the ColumnStyles[1].Width of 27? | ||
| - | set | ||
| - | { | ||
| - | if (value == true) | ||
| - | { | ||
| - | tlpSearch.ColumnStyles[0].Width = 50; // Show column by restoring to default width of 50 | ||
| - | tlpSearch.ColumnStyles[1].Width = 27; // Show column setting width to 27 (actually a %) | ||
| - | } | ||
| - | else | ||
| - | { | ||
| - | tlpSearch.ColumnStyles[0].Width = 0; // hide column by setting width to 0 | ||
| - | tlpSearch.ColumnStyles[1].Width = 0; | ||
| - | } | ||
| - | } | ||
| - | } | ||
| - | |||
| - | [Category(" | ||
| - | public bool QueryListTreeSearchRowVisible | ||
| - | { | ||
| - | get { return tlpQueryListTree.RowStyles[0].Height == 26; } // TableLayoutPanel 1st Row default height is 26 | ||
| - | set | ||
| - | { | ||
| - | if (value == true) | ||
| - | { | ||
| - | tlpQueryListTree.RowStyles[0].Height = 26; // Show row by restoring to default height of 26 | ||
| - | } | ||
| - | else | ||
| - | { | ||
| - | tlpQueryListTree.RowStyles[0].Height = 0; // hide row by setting height to 0 | ||
| - | } | ||
| - | } | ||
| - | } | ||
| - | |||
| - | [Category(" | ||
| - | public string OptionAllText | ||
| - | { | ||
| - | get { return rrdoAll.Text; | ||
| - | set { rrdoAll.Text = value; } // Set the radio button text | ||
| - | } | ||
| - | |||
| - | [Category(" | ||
| - | public Color OptionAllForeColor | ||
| - | { | ||
| - | get { return rrdoAll.ForeColor; | ||
| - | set { rrdoAll.ForeColor = value; } // Set the radio button font color | ||
| - | } | ||
| - | </ | ||
| - | </ | ||
| - | \\ | ||
| - | ===== Legality User Controls ===== | ||
| - | |||
| - | Video: [[file:/// | ||
| - | |||
| - | Start watching at 3:20 for the ‘right click Toolbox| Choose Items’ option. Look for the Project DLL for example: | ||
| - | |||
| - | // | ||
| - | |||
| - | ==== DLL Folders to add Items to ToolBox ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Presentation\bin\Debug\LS.Common.Presentation.dll\\ | ||
| - | ...\DevGIT\LS.Common\LS.Common.FTP\bin\Debug\LS.Common.FTP.dll\\ | ||
| - | ...\DevGIT\ls.common\LS.Common.Grid\bin\Debug\LS.Common.Grid.dll\\ | ||
| - | ...\DevGIT\ls.common\LS.Common.ItemList\bin\Debug\LS.Common.ItemList.dll\\ | ||
| - | ...\DevGIT\LS.Common\LS.Common.Log.Presentation\bin\Debug\LS.Common.Log.dll\\ | ||
| - | ...\DevGIT\LS.Common\LS.Common.Scheduler\bin\Debug\LS.Common.Scheduler.dll\\ | ||
| - | ...\DevGIT\LS.Common\LS.Common.SqlEditor\bin\Debug\LS.Common.SqlEditor.dll\\ | ||
| - | ...\DevGIT\LS.Common\LS.Common.TableViewer\bin\Debug\LS.Common.TableViewer.dll\\ | ||
| - | ...\DevGIT\LS.Common\LS.Common.Tree\bin\Debug\LS.Common.Tree.dll\\ | ||
| - | ...\DevGIT\LS.Common\LS.Common.TMDBConnector\bin\Debug\LS.Common.TMDBConnector.dll | ||
| - | |||
| - | Current list of folders: | ||
| - | |||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | * C: | ||
| - | |||
| - | ==== ucFilePath.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Presentation\bin\Debug\LS.Common.Presentation.dll | ||
| - | |||
| - | ### Make the button here and on ucFolderPath the same width. Also shouldn’t the file control NullText say something about a ‘file’? | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucFilter.cs ==== | ||
| - | |||
| - | //Look for [[# | ||
| - | |||
| - | ==== ucFolderPath.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Presentation\bin\Debug\LS.Common.Presentation.dll | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucFolderPathUserSecurity.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Presentation\bin\Debug\LS.Common.Presentation.dll | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucFtpConnector.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.FTP\bin\Debug\LS.Common.FTP.dll | ||
| - | |||
| - | Everything you need to configure settings for a FTP/SFTP connection and transfer files. | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucGridFilter.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Presentation\bin\Debug\LS.Common.Presentation.dll | ||
| - | |||
| - | <color red>### NEED TO MOVE TO GRID PROJECT</ | ||
| - | |||
| - | //See video above on how to add, but in short look for it in the Toolbox.// | ||
| - | |||
| - | Includes a ‘Type to Filter/ | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucDateRangeDays ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Presentation\bin\Debug\LS.Common.Presentation.dll | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucDateRangeMonths ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Presentation\bin\Debug\LS.Common.Presentation.dll | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucGridSmart.cs ==== | ||
| - | |||
| - | ...\DevGIT\ls.common\LS.Common.Grid\bin\Debug\LS.Common.Grid.dll | ||
| - | |||
| - | //See video above on how to add, but in short look for it in the Toolbox by searching for ‘uc’.// | ||
| - | |||
| - | Our most basic GridView wrapper user control. Includes some code to autoset the column widths | ||
| - | |||
| - | It does not include any extra controls. No filter, record count, < | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucGridSmart2.cs ==== | ||
| - | |||
| - | ...\DevGIT\ls.common\LS.Common.Grid\bin\Debug\LS.Common.Grid.dll | ||
| - | |||
| - | This is a ucGridSmart with a Filter, Record Count and < | ||
| - | |||
| - | ### Need to create this! | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucGridStatus.cs ==== | ||
| - | |||
| - | ...\DevGIT\ls.common\LS.Common.Grid\bin\Debug\LS.Common.Grid.dll | ||
| - | |||
| - | Our grid with 4 colored radio button filters (originally used for the eTMsync log status), a search/ | ||
| - | |||
| - | ### There are some properties here to control visibility of some uc elements that DO NOT work here but do work in the ucGridStatus2 user control. We need to move that code over. | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucGridStatus2.cs ==== | ||
| - | |||
| - | //See video above on how to add, but in short look for it in the Toolbox.// | ||
| - | |||
| - | ...\DevGIT\ls.common\LS.Common.Grid\bin\Debug\LS.Common.Grid.dll | ||
| - | |||
| - | Used in dbEntreé, //this is ucGridStatus in a RadDock document window with a tool window containing a tree view for a list of queries.// | ||
| - | |||
| - | ### There are some properties here to control visibility of some uc elements that work here but do not work in the basic ucGridStatus user control. I probably should have put the original ucGridStatus in this new user control but I actually copied what we had before. This enables us to change this beyond the original but means common code changes must be maintained. | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | === Legality Software Properties === | ||
| - | |||
| - | * FormatString - [DefaultValue(" | ||
| - | * RefreshVisible - Query Refresh button above GridView show/hide | ||
| - | * RecordRename - " | ||
| - | * QueryToolbarVisible - The tool-bar above the GridView | ||
| - | * RefreshEnabled - Query Refresh button above GridView enable/ | ||
| - | * RecordCountVisible - " | ||
| - | * ViewsToolBarVisible - Views tool-bar above the Query List tree | ||
| - | * ViewsExpandCollapseAllVisible - The < | ||
| - | * FilterVisible | ||
| - | * NoGridDataMessage | ||
| - | * GroupPanelText | ||
| - | * LayoutSourceFile | ||
| - | * GroupPanelHeight | ||
| - | * SearchVisible - result set filter above the Query List tree | ||
| - | * EnableTreeSearch | ||
| - | * SelectedTreeNode | ||
| - | * SearchRowVisible | ||
| - | * OptionRowVisible | ||
| - | * QueryListTreeSearchRowVisible | ||
| - | * OptionAllText | ||
| - | * OptionAllForeColor | ||
| - | * OptionAllVisible | ||
| - | * Option1Text | ||
| - | * Option1ForeColor | ||
| - | * Option1Visible | ||
| - | * Option1WatchValue | ||
| - | * Option2Text | ||
| - | * Option2ForeColor | ||
| - | * Option2Visible | ||
| - | * Option2WatchValue | ||
| - | * Option3Text | ||
| - | * Option3ForeColor | ||
| - | * Option3Visible | ||
| - | * Option3WatchValue | ||
| - | * WatchColumn | ||
| - | * WatchColumnVisible | ||
| - | * FormatGridRows | ||
| - | * HighlightingEnabled | ||
| - | * FilterType | ||
| - | * AutoRowHeight | ||
| - | * AutoColumnWidth | ||
| - | * ShowTooltips | ||
| - | * GridType | ||
| - | * QueryListDropDownVisible - The main application config will enable the user to show/hide either or both the QueryListDropDown and the QueryListTree, | ||
| - | * QueryListTreeVisible - This property should hide/show the rdtwQueryListTree. It will be set based on the main application user configurable options. | ||
| - | * MultiSelectRows | ||
| - | * OverrideFormatString | ||
| - | * TreeViewDockState | ||
| - | * TreeViewCaption | ||
| - | * DataSource | ||
| - | * QueryName | ||
| - | |||
| - | === Legality Software Events === | ||
| - | |||
| - | * PositionChangedEventHandler SelectedQueryChanged | ||
| - | * PositionChangingEventHandler SelectedQueryChanging | ||
| - | * RadTreeView.RadTreeViewEventHandler SelectedTreeNodeChanged | ||
| - | * RadTreeView.RadTreeViewCancelEventHandler SelectedTreeNodeChanging | ||
| - | |||
| - | **ucListControlWithFilter.cs** | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Presentation\bin\Debug\LS.Common.Presentation.dll | ||
| - | |||
| - | [[https:// | ||
| - | |||
| - | Our [[# | ||
| - | |||
| - | [[https:// | ||
| - | |||
| - | ==== ucItemList.cs ==== | ||
| - | |||
| - | ...\DevGIT\ls.common\LS.Common.ItemList\bin\Debug\LS.Common.ItemList.dll | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucLogData.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Log.Presentation\bin\Debug\LS.Common.Log.dll | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucLogViewer.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Log.Presentation\bin\Debug\LS.Common.Log.dll | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucPassword.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Presentation\bin\Debug\LS.Common.Presentation.dll | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucUsernamePassword.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Presentation\bin\Debug\LS.Common.Presentation.dll | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucQueryConfig.cs ==== | ||
| - | |||
| - | //<color red> | ||
| - | |||
| - | ==== ucRichTextEditorHighlighter ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Presentation\bin\Debug\LS.Common.Presentation.dll | ||
| - | |||
| - | ==== ucScheduler.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Scheduler\bin\Debug\LS.Common.Scheduler.dll | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucSqlDbName.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Presentation\bin\Debug\LS.Common.Presentation.dll | ||
| - | |||
| - | ==== ucSqlEditor.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.SqlEditor\bin\Debug\LS.Common.SqlEditor.dll | ||
| - | |||
| - | This is the basic editor with SQL syntax highlighting. No toolbars, extra controls or functionality. | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucSqlEditor2.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.SqlEditor\bin\Debug\LS.Common.SqlEditor.dll | ||
| - | |||
| - | This is the SQL editor with toolbars for SQL editing, inserting < | ||
| - | |||
| - | This does NOT include the DB tree ToolWindow showing tables and columns. | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucSqlEditor3.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.SqlEditor\bin\Debug\LS.Common.SqlEditor.dll | ||
| - | |||
| - | This is a RadDock, containing a SqlEditor2 (with toolbars for SQL editing, inserting < | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucSqlEditor4.cs ==== | ||
| - | |||
| - | ...\DevGIT \ls.common\LS.Common.NewSqlEditor\bin\Debug\LS.Common.NewSqlEditor.dll | ||
| - | |||
| - | This control contains the new version of ActiproSoftware. | ||
| - | |||
| - | This is the SQL editor with toolbars for SQL editing, inserting < | ||
| - | |||
| - | This does NOT include the DB tree ToolWindow showing tables and columns. | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucSqlEditor5.cs ==== | ||
| - | |||
| - | ...\DevGIT \ls.common\LS.Common.NewSqlEditor\bin\Debug\LS.Common.NewSqlEditor.dll | ||
| - | |||
| - | This control contains the new version of ActiproSoftware. | ||
| - | |||
| - | This is a RadDock, containing a SqlEditor4 (with toolbars for SQL editing, inserting < | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucTableViewer.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.TableViewer\bin\Debug\LS.Common.TableViewer.dll | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucTelerikThemeSelector.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Presentation\bin\Debug\LS.Common.Presentation.dll | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucTreeFilter.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Tree\bin\Debug\LS.Common.Tree.dll | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucUpdaterSettings.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Presentation\bin\Debug\LS.Common.Presentation.dll | ||
| - | |||
| - | ==== ucDatabaseConnector.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.TMDBConnector\bin\Debug\LS.Common.TMDBConnector.dll | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucTMDatabaseConnector.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Presentation\bin\Debug\LS.Common.Presentation.dll | ||
| - | |||
| - | //### Also here, so we need to clean up one or the other:\\ | ||
| - | // | ||
| - | |||
| - | **NOTE: This one also contains the ucDatabaseConnector.cs** | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucDbWikiOptions ==== | ||
| - | |||
| - | X: | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucDbWikiBrowser ==== | ||
| - | |||
| - | X: | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ==== ucEmailConnector.cs ==== | ||
| - | |||
| - | ...\DevGIT\LS.Common\LS.Common.Presentation\bin\Debug\LS.Common.Presentation.dll | ||
| - | |||
| - | **To use this you must also add a reference to:\\ | ||
| - | **...\DevGIT\ls.common\LS.Common.Communication\bin\Debug\LS.Common.Communication.dll | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | {{tdn: | ||
| - | |||
| - | ===== Legality Extended (via inheritance) Controls ===== | ||
| - | |||
| - | ==== LSRadPropertyGrid - lsrpg ==== | ||
| - | |||
| - | Extended with these settable properties under the ‘Legality Software’ branch: | ||
| - | |||
| - | * AutoFitLabel – flag to autosize the label column width | ||
| - | * ValueColumnWidthPercentage – (0.0-1.00) % of the total width is assigned to the value column | ||
| - | * RequiredFieldBackground – color for required fields | ||
| ====== Tools ====== | ====== Tools ====== | ||
test_notes.txt · Last modified: 2024/02/13 12:57 by admin