Category: technology
-
Schedule background task on IOS platform in Maui App
On iOS, we can use Background Fetch to implement background tasks. However, it’s important to note that the execution time and frequency of iOS background tasks are uncertain and depend on the system’s scheduling. Enabling Background Fetch: Add the following key-value pair to your Info.plist file: Ensure the Background Fetch Interval: Set the minimum background…
-
Use google sheet as database to develop Maui App
Do you have the same idea with me that developing a lite Maui app shared among family member?It means that App need handle storing the data on the internet /cloud There is too much cost if we choose Azure Service or Other cloud service.So what we can do?I think it is a good idea to…
-
Talk about ‘CanUserAddRows ‘ property of DataGrid in WPF
as far as we know the property ‘CanUserAddRows ‘ can be used in datagrid to give user limitation to add new rows or not. the detail about this property is described in https://learn.microsoft.com/en-us/dotnet/api/system.windows.controls.datagrid.canuseraddrows?view=windowsdesktop-8.0 if we set CanUserAddRows = false ,the user can not add new rows and input data , if we set true, it…
-
Two ways to have ComboBox as Column in DataGrid in WPF
Combobox will be used when DataGrid would like provide multi options(datatype is enum) to select in datagrid column. There is two way to implement (1) DataGridComboBoxColumn (2) DataGridTemplateColumn. In fact there are 4 basic dataGridColumn supported on DataGrid(1)DataGridComboBoxColumn – display enum data (2)DataGridHyperlinkColumn-display url data (3)DataGridCheckBoxColumn – display boolean data (4) DataGridTextColumn -display text data.…
-
Practice Experience about DataGrid in WPF
Our experience is started from this error in datagrid binding. DataGrid Item resource is binding to SideGames, and Program would like to accept customer new input and set up a new Sidegame. I monitor the celleditEnding event to update Sidegames and do view update. SelectedItem binding to SelectedSideGame, SelectedSideGame is not changed when SelectedItem is…
-
Use stored procedure in c# project to solve special problem
there are two Scenes in my projects (1) C# project, we use entityframwork to do mssql database operation.however, I would like to get a value caculated with parameters in the tables cross 3 databases.of course ,we do not want to change any database structure,however, there is one database connected to entityframework. now we can use…
-
use Over Clause to delete duplicate records in SQL
I have to delete some duplicate game data with different primary key. In other words,My application insert same game data many times in one table due to some software bug. Now my purpose is to delete these duplicate game data but keep only one record for each same game data. My table GameSale is defined…
-
【github】useful tools for deploying many rdl files to multi report server
I always deploy reports on visual studio in my daily work. I need change the targetServerURL if I would deploy reports on different server, If there is 60 servers ,I need input 60 times. it will take me longer time to repeat the same operation, which waste our time. To make our work more efficient…
-
How to take screenshot of c# application or window?
Generally, if we would like to take screenshot of application , we always use following solution: However, there is special condition if this code running well. (1) every window visible on the desktop is a Windows Forms window (2) window opacity is 100% or it is not a layer window. There is another method named…