|
Kevin Marois wrote:
myProcess.StartInfo.FileName = "www.codeproject.com"; Because you're not specifying the protocol, so Windows has no way of knowing that you want to open a website rather than a DOS-style COM application called www.codeproject .
Specify the URL you want to open instead:
myProcess.StartInfo.FileName = "https://www.codeproject.com/";
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Kevin Marois wrote: I can detect a cancel via the callback URL
You probably have some more failure cases there.
For example what happens if the user does nothing with the site? Just leaves it up?
What happens if the site is down?
Can the site reject their input (whatever it is?)
What happens if the url is invalid?
|
|
|
|
|
I've fumbled and bumbled my way though being able to read an rtsp stream, I've learned how to capture frames and detect changes between frames (motion) any frame in which i have detected motion i have learned how to save it as a jpg file. now comes the time I'm wanting to present codeproject.ai with the jpg file and wait for a response from it. i see the example of doing that but in html/javascript, i'm writing in c#, i was wondering if anyone has an example of sending the jpg and waiting for a response in c#. if not I'm looking at restsharp as the tool to use. anyone know a better tool to use ?
|
|
|
|
|
As this is a question about the CodeProject AI capability, the best place to ask this question is in the CodeProject.AI Discussions[^] forum.
|
|
|
|
|
As he's a spammer[^], the best place to post his "question" would be a different site.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Here are the constraints that I am facing
Can only use SQL Server
Cannot use Entity Framework or Dapper
Can only use .NET Framework (can't use any Python or JS)
What I am working on is a project for a factory I work for is that I am digitizing our quality inspections, of which there are numerous. The first step is that I created some models to that are used to create a Quality Inspection plan, which are here below:
public class QualityInspection
{
public int Id;
public string Name;
public double Frequency;
public List<InspectionSection> Sections;
}
public class InspectionSection
{
public int Id;
public int InspectionId;
public string Name;
public List<InspectionPoint> Points;
}
public class InspectionPoint
{
public int Id;
public int SectionId;
public string Name;
public List<NonConformance> InspectionResults;
}
public class NonConformance
{
public int Id;
public string Name;
public List<NonConformanceLevel> Level;
}
public enum NonConformanceLevel
{
None,
Minor,
Major
}
This is an example of a dummy inspections plan:
QualityInspection inspection = new QualityInspection()
{
Id = 1,
Name = "FgInspection",
Frequency = 2,
Sections.AddRange(new[]
{
new InspectionSection() {
Id = 1,
InspectionId = 1,
Name = "Packaging",
Points.AddRange(new[]
{
new InspectionPoint()
{
Id = 1,
SectionId = 1,
Name = "Seals",
InspectionResults.AddRange(new[]
{
new NonConformance() {Id = 1, Name = "Torn", Level = NonConformanceLevel.Minor},
new NonConformance() {Id = 2, Name = "None", Level = NonConformanceLevel.None})
});
},
new InspectionPoint()
{
Id = 2,
SectionId = 1,
Name = "Dates",
InspectionResults.AddRange(new[]
{
new NonConformance() {Id = 3, Name = "Smudged", Level = NonConformanceLevel.Minor},
new NonConformance() {Id = 4, Name = "None", Level = NonConformanceLevel.None})
});
}
});
}
}),
});
};
To clarify, saving this inspection is NOT THE ISSUE. This is able to be saved to a SQL table without a problem.
Let's use the "Packaging" section as an example here. The user pulls up this Inspection to fill out. The page displays Two dropdowns: one for "Seals" Inspection Point and one for "Dates" Inspection Point. The "Seals" dropdown displays the two NonConformances as options to select. The user hits a Submit button to submit the choices for the dropdown.
This is where I run into a problem. This Inspection Plan is created by a USER in a different portion of the app. As such, I don't have a table so save the "Seals" or "Dates" data, because the user created those fields when they created the inspection plan. In essence I am trying to save the RESULTS of an a user created inspection plan.
|
|
|
|
|
That's your "logical view". You said SQL "table"; I see 4-5 tables. In other words, there is nothing stopping you from "adding inspections" later.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
There is nothing stopping me from saving another inspection later. That isn't the problem. My user creates this inspection, and the inspection is then saved to the SQL tables. A form is then generated from these Inspections for factory operators to fill out later.
For example, if there are two inspection points, then two drop down options on the form will be generated, one for each point. The problem is saving the data from those dropdowns, because those dropdowns are generated from the inspection, created by another user, so I don't have a SQL table that can map to the data from the dropdowns - since a user created those fields, not me.
|
|
|
|
|
Your "explanations" make no sense: the "inspection point" "drop down" would contain multiple "inspection points" and that's where you would add another "inspection point"; not the other way around (creating "new" dropdowns)
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
I'm sorry ... I can't see the problem in the moment.
Perhaps you should explain those points where you stuck better.
I see the following :
- from somewhere your 2 Dropdown (Comboboxes ?) are filled with data ... so those data must allready be saved somewhere
- how does that data is entered into your Dropdowns ?
- at a time someone makes a selection with this Dropdowns - what happens then ?
|
|
|
|
|
Data model looks week. Basically looks like you will need to load everything before using anything and that is seldom a good idea.
Member 13612263 wrote: In essence I am trying to save the RESULTS of an a user created inspection plan.
That isn't clear. But either you are attempting to manage a reference or you are attempting to provide a meta data model to the user.
For the first when they saved that data there should have been database ids. You use this in this location as the reference.
For the second you will need a at least one new table and perhaps at least a few more to let a user define the parts of a plan. Then reference (ids) those rows in some other table when you save it.
|
|
|
|
|
What you are saying doesn't seem to make much sense - it's probably just that you are using terms like "user created" wrongly, or we are misunderstanding what the dataflow is like.
What is sounds like is the user is actually creating columns which need to be added to the database along with the existing columns, rather than adding rows of data which need to be added (which is what usually happens)
What I think you are trying to say is that the user adds data which needs to be stored in tables with existing data, but the user code doesn't have any access to the existing tables so you don't know how to add rows of data to it.
Is that right?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
i have already C# login app code ,so now i need to create the system tray for that login app
so i need to know which library will support for this ,and now i am doing in windows.
|
|
|
|
|
|
Hello, I have a question. Can I design programs with a graphical interface in C#, Dot Net Core technology, and these programs work on the DOS operating system, such as Norton Ghost Bragg? Thank you.
|
|
|
|
|
No. DOS does not support .NET, C#, or have a GUI!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Unless you could port this project[^] to work on it.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I can't be the only one that is curious to know what "Norton Ghost Bragg" is?
|
|
|
|
|
No, you are not.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
I suspect he means "Norton Ghost[^] Backup" a DOS based app that later moved a Windows front end that created bootable DOS images to do the actual work, apparently.
It finally died from terminal apathy on the market side in 2013. A stake was driven through the source code and it was ritually be-header filed.
We shall not see it's like again. Hopefully.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
So they just want to run that automatically?
It has a UI, at least usage examples I saw show that. Which means one can write a C# app to feed UI events to it.
|
|
|
|
|
No, I think he wants to run actual C#, GUI apps under DOS ... Ghost was an abortion of a "conversion" which just provided a Windows front end that generated a bootable DOS floppy to do the backup - Windows was not involved at all by that stage!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I’m writing my main project in c++ but in order to get better at c++ I need to improve my c# skills. My question is what should a person learn after getting comfortable with variables, lists and classes in C#. I remember seeing helper constructs that make certain operations when dealing with lists easier but at that time I could not understand them. What would be your recommendation for let’s say top four things to know after learning the basics in C#?
|
|
|
|
|
I doubt that learning C# can help with learning C++.
|
|
|
|
|
With c# you learn about the type of problems a programmer has to deal with and an easy and friendly way to solve them. I had been alternating from one language to the other since I started programming, this is how I got better at c++.
At the end of the day why I want to improve my c# skills doesn’t matter
|
|
|
|