|
|
@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<br/><br/>
|
|
|
|
<br/><br/>
|
|
|
|
##First part : The inventory grid (InventoryItem.razor.cs file)
|
|
|
|
## First part : The inventory grid (InventoryItem.razor.cs file)
|
|
|
|
<br/><br/>
|
|
|
|
<br/><br/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -33,7 +33,7 @@ This method will create an action when the user will start the drag and drop of
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<br/><br/>
|
|
|
|
<br/><br/>
|
|
|
|
##Second part : The inventory grid (MyInventory.razor.cs file)
|
|
|
|
## Second part : The inventory grid (MyInventory.razor.cs file)
|
|
|
|
<br/><br/>
|
|
|
|
<br/><br/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -45,20 +45,20 @@ This method is the constructor of the component. It initializes the variables fo
|
|
|
|
### private async void OnActionsCollectionChanged(object? sender, NotifyCollectionChangedEventArgs e)
|
|
|
|
### private async void OnActionsCollectionChanged(object? sender, NotifyCollectionChangedEventArgs e)
|
|
|
|
#### Parameters:
|
|
|
|
#### Parameters:
|
|
|
|
- sender is the sender of the event
|
|
|
|
- sender is the sender of the event
|
|
|
|
- e is the event
|
|
|
|
- e is a class of event arguments
|
|
|
|
#### Summary:
|
|
|
|
#### Summary:
|
|
|
|
This method is called when our collection 'Actions' is changed.
|
|
|
|
This method is called when our collection 'Actions' is changed.
|
|
|
|
It will call the Js script, and if needed, the dataService.
|
|
|
|
It will call the Js script, and if needed, the dataService.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<br/><br/>
|
|
|
|
<br/><br/>
|
|
|
|
##Last part : The items list
|
|
|
|
## Last part : The items list
|
|
|
|
<br/><br/>
|
|
|
|
<br/><br/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### private async Task OnReadData(DataGridReadDataEventArgs<Item> e)
|
|
|
|
### private async Task OnReadData(DataGridReadDataEventArgs<Item> e)
|
|
|
|
#### Parameters:
|
|
|
|
#### Parameters:
|
|
|
|
- e is the event
|
|
|
|
- e is a class of event arguments
|
|
|
|
#### Summary:
|
|
|
|
#### Summary:
|
|
|
|
This method will initialize a lot of variables used for the list.
|
|
|
|
This method will initialize a lot of variables used for the list.
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|