Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions OpsFlow/UI/Forms/Management/PersonelListForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ namespace OpsFlow.UI.Forms.Management;

public partial class PersonelListForm : BaseForm
{
private List<User> _allUsers = new List<User>();
private List<User> _filteredUsers = new List<User>();
private List<User> _allUsers = [];
private List<User> _filteredUsers = [];
private int _currentPage = 0;
private const int PageSize = 6;
private bool _isLoading = false;
Expand Down Expand Up @@ -285,6 +285,16 @@ private async Task LoadStatisticsAsync()
}
}

private void pnlHeader_Paint(object sender, PaintEventArgs e)
{

}

private void guna2HtmlLabel3_Click(object sender, EventArgs e)
{

}

private async Task UpdateStatistics(int totalPersonel, int activePersonel, int totalDepartments)
{
await Task.Delay(300);
Expand All @@ -298,15 +308,6 @@ private async Task UpdateStatistics(int totalPersonel, int activePersonel, int t
txtDep.Text = totalDepartments.ToString();
}

private void pnlHeader_Paint(object sender, PaintEventArgs e)
{

}

private void guna2HtmlLabel3_Click(object sender, EventArgs e)
{

}

private void ScrollTimer_Tick(object? sender, EventArgs e)
{
Expand Down
4 changes: 2 additions & 2 deletions OpsFlow/UI/Forms/Management/ProfileEditForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public partial class ProfileEditForm : Form
private readonly User? _originalUser;
private string? _uploadedFilePath;
private readonly IFileUploadService _fileUploadService;
private List<Role> _roles = new List<Role>();
private List<Department> _departments = new List<Department>();
private List<Role> _roles = [];
private List<Department> _departments = [];

public ProfileEditForm(User user)
{
Expand Down