Murach的C#书,有人用过吗? [英] Murach's C# book, anyone used it?

查看:100
本文介绍了Murach的C#书,有人用过吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个试图学习C#的老人,只是为了它的乐趣。我是老式语言(COBOL,FORTRAN等)的老兵,我想学习

一种面向对象的语言。目前正在通过Murach的C#

由Joel Murach和Doug Lowe工作。由于我没有参加课程,我没有人能够向他提出问题。这就是我转向这个

新闻组的原因。这对我这样的新手来说是最好的NG吗?有没有人在那里使用过这本书?$ / b
我的目标是不要弄错NG,因为我相信你们都有很多重要的

与你的时间有关。我已经通过C#书进行了通过

第10章。它进展得非常好。我正在完成所有练习

并尝试做作者建议的所有事情。我遇到了问题

练习10-1。我想就调试

执行错误进行一般性讨论。更重要的是,我想与有经验的人交流




这是我的问题,这促使我加入NG :在第9章中我用
工作了一个程序,它创建了一个名为

IsValidData()的数据验证方法。如果文本框包含无效数据,则该方法将

焦点设置为违规文本框,以便用户有机会更正其

错误。在该语句之后执行的方法:return false。

练习是在一个表格课上进行的。在第10章中,一个类似的程序

在一个包含两个表单的类上工作,一个名为Customer表单的主表单
和另一个名为Payment表单的表单。 />

如果按照b $ b预期的方式输入所有信息,程序运行正常。如果付款表单中的IsValidData()返回false,则

btnOK_Click()返回并在客户表单中返回并抛出异常。

我期望发生的是焦点将被设置为违规字段

(三者中的一个)并让用户有机会纠正他的错误。

btnOK_Click()不应该在用户有一个

机会修复错误之前离开付款表单。我确信我做了一些愚蠢的事情,因为我没有在第9章中讨论这个问题。


我可以提供更多关于代码清单的信息,但是对于那些使用过这本书的人,我正在寻找
。我需要了解代码

如何与表单进行交互。

关注我的是概念而不是错误。感谢您的帮助。


Robert Schuldenfrei

bo * @ si- inc.com

I am an older person trying to learn C# just for the fun of it. I am a
veteran of older style languages (COBOL, FORTRAN, etc.) and I want to learn
an Object Orientated language. Currently working my way through Murach''s C#
by Joel Murach and Doug Lowe. Since I am not taking a course, I have no one
to whom I can address questions. That is why I am turning to this
newsgroup. Is this the best NG for a newbie like me? Are there people out
there who have used the book?

My goal is not to bug the NG, as I am sure you all have many important
things to do with your time. I have progressed through the C# book through
Chapter 10. It is going exceedingly well. I am working all of the exercises
and trying to do everything the authors suggest. I ran into a problem with
Exercise 10-1. I would like to get into a general discussion about debugging
execution errors. More importantly, I would like to interact with people
who have experience with the book.

Here is my issue in brief that prompted me to join the NG: In Chapter 9 I
worked a program that created a method to do data validation called
IsValidData(). If a textbox contained invalid data, the method set the
focus to the offending textbox to give the user a chance to correct his
error. Following that statement the method executed: return false. The
exercise was working on a one form class. In Chapter 10 a similar program
worked on a class containing two forms, a main one called the Customer form
and a second one that is called named Payment form.

The program runs fine if you enter all of the information the way it
expects. If IsValidData() in the Payment form returns false, then
btnOK_Click() returns and throws and exception back in the Customer form.
What I expected to happen is the focus would be set to the offending field
(one of the three) and give the user a chance to correct his error. The
btnOK_Click() should not have left the Payment form before the user had a
chance fix the error. I am sure I have done something stupid as I did not
have this issue in Chapter 9.

I could provide a lot more information with code listings, but I am looking
for someone who has worked with the book. I need to understand how the code
interacts with the forms. It is the concept rather than the bug that
concerns me. Thank you for your help.

Robert Schuldenfrei

bo*@s-i-inc.com

推荐答案

Robert,


见内联。


" Robert Schuldenfrei" < bo*@s-i-inc.com>在消息中写道

新闻:WSktc.3038
Robert,

See inline.

"Robert Schuldenfrei" <bo*@s-i-inc.com> wrote in message
news:WSktc.3038


