fin de validation
continuous-integration/drone/push Build is failing
Details
@ -0,0 +1,96 @@
|
|||||||
|
# Documentation for our Inventory page
|
||||||
|
|
||||||
|
|
||||||
|
<br/><br/>
|
||||||
|
## First part : The inventory grid (InventoryItem.razor.cs file)
|
||||||
|
<br/><br/>
|
||||||
|
|
||||||
|
|
||||||
|
### internal void OnDragEnter()
|
||||||
|
#### Summary:
|
||||||
|
This method will create an action when the user will put an item in the grid.
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
### internal void OnDragEnter()
|
||||||
|
#### Summary:
|
||||||
|
This method will create an action when the user will remove an item of the grid.
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
### internal void OnDrop()
|
||||||
|
#### Summary:
|
||||||
|
This method will create an action when the user will put an item in onother one on the grid.
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
### internal void OnDragEnd()
|
||||||
|
#### Summary:
|
||||||
|
This method will create an action when the user will drag and drop an item in the grid.
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
### private void OnDragStart()
|
||||||
|
#### Summary:
|
||||||
|
This method will create an action when the user will start the drag and drop of an item in the grid.
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
|
||||||
|
<br/><br/>
|
||||||
|
## Second part : The inventory grid (MyInventory.razor.cs file)
|
||||||
|
<br/><br/>
|
||||||
|
|
||||||
|
|
||||||
|
### public MyInventory()
|
||||||
|
#### Summary:
|
||||||
|
This method is the constructor of the component. It initializes the variables for the inventory grid part.
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
### private async void OnActionsCollectionChanged(object? sender, NotifyCollectionChangedEventArgs e)
|
||||||
|
#### Parameters:
|
||||||
|
- sender is the sender of the event
|
||||||
|
- e is a class of event arguments
|
||||||
|
#### Summary:
|
||||||
|
This method is called when our collection 'Actions' is changed.
|
||||||
|
It will call the Js script, and if needed, the dataService.
|
||||||
|
|
||||||
|
|
||||||
|
<br/><br/>
|
||||||
|
## Last part : The items list
|
||||||
|
<br/><br/>
|
||||||
|
|
||||||
|
|
||||||
|
### private async Task OnReadData(DataGridReadDataEventArgs<Item> e)
|
||||||
|
#### Parameters:
|
||||||
|
- e is a class of event arguments
|
||||||
|
#### Summary:
|
||||||
|
This method will initialize a lot of variables used for the list.
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
### private List<Item> choseList()
|
||||||
|
#### Returns:
|
||||||
|
- a list of items corresponding to what we want
|
||||||
|
#### Summary:
|
||||||
|
This method will check if our search bar is empty.
|
||||||
|
If it is, it will set our Datagrid list to the default one: items
|
||||||
|
Else, it will take the texte in the Search bar, and search in all the items, those that correspond.
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
### private void inputValue()
|
||||||
|
#### Summary:
|
||||||
|
When we type something in the search bar, this method is called.
|
||||||
|
It will initialize the 'Filtered' list with the items corresponding to what we are typing.
|
||||||
|
Then, it will call the choseList() method.
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
### private void OnPress()
|
||||||
|
#### Summary:
|
||||||
|
This method will be called when we will press the 'Sort' button.
|
||||||
|
It will set a boolean either to true if the list isn't already sorted, or to false if it is.
|
||||||
|
Then, it will call the SortList() method.
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
### private List<Item> SortList()
|
||||||
|
#### Returns:
|
||||||
|
- a list of items corresponding to what we want
|
||||||
|
#### Summary:
|
||||||
|
This method will check if our isSorted boolean is false or true.
|
||||||
|
If it's false, then it will set our list to the default one: the items won't be sorted.
|
||||||
|
Else, it will set it with another list, that we sort by name.
|
||||||
|
<br/>
|
After Width: | Height: | Size: 48 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 6.0 KiB |
@ -1,8 +0,0 @@
|
|||||||
<html><body>
|
|
||||||
<p>
|
|
||||||
<hr size="1"/><address style="text-align: right;"><small>Generated on $datetime with
|
|
||||||
<img src="CodeFirst.png" alt="Code#0" align="middle" border="0" height="40px"/>
|
|
||||||
by Doxygen version $doxygenversion</small></address>
|
|
||||||
</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 343 B |
Before Width: | Height: | Size: 376 B |
Before Width: | Height: | Size: 135 B |
Before Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 249 B |
Before Width: | Height: | Size: 259 B |
Before Width: | Height: | Size: 301 B |
Before Width: | Height: | Size: 269 B |
Before Width: | Height: | Size: 232 B |
Before Width: | Height: | Size: 206 B |
Before Width: | Height: | Size: 172 B |
Before Width: | Height: | Size: 294 B |
Before Width: | Height: | Size: 295 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 284 B |
Before Width: | Height: | Size: 249 B |
Before Width: | Height: | Size: 199 B |
Before Width: | Height: | Size: 276 B |
Before Width: | Height: | Size: 298 B |
Before Width: | Height: | Size: 260 B |
Before Width: | Height: | Size: 236 B |
Before Width: | Height: | Size: 201 B |
Before Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 148 B |
Before Width: | Height: | Size: 146 B |
Before Width: | Height: | Size: 165 B |
Before Width: | Height: | Size: 282 B |
Before Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 287 B |
Before Width: | Height: | Size: 235 B |
Before Width: | Height: | Size: 251 B |
Before Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 208 B |
Before Width: | Height: | Size: 290 B |
Before Width: | Height: | Size: 138 B |
Before Width: | Height: | Size: 255 B |
Before Width: | Height: | Size: 246 B |
Before Width: | Height: | Size: 279 B |
Before Width: | Height: | Size: 270 B |
Before Width: | Height: | Size: 258 B |
Before Width: | Height: | Size: 243 B |
Before Width: | Height: | Size: 223 B |
Before Width: | Height: | Size: 157 B |
Before Width: | Height: | Size: 256 B |
Before Width: | Height: | Size: 279 B |
Before Width: | Height: | Size: 211 B |
Before Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 220 B |
Before Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 315 B |
Before Width: | Height: | Size: 243 B |
Before Width: | Height: | Size: 220 B |
Before Width: | Height: | Size: 212 B |
Before Width: | Height: | Size: 216 B |
Before Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 291 B |
Before Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 173 B |
Before Width: | Height: | Size: 149 B |
Before Width: | Height: | Size: 171 B |
Before Width: | Height: | Size: 118 B |
Before Width: | Height: | Size: 135 B |
Before Width: | Height: | Size: 198 B |
Before Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 211 B |
Before Width: | Height: | Size: 145 B |
Before Width: | Height: | Size: 140 B |
Before Width: | Height: | Size: 148 B |
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 195 B |
Before Width: | Height: | Size: 133 B |
Before Width: | Height: | Size: 245 B |
Before Width: | Height: | Size: 358 B |
Before Width: | Height: | Size: 397 B |
Before Width: | Height: | Size: 166 B |
Before Width: | Height: | Size: 297 B |
Before Width: | Height: | Size: 274 B |
Before Width: | Height: | Size: 231 B |
Before Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 298 B |
Before Width: | Height: | Size: 268 B |
Before Width: | Height: | Size: 223 B |