15,670,344 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Python questions
View Javascript questions
View C++ questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by elfenliedtopfan5 (Top 18 by date)
elfenliedtopfan5
22-Mar-23 22:08pm
View
i know i doing it wrong and the fact its not updating on ui tryied to do command that when i push update test on button click it runs this,
public void runsql()
{
elfendb.InitialzePumps();
foreach (var item in elfendb.Pumps)
{
Pumps.Add(item);
}
}
that it does work it got 8 values just does not update on UI dont think i need onpropery changed observably has its own inbuilt on property changed
also thank you for being patient with me i know i struggle to explain well what i am doing thank you again for all help you provided it is much appreciated
elfenliedtopfan5
22-Mar-23 22:04pm
View
Really stupid question what would be best way to pass through the constructor pump type?
i understand the concept just not sure how to implement it
elfenliedtopfan5
22-Mar-23 21:03pm
View
should also mention unsure how to hook this up with the viewmodel as all the main code is in the sqlitedb so trying to get pumps.clear()
and pumps.Add()
would have to add a varaible to the sqlitedb.cs
to acess the mainwindowviewmodel.cs to get the Pumps observable collection if that makes sense
elfenliedtopfan5
22-Mar-23 20:58pm
View
thank you for your reply once again you seem to the most active on here for replies to my questions however when trying to implement the
public PumpType GetPumpData()
{
string getdb = "select * from PumpState";
SQLiteCommand elfeninfo = new SQLiteCommand(getdb, testing);
OpenConnection();
SQLiteDataReader result = elfeninfo.ExecuteReader();
if (result.HasRows)
{
while (result.Read())
{
// Get Fileds here
//var _id = result["ID"];
int _PumpNo = Convert.ToInt32(result["PumpNo"]);
var _State = Convert.ToInt32(result["State"]);
var _stan = Convert.ToInt32(result["Stan"]);
var _GradeId = Convert.ToInt32(result["GradeId"]);
var _GradeName = Convert.ToString(result["GradeName"]);
var _Ppu = Convert.ToInt32(result["Ppu"]);
var _Volume = Convert.ToInt32(result["Volume"]);
var _Cash = Convert.ToInt32(result["Cash"]);
var _MobileTransaction = Convert.ToBoolean(result["MobileTransaction"]);
var _MobileEnabled = Convert.ToBoolean(result["MobileEnabled"]);
yield return new PumpType
(_PumpNo, _State, _stan, _GradeId,
_GradeName, _Ppu, _Volume, _Cash,
_MobileTransaction, _MobileEnabled);
}
CloseConnection();
}
}
i get the following error
CS1624 The body of 'SQLITEDB.GetPumpData()' cannot be an iterator block because 'PumpType' is not an iterator interface type
CS1579 foreach statement cannot operate on variables of type 'PumpType' because 'PumpType' does not contain a public instance or extension definition for 'GetEnumerator'
sorry its not put in code block for some reason it wont let me do this in a comment
elfenliedtopfan5
16-Mar-23 21:08pm
View
umm unsure to how I answered my own question when the issue is the button text is not updating that is not answering my own question because that issue still persists.
i was giving Graeme_Grant more information based on what he has suggested and the questions he asked
elfenliedtopfan5
14-Mar-23 11:05am
View
thank you for your reply that has helped me out so much it was really confusing what you have put here is really easy to understand and put it in a way i can understand each part thank you for taking your time to write this reply
elfenliedtopfan5
8-Sep-19 12:35pm
View
i seem to get null when i try this
https://i.imgur.com/Bvt3Qhg.png
elfenliedtopfan5
25-May-19 17:26pm
View
have now updated sorry dont usally ask on forms did not know how you could do that
elfenliedtopfan5
25-May-19 15:48pm
View
https://i.imgur.com/CAx4fhs.png that is the file in ultra edit
elfenliedtopfan5
21-May-19 19:26pm
View
ok i managed to get it to work and download but the only issue i have now is there a way to do it by block code as thats all one when it names the textures they dont corrisond to the right name so is there a way to get name with hight and then url then re do it each time ?
elfenliedtopfan5
21-May-19 15:10pm
View
i have downloaded the sorce of a webpage i just cant seem to find the right foumla and what do you mean my code is automaticly ajusting the text ?
elfenliedtopfan5
21-May-19 10:43am
View
Sorry for lack of info it was really early in morning last night so basicly yes when i copyied it across to c# as a patten i got errors on \s ? but i assume thats because its quoted and there \ i think means something in c# as well
but with a hell of a lot of editing i managed to come up with this
@"""width""\s*:\s*(?'width'\d+).+?""height""\s*:\s*(?'height'\d+).+?""url""\s*:\s*\""(?'url'.+?)"""
but regex still just skips the found match part
https://i.imgur.com/SDJsYff.gifv
elfenliedtopfan5
20-May-19 18:23pm
View
umm thats great only issue i have is it gives me loads of errors due to formatting of the regex i think like \ ? error
elfenliedtopfan5
20-May-19 11:16am
View
yeah i looked into json yesterday but the issue being with this is there are about 30 occorances of this in a html site and with json you have to put id : "sometexthere" and the issue being i dont know what some of the names are because there hashed so i not sure how to correctly accoumplush this.
elfenliedtopfan5
27-Mar-19 11:57am
View
gdt is the file i posted thats its format its just short for gamedatatable and the text i posted is the contence of that file
elfenliedtopfan5
27-Mar-19 11:13am
View
i was thinking xml but the issue being i have to save it out to be tottaly diffent type like form xml to file type called gdt not sure if thats possible or not and if i was to go about doing it xml way how could i format it ?
elfenliedtopfan5
20-Oct-18 11:42am
View
i get the following error here
https://i.imgur.com/wr7WNxc.png
elfenliedtopfan5
20-Oct-18 10:42am
View
sorry i am somewhat new to this where about do i add this code because im not sure how to implument this into my program sorry to be a a pain
Show More