Programming in Visual C 2008 3rd Edition Julia Case Bradley pdf download
Programming in Visual C 2008 3rd Edition Julia Case Bradley pdf download
https://ebookname.com/product/programming-in-visual-c-2008-3rd-
edition-julia-case-bradley-2/
https://ebookname.com/product/programming-in-visual-c-2008-3rd-
edition-julia-case-bradley/
https://ebookname.com/product/programming-in-visual-
basic-2008-7th-edition-julia-case-bradley/
https://ebookname.com/product/beginning-
visual-c-2012-programming-1st-edition-karli-watson/
https://ebookname.com/product/the-first-miracle-drugs-how-the-
sulfa-drugs-transformed-medicine-1st-edition-john-e-lesch-editor/
English for the Financial Sector Teacher s Book 1 Tch
Edition Ian Mackenzie
https://ebookname.com/product/english-for-the-financial-sector-
teacher-s-book-1-tch-edition-ian-mackenzie/
https://ebookname.com/product/introduction-to-chemistry-a-
conceptual-approach-2nd-ed-edition-richard-c-bauer/
https://ebookname.com/product/kantian-ethics-1st-edition-allen-w-
wood/
https://ebookname.com/product/family-identity-1st-edition-
vittorio-cigoli/
https://ebookname.com/product/experiences-of-depression-a-study-
in-phenomenology-1st-edition-matthew-ratcliffe/
How I Trade Options 1st ed Edition Najarian
https://ebookname.com/product/how-i-trade-options-1st-ed-edition-
najarian/
Computer and Information Technology
Programming in Visual C#
2008
Bradley−Millspaugh
McGraw-Hill
=>?
McGraw−Hill Primis
ISBN−10: 0−39−017402−5
ISBN−13: 978−0−39−017402−4
Text:
http://www.primisonline.com
Copyright ©2009 by The McGraw−Hill Companies, Inc. All rights
reserved. Printed in the United States of America. Except as
permitted under the United States Copyright Act of 1976, no part
of this publication may be reproduced or distributed in any form
or by any means, or stored in a database or retrieval system,
without prior written permission of the publisher.
Contents
Front Matter 1
Preface 1
To the Student 7
8. Arrays 339
Text 339
iii
9. Web Applications 377
Text 377
iv
Bradley−Millspaugh: Front Matter Preface © The McGraw−Hill 1
Programming in Visual C# Companies, 2010
2008
PREFACE
Approach
This text incorporates the basic concepts of programming, problem solving,
and programming logic, as well as the design techniques of an object-oriented
event-driven language.
Chapter topics are presented in a sequence that allows the programmer to
learn how to deal with a visual interface while acquiring important program-
ming skills such as creating projects with objects, decisions, loops, and data
management.
A high priority is given to writing applications that are easy for the user to
understand and use. Students are presented with interface design guidelines
throughout the text.
This text follows essentially the same sequence as the Bradley/Millspaugh
Visual Basic text. Object-oriented programming (OOP) is introduced in Chap-
ter 1 and is used consistently in every chapter of the book.
The code for all in-chapter projects is available to instructors.
v
2 Bradley−Millspaugh: Front Matter Preface © The McGraw−Hill
Programming in Visual C# Companies, 2010
2008
TEXT FEATURES
Object-Oriented Concepts Interface Design Guidelines
are presented throughout the text to offer are presented to offer students a better under-
students an introduction to object-oriented standing of meeting user needs and employing
design before learning to create their own industry standards.
classes.
Good Programming Habits
try
1. Always test the tab order on your forms. Fix it if necessary by changing
{
the TabIndex properties of the controls.
//C Convert
H A input
P T values
E R to numeric and 2. Provide visual separation for input fields and output fields and always
quantityInteger = int.Parse(quantityTex make it clear to the user which are which.
try
{
1priceDecimal = decimal.Parse(priceT
// Calculate values.
extendedPriceDecimal = quantityInte
3. Make sure that your forms can be navigated and entered from the
keyboard. Always set a default button (AcceptButton property) for
every form.
4. To make a label maintain its size regardless of the value of the Text
property, set AutoSize to false.
5. To make the text in a text box right justified or centered, set the
TextAlign property.
Introduction to
discountDecimal = Decimal.Round(
(extendedPriceDecimal * DISCOUNT
6. You can use the Checked property of a check box to set other properties
that must be true or false.
amountDueDecimal = extendedPriceDec
Programming and
totalAmountDecimal += amountDueDeci
numberTransactionsInteger++;
Visual C# 2008
// Format and display answers.
extendedPriceTextBox.Text = extende Tips
at the completion of this chapter, you will be able to . . .
1. Describe the process of visual program design and development. in the margins help students avoid potential
2. Explain the term object-oriented programming. trouble spots in their programs and encourage
3. Explain the concepts of classes, objects, properties, methods, and
events. them to develop good programming habits.
4. List and describe the three steps for writing a C# program.
viii P R E F A C E
P R E F A C E ix
x P R E F A C E
Thank You
Many people have worked very hard to design and produce this text. We would
like to thank our editors, Scott Davidson and Alaina Grayson. Our thanks also
to the many people who produced this text, including Marlena Pechan and
Betsy Blumenthal.
We greatly appreciate Robert Price and Peter van der Goes for their thor-
ough technical reviews, constructive criticism, and many valuable suggestions.
Thank you to Theresa Berry for her work on the exercise solutions. And, most
importantly, we are grateful to Dennis and Richard for their support and
understanding through the long days and busy phone lines.
The Authors
We have had fun writing about C#. We hope that this feeling is evident as you
read this book and that you will enjoy learning or teaching this outstanding
programming language.
Julia Case Bradley
Anita C. Millspaugh
Bradley−Millspaugh: Front Matter To the Student © The McGraw−Hill 7
Programming in Visual C# Companies, 2010
2008
TO THE STUDENT
The best way to learn to program in Visual C# is to do it. If you enter and run
the sample projects, you will be on your way to writing applications. Reading
the examples without trying to run them is like trying to learn a foreign lan-
guage or mathematics by just reading about it. Enter the projects, look up your
questions in the extensive MSDN Help files, and make those projects run.
Installing Visual C#
For the programs in this text, you need to install the .NET Framework v 3.5,
Visual C# 2008, and the MSDN (Microsoft Developers Network) library, which
contains all of Help and many instructive articles.
You can download the Express Edition of Visual C# and Visual Web De-
veloper from msdn.microsoft.com/express. Using these two products, you can
complete most of the exercises in this text.
xi
8 Notes
Bradley−Millspaugh: 1. Introduction to Text © The McGraw−Hill 9
Programming in Visual C# Programming and Visual Companies, 2010
2008 C# 2008
try
{
//C Convert
H A input
P T values
E R to numeric and assign
quantityInteger = int.Parse(quantityTextBox.T
try
{
1priceDecimal = decimal.Parse(priceTextBox
// Calculate values.
extendedPriceDecimal = quantityInteger *
Introduction to
discountDecimal = Decimal.Round(
(extendedPriceDecimal * DISCOUNT_RATE_
amountDueDecimal = extendedPriceDecimal -
Programming and
totalAmountDecimal += amountDueDecimal;
numberTransactionsInteger++;
Visual C# 2008
// Format and display answers.
extendedPriceTextBox.Text = extendedPrice
at the completion of this chapter, you will be able to . . .
Check box
Radio
buttons
Picture Buttons
box
Labels
Menu bar
Group box
Drop-down list
List box
Beginning in Chapter 9 you will create programs using Web Forms and
Visual Web Developer. You can run Web applications in a browser such as
Internet Explorer or Mozilla FireFox, on the Internet, or on a company intranet.
Figure 1.2 shows a Web Forms application.
You also will become acquainted with Microsoft’s new screen design tech-
nology, Windows Presentation Foundation (WPF), which is covered in Chapter
14. WPF uses its own designer and design elements, which are different from
those used for Windows forms.
Bradley−Millspaugh: 1. Introduction to Text © The McGraw−Hill 11
Programming in Visual C# Programming and Visual Companies, 2010
2008 C# 2008
C H A P T E R 1 3
Figure 1.2
Programming Languages—Procedural,
Event Driven, and Object Oriented
There are literally hundreds of programming languages. Each was developed to
solve a particular type of problem. Most traditional languages, such as BASIC,
C, COBOL, FORTRAN, PL/1, and Pascal, are considered procedural lan-
guages. That is, the program specifies the exact sequence of all operations.
Program logic determines the next instruction to execute in response to condi-
tions and user requests.
The newer programming languages such as C#, Java, and Visual Basic
(VB) use a different approach: object-oriented programming (OOP).
In the OOP model, programs are no longer procedural. They do not follow
a sequential logic. You, as the programmer, do not take control and determine
the sequence of execution. Instead, the user can press keys and click various
buttons and boxes in a window. Each user action can cause an event to occur,
which triggers a method (a set of programming statements) that you have writ-
ten. For example, the user clicks on a button labeled Calculate. The clicking
causes the button’s Click event to occur, and the program automatically jumps
to a method you have written to do the calculation.
12 Bradley−Millspaugh: 1. Introduction to Text © The McGraw−Hill
Programming in Visual C# Programming and Visual Companies, 2010
2008 C# 2008
Objects
Think of an object as a thing, or a noun. Examples of objects are forms and
controls. Forms are the windows and dialog boxes you place on the screen;
controls are the components you place inside a form, such as text boxes, but-
tons, and list boxes.
Properties
Properties tell something about or control the behavior of an object such as
its name, color, size, or location. You can think of properties as adjectives that
describe objects. TIP
When you refer to a property, you first name the object, add a period, and The term members is used to refer to
then name the property. For example, refer to the Text property of a form called both properties and methods. ■
SalesForm as SalesForm.Text (pronounced “sales form dot text”).
Methods
Actions associated with objects are called methods. Methods are the verbs of
object-oriented programming. Some typical methods are Close, Show, and
Clear . Each of the predefined objects has a set of methods that you can
use. You will learn to write additional methods to perform actions in your
programs.
You refer to methods as Object.Method (“object dot method”). For exam-
ple, a Show method can apply to different objects: BillingForm.Show shows
the form object called BillingForm; exitButton.Show shows the button object
called exitButton.
Events
You can write methods that execute when a particular event occurs. An event
occurs when the user takes an action such as clicking a button, pressing a key,
scrolling, or closing a window. Events also can be triggered by actions of other
objects, such as repainting a form or a timer reaching a preset point.
Classes
A class is a template or blueprint used to create a new object. Classes contain
the definition of all available properties, methods, and events.
Each time that you create a new object, it must be based on a class. For
example, you may decide to place three buttons on your form. Each button is
based on the Button class and is considered one object, called an instance of the
class. Each button (or instance) has its own set of properties, methods, and
events. One button may be labeled “OK”, one “Cancel”, and one “Exit”. When
the user clicks the OK button, that button’s Click event occurs; if the user clicks
on the Exit button, that button’s Click event occurs. And, of course, you have
written different program instructions for each of the button’s Click events.
An Analogy
If the concepts of classes, objects, properties, methods, and events are still a
little unclear, maybe an analogy will help. Consider an Automobile class. When
Bradley−Millspaugh: 1. Introduction to Text © The McGraw−Hill 13
Programming in Visual C# Programming and Visual Companies, 2010
2008 C# 2008
C H A P T E R 1 5
we say automobile, we are not referring to a particular auto, but we know that
an automobile has a make and model, a color, an engine, and a number of
doors. These elements are the properties of the Automobile class.
Each individual auto is an object, or an instance of the Automobile class.
Each Automobile object has its own settings for the available properties. For
example, each Automobile object has a Color property, such as myAuto.Color =
Blue and yourAuto.Color = Red.
The methods, or actions, of the Automobile class might be Start, SpeedUp,
SlowDown, and Stop. To refer to the methods of a specific object of the class,
use myAuto.Start and yourAuto.Stop.
The events of an Automobile class could be Arrive or Crash. In a C# pro-
gram, you write event-handling methods that specify the actions you want to
take when a particular event occurs for an object. For example, you might write
a method to handle the yourAuto.Crash event.
Note: Chapter 12 presents object-oriented programming in greater depth.
C#
Microsoft C# is a part of Visual Studio. You also can purchase C# by itself
(without the other languages but with the .NET Framework). C# is available in
an Express Edition, a Standard Edition, a Professional Edition, and four
specialized versions of Team System Editions for large enterprise application
development. You can find a matrix showing the features of each edition in
Help. Anyone planning to do professional application development that in-
cludes the advanced features of database management should use the Profes-
sional Edition or the Team System Database version. The full Professional
Edition is available to educational institutions through the Microsoft Academic
Alliance program and is the best possible deal. When a campus department
purchases the Academic Alliance, the school can install Visual Studio on all
classroom and lab computers and provide the software to all students and fac-
ulty at no additional charge. For more information, have your instructor visit:
http://msdn.microsoft.com/en-us/academic/default.aspx
14 Bradley−Millspaugh: 1. Introduction to Text © The McGraw−Hill
Programming in Visual C# Programming and Visual Companies, 2010
2008 C# 2008
Writing C# Programs
When you write a C# application, you follow a three-step process for planning
the project and then repeat the three-step process for creating the project. The
three steps involve setting up the user interface, defining the properties, and
then creating the code.
Programming
After you have completed the planning steps and have approval from your user,
you are ready to begin the actual construction of the project. Use the same
three-step process that you used for planning.
1. Define the user interface. When you define the user interface, you create
the forms and controls that you designed in the planning stage.
Think of this step as defining the objects you will use in your
application.
Bradley−Millspaugh: 1. Introduction to Text © The McGraw−Hill 15
Programming in Visual C# Programming and Visual Companies, 2010
2008 C# 2008
C H A P T E R 1 7
2. Set the properties. When you set the properties of the objects, you give
each object a name and define such attributes as the contents of a label,
the size of the text, and the words that appear on top of a button and in
the form’s title bar.
You might think of this step as describing each object.
3. Write the code. You will use C# programming statements (called C#
code) to carry out the actions needed by your program. You will be sur-
prised and pleased by how few statements you need to create a powerful
Windows program.
You can think of this third step as defining the actions of your
program.
C# Application Files
A C# application, called a solution, can consist of one or more projects. Since
all of the solutions in this text have only one project, you can think of one
solution = one project. Each project can contain one or more form files. In
Chapters 1 through 5, all projects have only one form, so you can think of one
project = one form. Starting in Chapter 6, your projects will contain multiple
forms and additional files. As an example, the HelloWorld application that you
will create later in this chapter creates the following files:
HelloForm.cs A .cs (C#) file that holds the code methods that
you write. This is a text file that you can open
in any editor. Warning: You should not modify
this file unless you are using the editor in the
Visual Studio environment.
Note: You can display file extensions. In Windows Vista, open the Explorer and
select Organize / Folders and Search Options, click on the View tab and deselect
the check box for Hide extensions for known file types. In Windows XP, in the My
Computer Tools menu, select Folder Options and the View tab. Deselect the
check box for Hide extensions for known file types. If you do not display the
extensions, you can identify the file types by their icons.
After you run your project, you will find several more files created by the
system. The only file that you open directly is the .sln, or solution file.
C H A P T E R 1 9
Figure 1.3
Note: If you plan to develop in more than one language, such as VB and
C#, you can save each group of settings and switch back and forth between the
two. Select Tools / Import and Export Settings and choose to Reset all settings.
Figure 1.4
The Visual Studio IDE with the Start Page open, as it first appears in Windows Vista, without an open project. You can close
the Start Page by clicking on its Close button.
Close button for
Start Page
Figure 1.5
C H A P T E R 1 11
The Visual Studio environment. Each window can be moved, resized, closed, or customized.
The Toolbars
You can use the buttons on the toolbars as shortcuts for frequently used opera-
tions. Each button represents a command that also can be selected from a menu.
Figure 1.7a shows the toolbar buttons on the Standard toolbar for the Profes-
sional Edition, which displays in the main window of the IDE; Figure 1.7b shows
the Layout toolbar, which is useful for designing forms in the Form Designer; and
Figure 1.7c shows the Text Editor toolbar, which contains buttons to use in the
Editor window. Select View / Toolbars to display or hide these and other toolbars.
20 Bradley−Millspaugh: 1. Introduction to Text © The McGraw−Hill
Programming in Visual C# Programming and Visual Companies, 2010
2008 C# 2008
Figure 1.7
The Visual Studio toolbars contain buttons that are shortcuts for menu commands. You can display or hide each of the
toolbars: a. the Standard toolbar; b. the Layout toolbar; and c. the Text Editor toolbar.
Ne
Ad Pro
Op Ne t
Sa en F Ite
Sa F
Cu e A e
Co t
Pa y
Unste
Re
Na
Na igat
So
So
Fi
So
Pr utio
Ob er x
To ject ies lor
St lbo Bro ind r
ar x ws o
nd
op n E
o
ve ile m
v il
lu
lu
l
p
w
do
v
vi e B
d jec
do
tP
tio
tio
ga a
t p
ag
te ck
n
ll
w
Co
Pl
e
Fo wa
W e
at
nf
rw rd
fo
er w
ig
ar
rm
ur
d
s
at
io
(a)
ns
Al
Al
Al Le
Al C
Al Rig rs
Al To
Al Mi
M Bo es
M e Sa ms
M e Sa e W
Si Sa e H th
M o G Siz t
In Ho
De ease zon
Re reas ori Sp
M ve H oriz tal S g E
In e
De ease cal l Sp cin
Re eas erti acin ing
Ce ve erti Spa qu
Ce er H tic Sp g
Br r Ve zont aci g
Se o
M oB t
Ta e Ce k
ig
ig
ig ft
ig en
ig
ig ps
ig dd
ak tto
ak m
ak m id
ze m ei
ak ri e
ak
er
cr ri
cr rti nta pa g
b
in rti al ng
nd Fr ly
nt Ver cal cin al
nt or al S aci
c H tal
m e H zon aci
cr V Sp ac g
m e V cal g E
n
n
n
n te
n hts
n
n
g ac
Or lls
e
g T ca ly
o
e i
T e gh
T
to
de
Gr
r
s
id
on
o
l
o
p n
l S
n
i n
q
(b)
Co Un
Di
Di play
Di lay bje
Di lay aram Me
De lay uic eter ber
In reas ord Info fo ist
M le
M e To ook
M ve T Pre ark
M e T Ne ous
M e T Pre Bo ook
M e T Nex ous ma ark
Cl e T Prev Boo ook
To
m co
ov B
o
ov o vi
ov o xt B
ov o vi ok m
ov o t B rk
m m
cr e C
ea o N io km m
s
sp O
sp P ct
sp Q
gg
c W
en m
ea In om
r B e us a ark
t O en
se de p
oo xt B Bo rk i in
ut t th
In nt let
km oo ok n C
de
th e
m
ar km ma Cu urr
k
nt
e S Se
ks a rk rre en
el lec
m
ec te
In L
te d
rk i n t
io
d Li
n
Li ne
in n C t F Fol
ne s
Cu ur old de
s
rre ren er r
nt t D
Do oc
cu um
m en
en t
t
(c)
C H A P T E R 1 13
TIP
You can sort the tools in the tool-
box: Right-click the toolbox and se-
lect Sort Items Alphabetically from
the context menu (the shortcut
menu). ■
“As He died to make men holy, let us die to make men free.”
“In the beauty of the lilies Christ was born across the sea,
With a glory in his bosom that transfigures you and me;
As He died to make men holy, let us die to make men free,
While God is marching on.
“He has sounded forth the trumpet that shall never call retreat;
He is sifting out the hearts of men before his judgment seat;
Oh, be swift, my soul, to answer Him! be jubilant, my feet;
Our God is marching on!”
Later in the afternoon, as the girls hurried happily out from the
white house on the corner, each one chatting merrily, intent on
telling what she had done or intended to do for the war, Nathalie
alone was silent, weighed down, as it were, by a strange sense of
shame. Yes, she had been blindly selfish, and had failed to realize
the momentousness of the great questions of the day. When she
had been called upon, to give love and sympathy to her neighbors,
the poor suffering masses of people over seas, she had selfishly
turned her back to the call—she had failed to show herself a
daughter of liberty. Why, she was not a patriot,—no, not even an
American; and in the spirit, if not in the letter, she had dishonored
Dick, yes, and her father, who had always been so steadfast and true
to everything that was American.
That night Nathalie could not sleep, but tossed restlessly from side
to side, as parts of Mrs. Morrow’s speech kept forcing themselves
upon her memory. And just as she had succeeded in driving them
away, and also the remorseful thought that she had not given her
best, that she had failed to show greatness, the song the girls had
sung that afternoon, with the luring, old-time air and the soul-
stirring words, flashed with vivid distinctness:
“As He died to make men holy, let us die to make men free,
While God is marching on.”
The girl sat up in bed, and in a crooning whisper hummed the whole
verse through, repeating again and again,
“As He died to make men holy, let us die to make men free.”
The beauty as well as the significance of the words had made their
appeal. Christ had died to make men holy; she must give of her best
to make men free. She must show herself great, but what could she
do?
But even as the question came, so flashed the answer, and Nathalie
was again softly humming,
“Oh, be swift, my soul, to answer Him! be jubilant, my feet;
Our God is marching on.”
And then suddenly a thought stamped itself upon her mind. The girl
caught her breath. Yes, she had given Dick up because she had
been forced to do so, but now she would make the sacrifice, give
the best of herself; she would stop once and forever all useless
repining. She would keep herself cheered by the thought that she
was glad—she gritted her teeth determinedly—that she had Dick to
give to help make people free.
Yes, but she must do something—she must give her best; no, it
might not be anything very great or big, but she must show she was
a true daughter of liberty. Ah, she knew what she could do, and then
Nathalie fell back on her pillow, and although she lay very still, her
brain was alert, thinking and planning. Yes, she could get the girls
together; she would begin the very next morning. She would have
every one in it, for liberty wouldn’t be liberty unless it was free to all.
And then one thought and another kept popping into her mind, until
finally the tired brain went on a strike and refused to register any
more thoughts, and Nathalie, without a word of protest, tumbled
into the land o’ dreams.
The next morning she was up betimes, and was soon singing
cheerily at her work, every now and then stopping in the midst of
some favored melody, to repeat softly,
“As He died to make men holy, let us die to make men free.”
“Yes, we must prove that we have the true spirit of liberty, the spirit
of humanity,” Nathalie spoke very earnestly, “and that is why I have
asked Marie Katzkamof to belong to the club. She is the little lame
girl, you know who she is; she sits at the news-stand on the corner
of Main and West streets, and sells the papers when her father is at
business. She is always knitting—sweaters for the soldiers, she says.
It makes me feel ashamed when I realize how hard she works to do
her ‘little bit.’”
“You are right, Nathalie,” replied Helen thoughtfully, “for you have
struck something big in your idea that we are all Americans, and
that the club should be free to all. But hurry over, and see what Mrs.
Morrow has to say. I believe she’ll think the whole scheme is fine.”
But Nathalie was already at the door, her brown eyes sparkling with
suppressed excitement, and her cheeks flushed with the soft pink
that all the girls admired, and some envied. And then she was
making her way across the road to the white house on the corner,
still softly humming,
“As He died to make men holy, let us die to make men free.”
The Tuesday that Nathalie had designated in her notes to the invited
girls had arrived, and the girl, somewhat pale from nervousness, was
standing before a small table in the living-room of her home. Facing
her were a dozen or more girls, all more or less in an attitude of
expectant interest as they sat, some on chairs, others on the couch
in the hall, while the Pioneers, as was their wont when chairs were
limited, were seated in a circle on the floor.
“Now, girls,” cried Nathalie, determined to plunge ahead and get the
thing started before her enthusiasm and nerves collapsed to a
frazzle, as she told Helen afterward, “I have asked you all here to-
day, to form a club in the interest of liberty. The Girl Pioneers know
just how big a thing liberty is, for they had the pleasure of hearing
Mrs. Morrow, our Pioneer director, in her little talk on liberty. Oh,
Lillie Bell, would you mind repeating what you remember of Mrs.
Morrow’s speech?” Nathalie broke off abruptly, turning towards that
young lady, one of the most popular of the Pioneer girls. “I know
you have a good memory, Lillie,” Nathalie pleaded, “and are such a
good elocutionist that you can do it better than any one else I
know.”
This calling upon Lillie Bell was a stroke of finesse on the part of
Nathalie. For Lillie, when she had learned that the club was to be so
democratic that the daughter of her newsdealer, a Russian Jew, had
been invited, had loftily declared that although she was a good
American, and wanted to do all she could for liberty, well, she didn’t
know that she cared to chum with all the Jews in the town.
Nathalie had been keenly alive to the desirability of having Lillie a
member, because she was not only bright and efficient, but because
she was such a good entertainer. This declaration of Lillie’s, however,
had caused her spirits to fall below zero, and she began to fear that
the whole thing would prove a fizzle. But when so many girls had
responded to her invitation, all keyed to expectant curiosity—Lillie
among them—her spirits had taken a leap into the nineties.
Immediately her alert mind had begun to plan in what way, and
how, she could interest Lillie in the club, so that she would take an
active part in its doings. And here was her chance.
Lillie Bell, with her usual timely poise, gracefully and smilingly rose
to the occasion. In her most luring manner she not only repeated
Mrs. Morrow’s speech, but interpreted it with such a stirring
American spirit, that not only was Nathalie electrified, but the whole
audience were inspired to such a pitch of enthusiasm that they
broke into hearty applause.
As soon as the clamor subsided, Nathalie cried earnestly, “Now that
we all know what liberty means, and the possibilities that lie before
us, I propose that we form ourselves into a club to be known as ‘The
Liberty Girls.’”
Another outburst of approval brought the speaker to a halt, but only
for a moment, and then she went on smilingly, “Well, I am glad that
you like the name, for it means something.” Then she briefly told of
the seventeen young girls, who, over a hundred and fifty years ago,
had formed a club called “The Daughters of Liberty.”
“They did their bit,” smiled the girl, “by sewing all day on homespun
garments to prove that the colonies could be independent of the
mother-country, and swore that they would drink no tea until the tax
had been removed. They also declared that they would have nothing
to do with any of their young gentlemen friends who dared to drink
the detested beverage.
“But, girls,” said Nathalie rather hurriedly, as she stepped from
behind the little table, “if we are to form ourselves into a club, we
shall have to have a chairman, for although the idea originated with
me, that does not mean that you have got to have me for a leader,”
she ended modestly.
“But we don’t want any one but you,” called out some one
enthusiastically, which cry was so emphatically echoed by others,
that Nathalie stood hopelessly bewildered, a wave of color dyeing
her face a rose-pink.
But in this crucial moment Helen came to her rescue, and jumping
on her feet cried,—even Lillie, Grace, and Edith bobbed up too,
—“Girls, I make the motion that we form ourselves into a club to be
known as ‘The Liberty Girls,’ and that we elect for president, Miss
Nathalie Page. All in favor of this motion stand up!”
There was a quick, simultaneous movement of many feet, and then,
as Helen sensed that Nathalie had been duly elected leader by her
mates, she called out, “Well, Nathalie, you will have to be president,
for every one wants you.”
“Yes, and we won’t have any one else,” added Edith quickly, with a
sudden clap of her hands. This was the signal for the girls to start up
a loud clapping in approval of the newly elected president, whose
rose-pink cheeks had deepened to scarlet as she stood bowing,
somewhat confusedly, to them.
Whereupon Lillie Bell gracefully came to the fore, and dramatically
seizing the hand of the young girl while leading her back to her seat,
in an impressive manner cried, “Allow me, Miss Nathalie Page, to
lead you to the seat of honor, as the president of the club, ‘The
Liberty Girls.’”
Nathalie bowed and laughed with embarrassment, but she
determined to carry off the honors bestowed upon her with a good
grace, and as soon as the somewhat noisy demonstrations of
pleasure from the girls had ended, she said modestly, “Girls, I thank
you for wanting me to be your leader, and only hope I will make a
good one.”
There was more plaudits, and then Nathalie, with grave seriousness,
said: “Girls, now that we have pledged ourselves not only as a club,
but as individuals, to further the cause of liberty, I would suggest
that our watchword be, ‘Liberty and humanity—our best.’ Humanity
means to be helpful and kind to our neighbors, our best means to
work with a strenuous will to do everything we can to that end. Our
neighbors at the present moment loom very large and big as the
needy and suffering ones overseas, as the sick, the wounded, the
dying, the prisoners, the refugees, and all those who are fighting on
land and sea: yes, and those in the air, and all those who are helping
to care for the ones I have mentioned, as the doctors and nurses,
for they, too, all need help. If we can’t fight, we have got to help
those who are fighting in our stead. Yes,” she added solemnly, “and
we must be prepared even to have the desire to do what we can for
our enemies, for as liberty makes no discrimination as to who shall
enjoy it, so in the doing of humane acts we should remember all.”
As Nathalie, highly elated by the enthusiasm shown by her audience,
stood waiting for quietness, suddenly her eyes rested on little lame
Marie Katzkamof, whose big black eyes shone like two stars from her
pale, sallow face. Nathalie had another inspiration.
She bent forward and in a low, earnest voice cried, “Do you think,
little Marie, that you would enjoy being a member of this club?
Wouldn’t you like to do something—yes, your best—to help the poor
refugees in France and Belgium, and the brave soldier boys who are
fighting, so that the whole world can enjoy liberty?”
“Yiss, ma’am; I have a glad on liberty,” the girl giggled nervously,
“but it’s like this mit me, I likes I shure I don’t make you no trouble.”
“But it won’t be any trouble to us, Marie,” answered Nathalie with a
smile. “We will all help you; humanity means to help others.”
“But, Missis Page,” the girl’s face was scarlet, her big eyes mournful.
“It’s like this mit me, I ain’t stylish like these young ladies; I make
nottings mit them, for I ain’t shmardt, hein? Und this leg it ain’t yet
so healthy. Und, Missis Page, I’m lovin’ mit liberty, but I ain’t lovin’
much mit Krisht, for I’m a Jewess.”
Nathalie faltered a moment, for she had seen a smile creep into the
eyes of the girls, which she knew would become a laugh if she did
not say the right thing. “Yes, you may not love Christ, as we
Christians,” she answered quickly, “but if you love the liberty,
perhaps you may learn to know what it means to love Him. And
then, Marie, that will make no difference, for as long as you want to
help the suffering ones, and show humanity, that makes you an
American, no matter who, or what you are.”
“Thank you, Missis Page,” the girl’s face had lighted with repressed
joy, “sure I’m an American. I can’t do nottings mit the fight, like the
soldiers, but you bet yer life I can knit for them, hein?” And the little
daughter of Israel held up a strip of wool with its two shiny needles.
“Shure und my hands are straight,” she continued pathetically, “even
if my legs ain’t healthy.”
Nathalie’s eyes blurred, but she answered smilingly, “Why, that will
be lovely, Marie.” Then, turning towards the girls, she cried, “Every
one in favor of appointing Marie Katzkamof captain of the Knitting
Squad, please hold up her hand.” And every hand went up. “And
we’ll call you Captain Molly,” went on Nathalie, “in memory of that
brave young woman, Molly Pitcher, who, when her husband fell dead
at the battle of Monmouth, during the Revolution, took his place,—
she was carrying water to the soldiers,—seized the rammer of his
gun, and fired it. And she kept on firing it,” cried Nathalie with
glowing eyes, “with the shot and shell flying all about her, until the
battle was over. And with that name and the bravery of that Molly—
for I know you are brave, Marie—I know you will do your best for
liberty, and for the soldiers who are on the firing-line, doing their
best, as the Sons of Liberty, for the right of every man in the world.”
After Lillie Bell had been duly elected vice-president of the club, and
several other club matters had been disposed of, Nathalie proposed,
as an inspiration to the girls, that they form a circle in the center of
the room, and stand with clasped hands, to show the
interdependence of one upon the other. “Then in turn,” she
explained, “let each girl tell of some woman, or girl, who, by her
bravery in doing what she could for some one else, or for the world,
has given of her best to mankind, and shown that she was a true
lover of humanity, and a daughter of liberty.”
The girls, quickly grasping Nathalie’s idea, were soon standing in a
circle, hurriedly trying to concentrate their minds on some one
woman who had given of her greatness to mankind.
“Can we tell about the Pioneer women?” asked a Girl Pioneer timidly.
“Yes, indeed,” answered the young president, “and we ought to hear
about them first, too, for they were the ones who really taught us
what it means to love liberty. Although they were not the first
women who did great things for their fellow-beings, they were the
ones who made clear to us that real liberty means humanity, justice,
and democracy for all.”
Helen now started the liberty chain by clasping the hand of her
neighbor on each side of her and telling of the women of the
Mayflower, who, by their acts of sacrifice, and stern determination to
worship God as they thought right, gave us religious freedom.
Nita told of the coming of the ship, the Arbella, to Gloucester with
John Winthrop, the governor of Massachusetts Bay Colony, and the
two noted Puritan brides, the Lady Arbella and Anne Bradstreet, the
latter our first American poetess. And gave testimony of their
devotion to Puritanism, and their desire to benefit mankind.
One Pioneer told of America’s first club-woman, Anne Hutchinson,
portraying her trial and banishment from Boston, in her efforts to
benefit mankind by teaching them freedom of thought. Another told
of Mary Dyer, the noted Quakeress, and how she was hanged from
an old elm on Boston Common because she believed in freedom of
religion.
Margaret, the wife of John Winthrop, the governor, and Susannah,
the mother of John Wesley, both beloved for their sweet piety and
charity, were cited as examples of having given of their best in being
the ideal wife and mother. Lillie Bell told of Florence Nightingale, the
young English woman who gave up a life of luxury to help the
soldiers during the Crimean War in 1854. She became known as
“The Lady of the Lamp,” from a statue of her as she stands with a
nurse’s lamp in her hand, erected in a church in London.
A Girl Scout told of Dorothy Dix, that wonderful woman who made it
her life-work to visit prisons and insane asylums, in order to institute
reforms for the care and comfort of the inmates. She also did much
for the relief of wounded soldiers during the American Civil War.
Jenny Lind, the great Swedish singer, was cited as having given to
humanity when she gave her time and voice to raise thousands of
dollars for the benefit of broken-down musicians and writers. Mrs.
Harriet Beecher Stowe gave of her best, Edith declared, when she
wrote her book, “Uncle Tom’s Cabin,” and showed the world the evils
of slavery; as also Mrs. Julia Ward Howe when she wrote that
wonderful patriotic song, “The Battle Hymn of the Republic.”
The two noted women astronomers, Caroline Herschel and Maria
Mitchell, when they studied the heavens in the interest of science,
gave of their best. Also Charlotte Cushman, the great actress, who
raised large sums of money by her acting, and gave it to the
Sanitary Fund, during the Civil War, was quoted as a lover of
humanity.
The Baroness Burdett-Coutts and Miss Helen Gould, two of the
world’s noted philanthropists, as well as Miss Louisa Alcott, in her
writings for the youth of America, and other women writers were
added to the growing list of Liberty Daughters. Dolly Madison, the
beautiful First Lady of the Land, showed herself a true American
during the War of 1812. When the British burned Washington she
refused to leave the White House until the portrait of Washington
was carried to a place of safety, while she herself took the
Declaration of Independence, with its autographs of the signers,
away with her, so that it would not be lost to America.
Even Marie, alias Captain Molly, caught the inspiration of the Liberty
Chain, and told of a young Russian girl, who, rather than betray the
secrets of a great man, from a paper that had fallen into her hands,
allowed herself to be exiled to Siberia. Then came the war stories, as
that of the noted Quakeress, Lydia Darrach, who, during the
Revolution, on learning the secrets of the British officers who were
quartered at her house, endured untold hardship in traveling many
miles in the dead of winter to reveal them to the American patrol, so
as to save the Continental Army from disaster.
Hannah Weston, who filled a pillow-case with pewter-ware when she
heard that a certain town was in need of ammunition, and carried it
many miles through the woods at night, was cited for her bravery
and her sacrifice, in her effort to help others. The story of Betty
Zane and how she ran from the palisade of a Western fort to her
brother’s hut for a keg of powder in the fire of a tribe of Indians,
although a familiar one, was listened to with glowing interest.
Ruth Wyllis, who hid the charter of Connecticut in an oak tree, and
Katy Brownell, the color-bearer at the battle of Bull Run, who stood
by the flag in the face of the advancing foe, and who would have
been shot to death if a soldier had not pulled her away, were but
two recitals of brave deeds for the sake of humanity.
But at last the liberty chain came to an end by Nathalie telling of
Saint Margaret, a plain, uneducated Irish woman, who, after losing
her husband and child, devoted her life and every penny she made
to the cause of orphan children. A statue, she said, had been
erected in New Orleans to this noble woman, who gave of her best
to humanity when she devoted her life to these little waifs.
After the girls had returned to their seats, Nathalie appointed seven
squads. She had made it seven, she said, not only because it was a
lucky number, but because there were just seven letters in the
name, Liberty. Helen was made the captain of the Florence
Nightingale Squad, since she had gained many honors, as a Girl
Pioneer, as an expert maker of bandages.
Nita, with a Girl Scout as a running mate, was made captain of the
Scrap-Book Squad, which meant the making of scrap-books for the
convalescing soldiers in the hospitals. Lillie Bell and a Camp Fire Girl
were placed at the head of the Garments Squad for the cutting and
sewing of garments for the refugee children of France and Belgium.
Two Girl Scouts were made captains of the Flower Squad, with the
purpose of raising and selling flowers for the Liberty Loan fund.
Jessie Ford had charge of the comfort-kits for the soldier-boys, while
Barbara Worth, who was an expert knitter, was appointed to work
with Captain Molly, the Russian Jewess. Nathalie was unanimously
chosen as the captain of the Liberty Garden, with Edith Whiton and
several other Girl Pioneers. They were not only to raise vegetables
and fruits in their garden-to-be, but they were to do canning as well.
After some discussion it was decided that the club members wear a
uniform consisting of a white shirtwaist, with the letters L. G. in red
on the arm, on the corners of their white sailor-collars, and on the
hatbands of their white sailor-hats, and to wear white or khaki skirts.
Nathalie had just appointed a committee to scour the town for a
parcel of ground to use as a flower and Liberty garden, when a
sudden noise was heard. The girl looked quickly up, to see Mrs.
Morrow standing in the doorway leading from the dining-room, with
her arms filled with flowers. In her hand was a large bell, which she
was jingling softly, while her blue eyes smiled down upon the girls
with radiant good-will.
CHAPTER IV
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookname.com