Hi,
I'm working on a test and I'm trying to find the best way to refactor the code below. Each case is an Enum and returns a boolean
switch (request.PaymentScheme)
{
case PaymentScheme.Bacs:
if (accountRetrieved == null ||...
Hi, I've recently set up a virtual assistant in visual studio and when running the program, it gives me the following error:
"LuisService.Region cannot be Null"
I'm completely new to Azure so I'm not entirely sure what this means. Can anyone help? I've attached an image to give you more...
I want to get my chatbot up and running asap, so i can start playing around with it/creating simple dialogue systems etc. I want to have something which can build on overtime and in the end have a sophisticated conversational AI. On another forum they suggested that I use the virtual assistant...
For my final year project I've decided to create a chatbot about mental health i.e. depression and anxiety. I’ll be working on it from the end of this month until the start of September.
My question is what would be the best way to implement this? Baring in mind this would be about mental...
I’m studying a masters in computing systems and I’m at that point now where I need to start planning what I’m going to do for my final project.
During the course I’ve created two programs using .net framework. The first one was a medical related application where I managed data through JSON...
Initially I was concatenating my SQL queries, i was then informed that it would be best to use parameterized queries to prevent SQL Injection. I've now done that and everything works fine, however when posting on a forum yesterday about one of my queries not working properly, a person told me...
I would like to read all of the values from the column name "seatNo" and store those values within a list. I've done most of the code but i have absolutely no idea how to actually store the values
Here is what i have so far:
private List<string> seatNumbers = new List<string>()...
I have a sign in method, which stores the details of a user based on the password and email that they enter. Within this method i call a function which stores those details inside of a list.
My question is how would i be able to access those individual values? I want to be able to access just...
When signing up data will be stored within two tables. customerLogin and customer.
The code for this is shown below, it works the way i want it to, inserting the correct details into both tables.
{
string query_1 = "Insert into customer (firstName...
I'm trying to execute the following query, but its throwing an exception "Must declare the scalar variable \@dateFrom\ "." Does anyone maybe know why this is occurring? the dataType for dateOfDeparture is date. when i was using concatenation i was providing the format of the date...
Hello, when i drag a custom picture box onto my user control and run the application i can see it, however if i place the item on top of the panel i cant. Does anyone know how i can get round this?
See image below, items under seat reservation aren't visible.
I made a Seat class and inherited the PictureBox class:
class seat : PictureBox
{
public string Row { get; set; }
public int Number { get; set; }
public string Seat => $"{Row}{Number}";
public bool Available { get; set; }
}
}
I'm getting the...
I want to create a simple seat reservation system where the picture box will change to another image once the user has clicked the picture box. If the image is set as "available" it will turn green. If the user attempts to select another seat with the status "available" i want the application to...
I've tried to achieve this by creating a leave event on the user control, but the message Box isn't appearing for some reason. I also have a panel in front of the user control which I'm thinking might be the issue? Below is the code i have so far:
private void...
When the user logs in they will be taken to a dashboard where they can select different options. one of them being "Account details". within this user control I've set up text boxes which will be filled with the users details once they double click on the row within the DataGridView .
I have...
I'm attempting to publish my database but I'm getting the errors below.
Ive unchecked the "block incremental deployment if data loss might occur" option which usually works but for some reason this time it isn't. Does anyone know a fix for this??
Rename refactoring operation with key...
I'm making a coach booking system and I'm at the final stage where the user has to select a seat before inserting the data within a table.
When the user selects one of the picture boxes it'll turn green, and that specific seat Id will be stored within the Booking table.
If another customer...
When the user double clicks on one of the bookings within the grid view, i would like to transfer the Id to a text box in a separate user control. Any ideas of how could I achieve this? Thankyou
private void availableBookings_CellDoubleClick(object sender, DataGridViewCellEventArgs e)...
I'm currently creating a windows form project which is for a coach booking system using the baked in SQL server.
What I'm trying to figure out at the moment is the best way to reserve a seat for a particular customer.
In my coach table i have the coach Type i.e. single decker and double...
EDIT: i fixed it. the issue was that i was inputting the incorrect format. when writing dateTimePicker1.Value.toString(dd//MM//yyyy)....it should have been **dateTimePicker1.Value.toString(MM/dd/yyyy)**
im creating a project in visual studio using the baked in SQL server. I'm trying to create...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.