eY2.1481@attbi_s02 ...
eY2.1481@attbi_s02...
我是一个老人试图学习C#只是为了它的乐趣。我是老式语言(COBOL,FORTRAN等)的老手,我想要
学习面向对象的语言。目前正在通过Murach的Joel Murach和Doug Lowe的
C#工作。由于我没有参加课程,所以我没有
,我可以向他提出问题。这就是我转向这个
新闻组的原因。这对我这样的新手来说是最好的NG吗?是否有人使用这本书的



我没有亲自使用过这本书,但是新闻组中的人们非常乐意回答你在C#/ .NET上遇到的任何问题,以及好吧,

生活一般。

我的目标不是为NG烦恼,因为我相信你们都有许多重要的事情要处理你的时间。
I am an older person trying to learn C# just for the fun of it. I am a
veteran of older style languages (COBOL, FORTRAN, etc.) and I want to learn an Object Orientated language. Currently working my way through Murach''s C# by Joel Murach and Doug Lowe. Since I am not taking a course, I have no one to whom I can address questions. That is why I am turning to this
newsgroup. Is this the best NG for a newbie like me? Are there people out there who have used the book?
I have not used the book personally, but people in the newsgroup are
more than happy to answer whatever questions you have on C#/.NET, and well,
life in general.

My goal is not to bug the NG, as I am sure you all have many important
things to do with your time.




显然,我没有。此外,根据每天

天的这个组的帖子数量,我不认为你的一个或十个会那么烦恼。

= )


至于你的其他问题,如果你发布代码会有所帮助。

那样,我们可以看到发生了什么,以及给你更好的建议。虽然

我们中的一些人可能还没有读过这本书,但我们仍然可以帮助你帮助你找出代码。

-

- Nicholas Paldino [.NET / C#MVP]

- mv * @ spam.guard.caspershouse.com


您好Nick,


感谢您的电子邮件回复除了回复NG。如果我从有书经验的人那里听到

,我可能会有更多有意义的讨论,而无需发布代码。不过,你确实提出了一个非常有趣的点。如果您使用的是集成开发

环境(IDE),则代码和图形对象(如我的两种形式)不在一个地方或以相同的形式存在。对我来说最大的问题之一是

只是跟踪事物的位置。在过去,COBOL程序

很大,但它们都集中在一个地方。在一个IDE中,

分布在图形窗格,属性表,代码等中。我还没有开始在这种环境下调试好b $ b 。我是,

然而,学习如何使用Auto,Local和

Watch的调试窗口。这是我第一次进入OO编程仙境的宝贝。


谢谢,


Bob


Robert Schuldenfrei


SI Inc.

Ridley Road


美国马萨诸塞州戴德姆02026



www.si-inc.com


Nicholas Paldino [.NET / C#MVP]" < mv*@spam.guard.caspershouse.com>写在

消息新闻:OU **************** @ tk2msftngp13.phx.gbl ...
Hi Nick,

Thanks for the e.mail reply in addition to the reply to the NG. If I hear
from someone who has experience with the book, I will probably have a more
meaningful discussion without the need to post the code. You do raise a
very interesting point, however. If you are using an Integrated Development
Environment (IDE) the code and the graphical objects, like my two forms, are
not in one place or in the same form. One of the biggest problem for me is
just keeping track of where things are. In the old days, COBOL programs
were big, but they were all together in one place. In an IDE stuff is
spread out in graphic panes, on property sheets, in code, etc. I have not
yet developed a good feel for debugging yet in this environment. I am,
however, learning how to use the debugging windows of Auto, Local, and
Watch. This is my first baby steps into the wonderland of OO programming.

Thank you,

Bob

Robert Schuldenfrei

S. I. Inc.

32 Ridley Road

Dedham, MA 02026

(781) 329-4828

bo*@s-i-inc.com

www.s-i-inc.com

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:OU****************@tk2msftngp13.phx.gbl...
Robert,

见内联。

Robert Schuldenfrei < bo*@s-i-inc.com>在消息中写道
新闻:WSktc.3038
Robert,

See inline.

"Robert Schuldenfrei" <bo*@s-i-inc.com> wrote in message
news:WSktc.3038


这篇关于Murach的C#书,有人用过吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