MayoWAA!
MayoWAA!
CC#
Created by MayoWAA! on 3/22/2023 in #help
❔ AntDesign List Problem
I'm making a site for my school for students to give suggestions that get saved to a mongodb database, I've sorted that part out but i want admins to be able to see and delete the suggestions if they are inappropriate but it isn't work
<AntList DataSource="@submissions">
<ItemTemplate>
@foreach (var item in _submissionObjects)
{
<AntListItem>
<AntListItemMeta
Title="@item.Username"
Description="@item.Suggestion"/>
</AntListItem>
}
</ItemTemplate>
</AntList>
<AntList DataSource="@submissions">
<ItemTemplate>
@foreach (var item in _submissionObjects)
{
<AntListItem>
<AntListItemMeta
Title="@item.Username"
Description="@item.Suggestion"/>
</AntListItem>
}
</ItemTemplate>
</AntList>
private MongoClient client;
private IMongoCollection<BsonDocument> collection;
bool IsEmpty;
public List<BsonDocument> submissions;

Index.SubmissionObject[] _submissionObjects;

private async Task NoticeWithIcon(string message, string description, NotificationType type)
{
await _notice.Open(new NotificationConfig()
{
Message = message,
Description = description,
NotificationType = type
});
}

protected override async Task OnInitializedAsync()
{
client = new MongoClient("connectionstring");
var db = client.GetDatabase("dbname");
var collection = db.GetCollection<BsonDocument>("collectionname");
submissions = await collection.Find(_ => true).ToListAsync();
}
private MongoClient client;
private IMongoCollection<BsonDocument> collection;
bool IsEmpty;
public List<BsonDocument> submissions;

Index.SubmissionObject[] _submissionObjects;

private async Task NoticeWithIcon(string message, string description, NotificationType type)
{
await _notice.Open(new NotificationConfig()
{
Message = message,
Description = description,
NotificationType = type
});
}

protected override async Task OnInitializedAsync()
{
client = new MongoClient("connectionstring");
var db = client.GetDatabase("dbname");
var collection = db.GetCollection<BsonDocument>("collectionname");
submissions = await collection.Find(_ => true).ToListAsync();
}
2 replies
CC#
Created by MayoWAA! on 2/21/2023 in #help
My Terminal outputs nothing
23 replies
CC#
Created by MayoWAA! on 10/7/2022 in #help
File Packages ?
So I was doing some research because I wanted to make a file extension like .docx which is basically an archive with information for the app to read and write to but there's little to no documentation on how to do this or maybe I'm not searching it up right. All I've found was this https://www.pluralsight.com/guides/creating-file-packages-in-c and the code has some errors in it, can anyone help ?
12 replies
CC#
Created by MayoWAA! on 9/30/2022 in #help
List Serialisation
16 replies
CC#
Created by MayoWAA! on 9/8/2022 in #help
Databinding Issue Win UI 3
I'm trying to make a list view to show all the habits in the app but nothing shows and I can only use screenshots for my xml code because there's a limit on messages
1 replies
CC#
Created by MayoWAA! on 8/29/2022 in #help
Datagrid Exclusions
Is it possible to exclude specific data from data tables in code ?
2 replies