15,890,825 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 C++ questions
View Javascript questions
View Visual Basic questions
View Python 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 carlito_brigante (Top 12 by date)
carlito_brigante
7-Nov-14 15:34pm
View
i dont know from where i should start and what i should use and suggestion?
carlito_brigante
1-Sep-14 5:51am
View
already tried same result - the 3 last digits was cutted of.
carlito_brigante
1-Sep-14 5:51am
View
your version is from unix time to datetime but i need from datetime to unix...
carlito_brigante
27-Aug-14 5:31am
View
Hi Sergey, first all thanks for such cain of post :). I've tested once again without Thread implementation so what i did is between foreach statment i stayed only Execute method without Threading. The result was as it should be. By the way i received information from guy which is taking care server i am sending requests and he told me that asynchronous is allowed towards the server but up to 5 concurrent requests. Is it possible somehow to modify my code to send only 5 requests then wait on results and then send next 5 and wait on results and so on? Would you be abble to help me out how i can do that on my example code?
P.S in case of XMLDocumet i think i duplicated it inside Execute method could you also help me out how can i modyfy to use Load only one time i think i am doing it double time without reasons.
carlito_brigante
12-Mar-14 19:03pm
View
i think so. After all I will use Properties in base class like:
protected virtual string Id { get; set;}
and then use them directly in derived classes or if need to ad additional qualification to setter/getter or both I will override
but one thing makes me thinking - that derived classes need to implemented their own private fields - I would like better to have in anyway inside base. How to do then?
carlito_brigante
12-Mar-14 17:52pm
View
So to be fully sure my thinking is really correct please tell yes or not to my two statements:
First case:
I don't know since beginning whether derived classes inheriting from abstract base class would need to control values or not so I would implement like below then if some derived class don't want to control value then don't need to override this but just use Id directly from abstract base class and that's it but if some derived class would like to control Id then need to override Id for it own and create private field _id as well
abstract class MyAbstractClass
{
protected virtual string Id { get; set;}
}
Does this what I wrote is correct thinking?
Second case:
assuming that I know all derived classes would need to control Id value then I need to implement over abstract base class like this and override Id for their own and not _id.
abstract class MyAbstractClass
{
protected string _id
protected virtual string Id { get return _id ; set _id = value;}
}
Does second way is correct way of thinking?
Thanks in advance.
carlito_brigante
12-Mar-14 17:17pm
View
you mean because they are two completely different members because my property has its own back field? That's what you want to say? I already found out that this auto property got backing field but other way its abstract. Could you explain here?
If I would like to control variable from beginning maybe then this way : to implement inside my abstract class field and property and then I can use _id and Id in derived classes or even override later in derived classes property if I would like to
view sourceprint?
protected string _id;
protected virtual string Id { get return _id; set _id = value; }
Or if from beginning I don't know if either all derived classes would like to control variable or only just 1 or 2 of them I can just leave only a property inside abstract class and override property if there is a need in some derived class to control value + create a field for it as protected also in derived class:
view sourceprint?
protected virtual string Id { get ; set; }
What about now :) ? Am I right know?
carlito_brigante
12-Mar-14 4:07am
View
Could you tell me why this is not good in abstract? I declare property for Id which will take or set the _id assumed that is the way of OOP to access provate - this case protected field...
protected string _id;
protected internal abstract string Id { get; set; }
P.S the purpose of Cocpit i wrote eralier posts
carlito_brigante
11-Mar-14 14:55pm
View
hi there,
the target of that app is to suervising some servers within a network.
The cocpit class is abstract base class for Protocol, Server and Service all of them has similar fields and i can say they have the same structure so i decided to make Cocpit as base class for them. Heartbeatsupervisor is lets say 'engine' which takes Server and Protocol within the constructor and will do e.g ping inside StartCheck method. Icheck is simple
namespace Stormin
{
interface ICheck
{
void StartCheck();
void StopCheck();
}
}
carlito_brigante
8-Nov-11 4:47am
View
Deleted
Ok, but how to do that?
In C# + Access I got it working well, but I can't use Access querie result in others queries in code.
I will show now how it looksm like working.
So I got Access querie in AccessI got 1x query name: "kw_Attributes_x3"
[code]
SELECT tbAttributes.*, "MIN" AS Range, (Attribute_position * 10) AS Attribute_Sorting FROM tbAttributes
UNION
SELECT tbAttributes.*, "TAR" AS Range, (Attribute_position * 10 + 1) AS Attribute_Sorting FROM tbAttributes
UNION SELECT tbAttributes.*, "MAX" AS Range, (Attribute_position * 10 + 2) AS Attribute_Sorting FROM tbAttributes;
[/code]
carlito_brigante
30-Sep-11 4:22am
View
Deleted
Like You write in first post Tejas. I have a button, the problem is in datagridview i got only listed attributes_name's, but I need attribute_id for them to tb_plane_attributes, and I need to read values which user write. I don;t know how to do it.
carlito_brigante
22-Sep-11 6:45am
View
I think to this operation tom insert i don't need the inner joni statment cause i populate combobox by plains and i populate datagrid by attribute values. I just need to make 1 + column to set value to attributes and make insert command (on button click) to tb_as_plane_attributes. The inner join will be for update when i will have to retrive this attributes which is relate with plane...
Show More