コード例 #1
0
        private void Entertainment_btn1_Click(object sender, EventArgs e)
        {
            if (RB1.Checked)
            {
                if (!File.Exists(Watch_fileLoc))
                {
                    FileStream   aFile = new FileStream(Watch_fileLoc, FileMode.Create, FileAccess.Write);
                    StreamWriter sw    = new StreamWriter(aFile);
                    sw.WriteLine("Politicians are strange creatures, says politician Omar Ahmad. And the best way to engage them on your pet issue is a monthly handwritten letter. Ahmad shows why old-fashioned correspondence is more effective than email, phone or even writing a check -- and shares the four simple steps to writing a letter that works.An internet infrastructure maven and activist, Omar Ahmad was the mayor of San Carlos, California");
                    sw.WriteLine("Noah Feldman makes a searing case that both politics and religion -- whatever their differences -- are similar technologies, designed to efficiently connect and manage any group of people. Noah Feldman studies the intersection of religion, politics and law -- with a focus on how Islam meshes with modern democracy.");
                    sw.WriteLine("Political prisoners aren't the only ones being tortured -- the vast majority of judicial torture happens in ordinary cases, even in 'functioning' legal systems. Social activist Karen Tse shows how we can, and should, stand up and end the use of routine torture.In too many countries, it's still normal to torture prisoners for confessions and information. Karen Tse works to end that");
                    sw.WriteLine("Nate Silver has answers to controversial questions about race in politics: Did Obama's race hurt his votes in some places? Stats and myths collide in this fascinating talk that ends with a remarkable insight on how town planning can promote tolerance.Math whiz and baseball fan Nate Silver was mainly known for predicting outcomes in fantasy ballgames -- until his technique hit a home run calling the outcome of the 2008 election primaries");
                    sw.Close();
                    aFile.Close();
                }
                else
                {
                    FileStream   aFile = new FileStream(Watch_fileLoc, FileMode.Append, FileAccess.Write);
                    StreamWriter sw    = new StreamWriter(aFile);
                    sw.WriteLine("Politicians are strange creatures, says politician Omar Ahmad. And the best way to engage them on your pet issue is a monthly handwritten letter. Ahmad shows why old-fashioned correspondence is more effective than email, phone or even writing a check -- and shares the four simple steps to writing a letter that works.An internet infrastructure maven and activist, Omar Ahmad was the mayor of San Carlos, California");
                    sw.WriteLine("Noah Feldman makes a searing case that both politics and religion -- whatever their differences -- are similar technologies, designed to efficiently connect and manage any group of people. Noah Feldman studies the intersection of religion, politics and law -- with a focus on how Islam meshes with modern democracy.");
                    sw.WriteLine("Political prisoners aren't the only ones being tortured -- the vast majority of judicial torture happens in ordinary cases, even in 'functioning' legal systems. Social activist Karen Tse shows how we can, and should, stand up and end the use of routine torture.In too many countries, it's still normal to torture prisoners for confessions and information. Karen Tse works to end that");
                    sw.WriteLine("Nate Silver has answers to controversial questions about race in politics: Did Obama's race hurt his votes in some places? Stats and myths collide in this fascinating talk that ends with a remarkable insight on how town planning can promote tolerance.Math whiz and baseball fan Nate Silver was mainly known for predicting outcomes in fantasy ballgames -- until his technique hit a home run calling the outcome of the 2008 election primaries");
                    sw.Close();
                    aFile.Close();
                }
            }

            else if (RB2.Checked)
            {
                if (!File.Exists(Not_Watch_fileLoc))
                {
                    FileStream   aFile = new FileStream(Not_Watch_fileLoc, FileMode.Create, FileAccess.Write);
                    StreamWriter sw    = new StreamWriter(aFile);
                    sw.WriteLine("Politicians are strange creatures, says politician Omar Ahmad. And the best way to engage them on your pet issue is a monthly handwritten letter. Ahmad shows why old-fashioned correspondence is more effective than email, phone or even writing a check -- and shares the four simple steps to writing a letter that works.An internet infrastructure maven and activist, Omar Ahmad was the mayor of San Carlos, California");
                    sw.WriteLine("Noah Feldman makes a searing case that both politics and religion -- whatever their differences -- are similar technologies, designed to efficiently connect and manage any group of people. Noah Feldman studies the intersection of religion, politics and law -- with a focus on how Islam meshes with modern democracy.");
                    sw.WriteLine("Political prisoners aren't the only ones being tortured -- the vast majority of judicial torture happens in ordinary cases, even in 'functioning' legal systems. Social activist Karen Tse shows how we can, and should, stand up and end the use of routine torture.In too many countries, it's still normal to torture prisoners for confessions and information. Karen Tse works to end that");
                    sw.WriteLine("Nate Silver has answers to controversial questions about race in politics: Did Obama's race hurt his votes in some places? Stats and myths collide in this fascinating talk that ends with a remarkable insight on how town planning can promote tolerance.Math whiz and baseball fan Nate Silver was mainly known for predicting outcomes in fantasy ballgames -- until his technique hit a home run calling the outcome of the 2008 election primaries");
                    sw.Close();
                    aFile.Close();
                }
                else
                {
                    FileStream   aFile = new FileStream(Not_Watch_fileLoc, FileMode.Append, FileAccess.Write);
                    StreamWriter sw    = new StreamWriter(aFile);
                    sw.WriteLine("Politicians are strange creatures, says politician Omar Ahmad. And the best way to engage them on your pet issue is a monthly handwritten letter. Ahmad shows why old-fashioned correspondence is more effective than email, phone or even writing a check -- and shares the four simple steps to writing a letter that works.An internet infrastructure maven and activist, Omar Ahmad was the mayor of San Carlos, California");
                    sw.WriteLine("Noah Feldman makes a searing case that both politics and religion -- whatever their differences -- are similar technologies, designed to efficiently connect and manage any group of people. Noah Feldman studies the intersection of religion, politics and law -- with a focus on how Islam meshes with modern democracy.");
                    sw.WriteLine("Political prisoners aren't the only ones being tortured -- the vast majority of judicial torture happens in ordinary cases, even in 'functioning' legal systems. Social activist Karen Tse shows how we can, and should, stand up and end the use of routine torture.In too many countries, it's still normal to torture prisoners for confessions and information. Karen Tse works to end that");
                    sw.WriteLine("Nate Silver has answers to controversial questions about race in politics: Did Obama's race hurt his votes in some places? Stats and myths collide in this fascinating talk that ends with a remarkable insight on how town planning can promote tolerance.Math whiz and baseball fan Nate Silver was mainly known for predicting outcomes in fantasy ballgames -- until his technique hit a home run calling the outcome of the 2008 election primaries");
                    sw.Close();
                    aFile.Close();
                }
            }

            if (length == 4 || length == 3 || length == 1)
            {
                if (Next == "Medical")
                {
                    Medical frm = new Medical(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Science")
                {
                    Science frm = new Science(NewUserSlections);
                    frm.Show();
                }
                else
                {
                    Finish frm = new Finish();
                    frm.Show();
                }
            }

            else
            {
                Finish frm = new Finish();
                frm.Show();
            }
            this.Close();
        }
コード例 #2
0
        private void Entertainment_btn1_Click(object sender, EventArgs e)
        {
            if (RB1.Checked)
            {
                if (!File.Exists(Watch_fileLoc))
                {
                    FileStream aFile = new FileStream(Watch_fileLoc, FileMode.Create, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(aFile);
                    sw.WriteLine("At TED@MotorCity, Lisa Gansky, author of The Mesh, talks about a future of business that's about sharing all kinds of stuff, either via smart and tech-enabled rental or, more boldly, peer-to-peer. Examples across industries -- from music to cars -- show how close we are to this meshy future.Lisa Gansky is the author of The Mesh: Why the Future of Business Is Sharing, and the instigator behind the Mesh Directory (www.meshing.it).");
                    sw.WriteLine("At his carpet company, Ray Anderson has increased sales and doubled profits while turning the traditional take / make / waste. industrial system on its head. In a gentle, understated way, he shares a powerful vision for sustainable commerce.Ray Anderson founded the company that makes covetable Flor carpeting. But behind the fresh design is a decades-deep commitment to sustainable ways of doing business -- culminating in the Mission Zero plan. ");
                    sw.WriteLine("When the dotcom bubble burst, hotelier Chip Conley went in search of a business model based on happiness. In an old friendship with an employee and in the wisdom of a Buddhist king, he learned that success comes from what you count. Chip Conley creates joyful hotels, where he hopes his employees, customers and investors alike can realize their full potential. His books share that philosophy with the wider world");
                    sw.WriteLine("John Gerzema says there's an upside to the recent financial crisis -- the opportunity for positive change. In talk talk, he identifies four major cultural shifts driving new consumer behavior and shows how businesses are evolving to connect with thoughtful spending. (Filmed at TEDxKC.) John Gerzema uses data, analysis and decades of experience to identify trends and develop daring new approaches to advertising");
                    sw.WriteLine("Ten percent of American businesses disappear every year. … It’s far higher than the failure rate of, say, Americans. Ten percent of Americans don’t disappear every year. Which leads us to conclude American businesses fail faster than Americans, and therefore American businesses are evolving faster than Americans");
                    sw.WriteLine("Economics writer Tim Harford studies complex systems -- and finds a surprising link among the successful ones: they were built through trial and error. In this sparkling talk from TEDGlobal 2011, he asks us to embrace our randomness and start making better mistakes.Tim Harford's writings reveal the economic ideas behind everyday experiences");
                    sw.Close();
                    aFile.Close();
                }
                else
                {
                    FileStream aFile = new FileStream(Watch_fileLoc, FileMode.Append, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(aFile);
                    sw.WriteLine("At TED@MotorCity, Lisa Gansky, author of The Mesh, talks about a future of business that's about sharing all kinds of stuff, either via smart and tech-enabled rental or, more boldly, peer-to-peer. Examples across industries -- from music to cars -- show how close we are to this meshy future.Lisa Gansky is the author of The Mesh: Why the Future of Business Is Sharing, and the instigator behind the Mesh Directory (www.meshing.it).");
                    sw.WriteLine("At his carpet company, Ray Anderson has increased sales and doubled profits while turning the traditional take / make / waste. industrial system on its head. In a gentle, understated way, he shares a powerful vision for sustainable commerce.Ray Anderson founded the company that makes covetable Flor carpeting. But behind the fresh design is a decades-deep commitment to sustainable ways of doing business -- culminating in the Mission Zero plan. ");
                    sw.WriteLine("When the dotcom bubble burst, hotelier Chip Conley went in search of a business model based on happiness. In an old friendship with an employee and in the wisdom of a Buddhist king, he learned that success comes from what you count. Chip Conley creates joyful hotels, where he hopes his employees, customers and investors alike can realize their full potential. His books share that philosophy with the wider world");
                    sw.WriteLine("John Gerzema says there's an upside to the recent financial crisis -- the opportunity for positive change. In talk talk, he identifies four major cultural shifts driving new consumer behavior and shows how businesses are evolving to connect with thoughtful spending. (Filmed at TEDxKC.) John Gerzema uses data, analysis and decades of experience to identify trends and develop daring new approaches to advertising");
                    sw.WriteLine("Ten percent of American businesses disappear every year. … It’s far higher than the failure rate of, say, Americans. Ten percent of Americans don’t disappear every year. Which leads us to conclude American businesses fail faster than Americans, and therefore American businesses are evolving faster than Americans");
                    sw.WriteLine("Economics writer Tim Harford studies complex systems -- and finds a surprising link among the successful ones: they were built through trial and error. In this sparkling talk from TEDGlobal 2011, he asks us to embrace our randomness and start making better mistakes.Tim Harford's writings reveal the economic ideas behind everyday experiences");
                    sw.Close();
                    aFile.Close();
                }
            }

            else if (RB2.Checked)
            {
                if (!File.Exists(Not_Watch_fileLoc))
                {
                    FileStream aFile = new FileStream(Not_Watch_fileLoc, FileMode.Create, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(aFile);
                    sw.WriteLine("At TED@MotorCity, Lisa Gansky, author of The Mesh, talks about a future of business that's about sharing all kinds of stuff, either via smart and tech-enabled rental or, more boldly, peer-to-peer. Examples across industries -- from music to cars -- show how close we are to this meshy future.Lisa Gansky is the author of The Mesh: Why the Future of Business Is Sharing, and the instigator behind the Mesh Directory (www.meshing.it).");
                    sw.WriteLine("At his carpet company, Ray Anderson has increased sales and doubled profits while turning the traditional take / make / waste. industrial system on its head. In a gentle, understated way, he shares a powerful vision for sustainable commerce.Ray Anderson founded the company that makes covetable Flor carpeting. But behind the fresh design is a decades-deep commitment to sustainable ways of doing business -- culminating in the Mission Zero plan. ");
                    sw.WriteLine("When the dotcom bubble burst, hotelier Chip Conley went in search of a business model based on happiness. In an old friendship with an employee and in the wisdom of a Buddhist king, he learned that success comes from what you count. Chip Conley creates joyful hotels, where he hopes his employees, customers and investors alike can realize their full potential. His books share that philosophy with the wider world");
                    sw.WriteLine("John Gerzema says there's an upside to the recent financial crisis -- the opportunity for positive change. In talk talk, he identifies four major cultural shifts driving new consumer behavior and shows how businesses are evolving to connect with thoughtful spending. (Filmed at TEDxKC.) John Gerzema uses data, analysis and decades of experience to identify trends and develop daring new approaches to advertising");
                    sw.WriteLine("Ten percent of American businesses disappear every year. … It’s far higher than the failure rate of, say, Americans. Ten percent of Americans don’t disappear every year. Which leads us to conclude American businesses fail faster than Americans, and therefore American businesses are evolving faster than Americans");
                    sw.WriteLine("Economics writer Tim Harford studies complex systems -- and finds a surprising link among the successful ones: they were built through trial and error. In this sparkling talk from TEDGlobal 2011, he asks us to embrace our randomness and start making better mistakes.Tim Harford's writings reveal the economic ideas behind everyday experiences");
                    sw.Close();
                    aFile.Close();
                }
                else
                {
                    FileStream aFile = new FileStream(Not_Watch_fileLoc, FileMode.Append, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(aFile);
                    sw.WriteLine("At TED@MotorCity, Lisa Gansky, author of The Mesh, talks about a future of business that's about sharing all kinds of stuff, either via smart and tech-enabled rental or, more boldly, peer-to-peer. Examples across industries -- from music to cars -- show how close we are to this meshy future.Lisa Gansky is the author of The Mesh: Why the Future of Business Is Sharing, and the instigator behind the Mesh Directory (www.meshing.it).");
                    sw.WriteLine("At his carpet company, Ray Anderson has increased sales and doubled profits while turning the traditional take / make / waste. industrial system on its head. In a gentle, understated way, he shares a powerful vision for sustainable commerce.Ray Anderson founded the company that makes covetable Flor carpeting. But behind the fresh design is a decades-deep commitment to sustainable ways of doing business -- culminating in the Mission Zero plan. ");
                    sw.WriteLine("When the dotcom bubble burst, hotelier Chip Conley went in search of a business model based on happiness. In an old friendship with an employee and in the wisdom of a Buddhist king, he learned that success comes from what you count. Chip Conley creates joyful hotels, where he hopes his employees, customers and investors alike can realize their full potential. His books share that philosophy with the wider world");
                    sw.WriteLine("John Gerzema says there's an upside to the recent financial crisis -- the opportunity for positive change. In talk talk, he identifies four major cultural shifts driving new consumer behavior and shows how businesses are evolving to connect with thoughtful spending. (Filmed at TEDxKC.) John Gerzema uses data, analysis and decades of experience to identify trends and develop daring new approaches to advertising");
                    sw.WriteLine("Ten percent of American businesses disappear every year. … It’s far higher than the failure rate of, say, Americans. Ten percent of Americans don’t disappear every year. Which leads us to conclude American businesses fail faster than Americans, and therefore American businesses are evolving faster than Americans");
                    sw.WriteLine("Economics writer Tim Harford studies complex systems -- and finds a surprising link among the successful ones: they were built through trial and error. In this sparkling talk from TEDGlobal 2011, he asks us to embrace our randomness and start making better mistakes.Tim Harford's writings reveal the economic ideas behind everyday experiences");
                    sw.Close();
                    aFile.Close();
                }
            }

            if (length == 4 || length == 3 || length == 1)
            {
                if (Next == "Religious")
                {
                    Religious_1 frm = new Religious_1(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Environment")
                {
                    Environment frm = new Environment(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Sports")
                {
                    Sports_1 frm = new Sports_1(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Politics")
                {
                    Politics frm = new Politics(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Medical")
                {
                    Medical frm = new Medical(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Science")
                {
                    Science frm = new Science(NewUserSlections);
                    frm.Show();
                }
                else
                {
                    Finish frm = new Finish();
                    frm.Show();
                }
            }

                else
               {
                   Finish frm = new Finish();
                   frm.Show();
               }
            this.Close();
        }
コード例 #3
0
        private void Entertainment_btn1_Click(object sender, EventArgs e)
        {
            if (RB1.Checked)
            {
                if (!File.Exists(Watch_fileLoc))
                {
                    FileStream aFile = new FileStream(Watch_fileLoc, FileMode.Create, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(aFile);
                    sw.WriteLine("Human growth has strained the Earth's resources, but as Johan Rockstrom reminds us, our advances also give us the science to recognize this and change behavior. His research has found nine planetary boundaries that can guide us in protecting our planet's many overlapping ecosystems. If Earth is a self-regulating system, it's clear that human activity is capable of disrupting it. Johan Rockstrom has led a team of scientists to define the nine Earth systems that need to be kept within bounds for Earth to keep itself in balance");
                    sw.WriteLine("Louise Fresco shows us why we should celebrate mass-produced, supermarket-style white bread. She says environmentally sound mass production will feed the world, yet leave a role for small bakeries and traditional methods. A powerful thinker and globe-trotting advisor on sustainability, Louise Fresco says it's time to think of food as a topic of social and economic importance on par with oil -- that responsible agriculture and food consumption are crucial to world stability");
                    sw.WriteLine("In James Howard Kunstler's view, public spaces should be inspired centers of civic life and the physical manifestation of the common good. Instead, he argues, what we have in America is a nation of places not worth caring about. James Howard Kunstler may be the world’s most outspoken critic of suburban sprawl. He believes the end of the fossil fuels era will soon force a return to smaller-scale, agrarian communities -- and an overhaul of the most destructive features of postwar society.");
                    sw.WriteLine("Here's a powerful provocation from artist Jae Rhim Lee. Can we commit our bodies to a cleaner, greener Earth, even after death? Naturally -- using a special burial suit seeded with pollution-gobbling mushrooms. Yes, this just might be the strangest TEDTalk you'll ever see ... Artist and TED Fellow Jae Rhim Lee re-imagines the relationships between the body and the world");
                    sw.WriteLine("The gharial and king cobra are two of India's most iconic reptiles, and they're endangered because of polluted waterways. Conservationist Romulus Whitaker shows rare footage of these magnificent animals and urges us to save the rivers that sustain their lives and our own.Romulus Whitaker is a scientist and conservationist who slings around the globe to study and protect reptiles. ");
                    sw.WriteLine("Speaking as both an astronomer and a concerned member of the human race, Sir Martin Rees examines our planet and its future from a cosmic perspective. He urges action to prevent dark consequences from our scientific and technological development. Martin Rees, one of the world's most eminent astronomers, is a professor of cosmology and astrophysics at the University of Cambridge and the UK's Astronomer Royal. He is one of our key thinkers on the future of humanity in the cosmos.");
                    sw.Close();
                    aFile.Close();
                }
                else
                {
                    FileStream aFile = new FileStream(Watch_fileLoc, FileMode.Append, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(aFile);
                    sw.WriteLine("Human growth has strained the Earth's resources, but as Johan Rockstrom reminds us, our advances also give us the science to recognize this and change behavior. His research has found nine planetary boundaries that can guide us in protecting our planet's many overlapping ecosystems. If Earth is a self-regulating system, it's clear that human activity is capable of disrupting it. Johan Rockstrom has led a team of scientists to define the nine Earth systems that need to be kept within bounds for Earth to keep itself in balance");
                    sw.WriteLine("Louise Fresco shows us why we should celebrate mass-produced, supermarket-style white bread. She says environmentally sound mass production will feed the world, yet leave a role for small bakeries and traditional methods. A powerful thinker and globe-trotting advisor on sustainability, Louise Fresco says it's time to think of food as a topic of social and economic importance on par with oil -- that responsible agriculture and food consumption are crucial to world stability");
                    sw.WriteLine("In James Howard Kunstler's view, public spaces should be inspired centers of civic life and the physical manifestation of the common good. Instead, he argues, what we have in America is a nation of places not worth caring about. James Howard Kunstler may be the world’s most outspoken critic of suburban sprawl. He believes the end of the fossil fuels era will soon force a return to smaller-scale, agrarian communities -- and an overhaul of the most destructive features of postwar society.");
                    sw.WriteLine("Here's a powerful provocation from artist Jae Rhim Lee. Can we commit our bodies to a cleaner, greener Earth, even after death? Naturally -- using a special burial suit seeded with pollution-gobbling mushrooms. Yes, this just might be the strangest TEDTalk you'll ever see ... Artist and TED Fellow Jae Rhim Lee re-imagines the relationships between the body and the world");
                    sw.WriteLine("The gharial and king cobra are two of India's most iconic reptiles, and they're endangered because of polluted waterways. Conservationist Romulus Whitaker shows rare footage of these magnificent animals and urges us to save the rivers that sustain their lives and our own.Romulus Whitaker is a scientist and conservationist who slings around the globe to study and protect reptiles. ");
                    sw.WriteLine("Speaking as both an astronomer and a concerned member of the human race, Sir Martin Rees examines our planet and its future from a cosmic perspective. He urges action to prevent dark consequences from our scientific and technological development. Martin Rees, one of the world's most eminent astronomers, is a professor of cosmology and astrophysics at the University of Cambridge and the UK's Astronomer Royal. He is one of our key thinkers on the future of humanity in the cosmos.");
                    sw.Close();
                    aFile.Close();
                }
            }

            else if (RB2.Checked)
            {
                if (!File.Exists(Not_Watch_fileLoc))
                {
                    FileStream aFile = new FileStream(Not_Watch_fileLoc, FileMode.Create, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(aFile);
                    sw.WriteLine("Human growth has strained the Earth's resources, but as Johan Rockstrom reminds us, our advances also give us the science to recognize this and change behavior. His research has found nine planetary boundaries that can guide us in protecting our planet's many overlapping ecosystems. If Earth is a self-regulating system, it's clear that human activity is capable of disrupting it. Johan Rockstrom has led a team of scientists to define the nine Earth systems that need to be kept within bounds for Earth to keep itself in balance");
                    sw.WriteLine("Louise Fresco shows us why we should celebrate mass-produced, supermarket-style white bread. She says environmentally sound mass production will feed the world, yet leave a role for small bakeries and traditional methods. A powerful thinker and globe-trotting advisor on sustainability, Louise Fresco says it's time to think of food as a topic of social and economic importance on par with oil -- that responsible agriculture and food consumption are crucial to world stability");
                    sw.WriteLine("In James Howard Kunstler's view, public spaces should be inspired centers of civic life and the physical manifestation of the common good. Instead, he argues, what we have in America is a nation of places not worth caring about. James Howard Kunstler may be the world’s most outspoken critic of suburban sprawl. He believes the end of the fossil fuels era will soon force a return to smaller-scale, agrarian communities -- and an overhaul of the most destructive features of postwar society.");
                    sw.WriteLine("Here's a powerful provocation from artist Jae Rhim Lee. Can we commit our bodies to a cleaner, greener Earth, even after death? Naturally -- using a special burial suit seeded with pollution-gobbling mushrooms. Yes, this just might be the strangest TEDTalk you'll ever see ... Artist and TED Fellow Jae Rhim Lee re-imagines the relationships between the body and the world");
                    sw.WriteLine("The gharial and king cobra are two of India's most iconic reptiles, and they're endangered because of polluted waterways. Conservationist Romulus Whitaker shows rare footage of these magnificent animals and urges us to save the rivers that sustain their lives and our own.Romulus Whitaker is a scientist and conservationist who slings around the globe to study and protect reptiles. ");
                    sw.WriteLine("Speaking as both an astronomer and a concerned member of the human race, Sir Martin Rees examines our planet and its future from a cosmic perspective. He urges action to prevent dark consequences from our scientific and technological development. Martin Rees, one of the world's most eminent astronomers, is a professor of cosmology and astrophysics at the University of Cambridge and the UK's Astronomer Royal. He is one of our key thinkers on the future of humanity in the cosmos.");
                    sw.Close();
                    aFile.Close();
                }
                else
                {
                    FileStream aFile = new FileStream(Not_Watch_fileLoc, FileMode.Append, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(aFile);
                    sw.WriteLine("Human growth has strained the Earth's resources, but as Johan Rockstrom reminds us, our advances also give us the science to recognize this and change behavior. His research has found nine planetary boundaries that can guide us in protecting our planet's many overlapping ecosystems. If Earth is a self-regulating system, it's clear that human activity is capable of disrupting it. Johan Rockstrom has led a team of scientists to define the nine Earth systems that need to be kept within bounds for Earth to keep itself in balance");
                    sw.WriteLine("Louise Fresco shows us why we should celebrate mass-produced, supermarket-style white bread. She says environmentally sound mass production will feed the world, yet leave a role for small bakeries and traditional methods. A powerful thinker and globe-trotting advisor on sustainability, Louise Fresco says it's time to think of food as a topic of social and economic importance on par with oil -- that responsible agriculture and food consumption are crucial to world stability");
                    sw.WriteLine("In James Howard Kunstler's view, public spaces should be inspired centers of civic life and the physical manifestation of the common good. Instead, he argues, what we have in America is a nation of places not worth caring about. James Howard Kunstler may be the world’s most outspoken critic of suburban sprawl. He believes the end of the fossil fuels era will soon force a return to smaller-scale, agrarian communities -- and an overhaul of the most destructive features of postwar society.");
                    sw.WriteLine("Here's a powerful provocation from artist Jae Rhim Lee. Can we commit our bodies to a cleaner, greener Earth, even after death? Naturally -- using a special burial suit seeded with pollution-gobbling mushrooms. Yes, this just might be the strangest TEDTalk you'll ever see ... Artist and TED Fellow Jae Rhim Lee re-imagines the relationships between the body and the world");
                    sw.WriteLine("The gharial and king cobra are two of India's most iconic reptiles, and they're endangered because of polluted waterways. Conservationist Romulus Whitaker shows rare footage of these magnificent animals and urges us to save the rivers that sustain their lives and our own.Romulus Whitaker is a scientist and conservationist who slings around the globe to study and protect reptiles. ");
                    sw.WriteLine("Speaking as both an astronomer and a concerned member of the human race, Sir Martin Rees examines our planet and its future from a cosmic perspective. He urges action to prevent dark consequences from our scientific and technological development. Martin Rees, one of the world's most eminent astronomers, is a professor of cosmology and astrophysics at the University of Cambridge and the UK's Astronomer Royal. He is one of our key thinkers on the future of humanity in the cosmos.");
                    sw.Close();
                    aFile.Close();
                }
            }

            if (length == 4 || length == 3 || length == 1)
            {
                if (Next == "Sports")
                {
                    Sports_1 frm = new Sports_1(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Politics")
                {
                    Politics frm = new Politics(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Medical")
                {
                    Medical frm = new Medical(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Science")
                {
                    Science frm = new Science(NewUserSlections);
                    frm.Show();
                }
                else
                {
                    Finish frm = new Finish();
                    frm.Show();
                }
            }

                else
                {
                    Finish frm = new Finish();
                    frm.Show();
                }
            this.Close();
        }
コード例 #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                string Watch_fileLoc = Program._path + "Watch.txt";
                string Not_Watch_fileLoc = Program._path + "Not_Watch.txt";
                FileStream aFile = new FileStream(Watch_fileLoc, FileMode.Create, FileAccess.Write);
                FileStream nFile = new FileStream(Not_Watch_fileLoc, FileMode.Create, FileAccess.Write);
                aFile.Close();
                nFile.Close();
            }
            catch (Exception)
            {
                MessageBox.Show("Error creating intial files at Input Data folder. Make sure there are no files open.");
                Application.Exit();
            }

            string selections = "";
            int NumberOfSelections = 0;

            if (Technology.Checked)
            {
                selections = selections + "," + "Technology";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (Entertainment.Checked)
            {
                selections = selections + "," + "Entertainment";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (Business.Checked)
            {
                selections = selections + "," + "Business";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (Religious.Checked)
            {
                selections = selections + "," + "Religious";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (Environment.Checked)
            {
                selections = selections + "," + "Environment";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (Sports.Checked)
            {
                selections = selections + "," + "Sports";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (Politics.Checked)
            {
                selections = selections + "," + "Politics";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (Medical.Checked)
            {
                selections = selections + "," + "Medical";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (Science.Checked)
            {
                selections = selections + "," + "Science";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (NumberOfSelections > 3)
                MessageBox.Show("Please select only THREE categories");

            else if (NumberOfSelections < 1)
                MessageBox.Show("Please select at least ONE categories");

            else if (Technology.Checked)
            {
                Technology_1 frm = new Technology_1(selections);
                frm.Show();
                this.Close();
            }
             else if (Entertainment.Checked)
            {
                Entertainment_1 frm = new Entertainment_1(selections);
                frm.Show();
                this.Close();
            }
             else if (Business.Checked)
            {
                Business frm = new Business(selections);
                frm.Show();
                this.Close();
            }
             else if (Religious.Checked)
            {
                Religious_1 frm = new Religious_1(selections);
                frm.Show();
                this.Close();
            }
             else if (Environment.Checked)
            {
                Environment frm = new Environment(selections);
                frm.Show();
                this.Close();
            }
             else if (Sports.Checked)
            {
                Sports_1 frm = new Sports_1(selections);
                frm.Show();
                this.Close();
            }
             else if (Politics.Checked)
            {
                Politics frm = new Politics(selections);
                frm.Show();
                this.Close();
            }
            else if (Medical.Checked)
            {
                Medical frm = new Medical(selections);
                frm.Show();
                this.Close();
            }
            else if (Science.Checked)
            {
                Science frm = new Science(selections);
                frm.Show();
                this.Close();
            }
        }
コード例 #5
0
        private void Entertainment_btn1_Click(object sender, EventArgs e)
        {
            if (RB1.Checked)
            {
                if (!File.Exists(Watch_fileLoc))
                {
                    FileStream   aFile = new FileStream(Watch_fileLoc, FileMode.Create, FileAccess.Write);
                    StreamWriter sw    = new StreamWriter(aFile);
                    sw.WriteLine("Human growth has strained the Earth's resources, but as Johan Rockstrom reminds us, our advances also give us the science to recognize this and change behavior. His research has found nine planetary boundaries that can guide us in protecting our planet's many overlapping ecosystems. If Earth is a self-regulating system, it's clear that human activity is capable of disrupting it. Johan Rockstrom has led a team of scientists to define the nine Earth systems that need to be kept within bounds for Earth to keep itself in balance");
                    sw.WriteLine("Louise Fresco shows us why we should celebrate mass-produced, supermarket-style white bread. She says environmentally sound mass production will feed the world, yet leave a role for small bakeries and traditional methods. A powerful thinker and globe-trotting advisor on sustainability, Louise Fresco says it's time to think of food as a topic of social and economic importance on par with oil -- that responsible agriculture and food consumption are crucial to world stability");
                    sw.WriteLine("In James Howard Kunstler's view, public spaces should be inspired centers of civic life and the physical manifestation of the common good. Instead, he argues, what we have in America is a nation of places not worth caring about. James Howard Kunstler may be the world’s most outspoken critic of suburban sprawl. He believes the end of the fossil fuels era will soon force a return to smaller-scale, agrarian communities -- and an overhaul of the most destructive features of postwar society.");
                    sw.WriteLine("Here's a powerful provocation from artist Jae Rhim Lee. Can we commit our bodies to a cleaner, greener Earth, even after death? Naturally -- using a special burial suit seeded with pollution-gobbling mushrooms. Yes, this just might be the strangest TEDTalk you'll ever see ... Artist and TED Fellow Jae Rhim Lee re-imagines the relationships between the body and the world");
                    sw.WriteLine("The gharial and king cobra are two of India's most iconic reptiles, and they're endangered because of polluted waterways. Conservationist Romulus Whitaker shows rare footage of these magnificent animals and urges us to save the rivers that sustain their lives and our own.Romulus Whitaker is a scientist and conservationist who slings around the globe to study and protect reptiles. ");
                    sw.WriteLine("Speaking as both an astronomer and a concerned member of the human race, Sir Martin Rees examines our planet and its future from a cosmic perspective. He urges action to prevent dark consequences from our scientific and technological development. Martin Rees, one of the world's most eminent astronomers, is a professor of cosmology and astrophysics at the University of Cambridge and the UK's Astronomer Royal. He is one of our key thinkers on the future of humanity in the cosmos.");
                    sw.Close();
                    aFile.Close();
                }
                else
                {
                    FileStream   aFile = new FileStream(Watch_fileLoc, FileMode.Append, FileAccess.Write);
                    StreamWriter sw    = new StreamWriter(aFile);
                    sw.WriteLine("Human growth has strained the Earth's resources, but as Johan Rockstrom reminds us, our advances also give us the science to recognize this and change behavior. His research has found nine planetary boundaries that can guide us in protecting our planet's many overlapping ecosystems. If Earth is a self-regulating system, it's clear that human activity is capable of disrupting it. Johan Rockstrom has led a team of scientists to define the nine Earth systems that need to be kept within bounds for Earth to keep itself in balance");
                    sw.WriteLine("Louise Fresco shows us why we should celebrate mass-produced, supermarket-style white bread. She says environmentally sound mass production will feed the world, yet leave a role for small bakeries and traditional methods. A powerful thinker and globe-trotting advisor on sustainability, Louise Fresco says it's time to think of food as a topic of social and economic importance on par with oil -- that responsible agriculture and food consumption are crucial to world stability");
                    sw.WriteLine("In James Howard Kunstler's view, public spaces should be inspired centers of civic life and the physical manifestation of the common good. Instead, he argues, what we have in America is a nation of places not worth caring about. James Howard Kunstler may be the world’s most outspoken critic of suburban sprawl. He believes the end of the fossil fuels era will soon force a return to smaller-scale, agrarian communities -- and an overhaul of the most destructive features of postwar society.");
                    sw.WriteLine("Here's a powerful provocation from artist Jae Rhim Lee. Can we commit our bodies to a cleaner, greener Earth, even after death? Naturally -- using a special burial suit seeded with pollution-gobbling mushrooms. Yes, this just might be the strangest TEDTalk you'll ever see ... Artist and TED Fellow Jae Rhim Lee re-imagines the relationships between the body and the world");
                    sw.WriteLine("The gharial and king cobra are two of India's most iconic reptiles, and they're endangered because of polluted waterways. Conservationist Romulus Whitaker shows rare footage of these magnificent animals and urges us to save the rivers that sustain their lives and our own.Romulus Whitaker is a scientist and conservationist who slings around the globe to study and protect reptiles. ");
                    sw.WriteLine("Speaking as both an astronomer and a concerned member of the human race, Sir Martin Rees examines our planet and its future from a cosmic perspective. He urges action to prevent dark consequences from our scientific and technological development. Martin Rees, one of the world's most eminent astronomers, is a professor of cosmology and astrophysics at the University of Cambridge and the UK's Astronomer Royal. He is one of our key thinkers on the future of humanity in the cosmos.");
                    sw.Close();
                    aFile.Close();
                }
            }

            else if (RB2.Checked)
            {
                if (!File.Exists(Not_Watch_fileLoc))
                {
                    FileStream   aFile = new FileStream(Not_Watch_fileLoc, FileMode.Create, FileAccess.Write);
                    StreamWriter sw    = new StreamWriter(aFile);
                    sw.WriteLine("Human growth has strained the Earth's resources, but as Johan Rockstrom reminds us, our advances also give us the science to recognize this and change behavior. His research has found nine planetary boundaries that can guide us in protecting our planet's many overlapping ecosystems. If Earth is a self-regulating system, it's clear that human activity is capable of disrupting it. Johan Rockstrom has led a team of scientists to define the nine Earth systems that need to be kept within bounds for Earth to keep itself in balance");
                    sw.WriteLine("Louise Fresco shows us why we should celebrate mass-produced, supermarket-style white bread. She says environmentally sound mass production will feed the world, yet leave a role for small bakeries and traditional methods. A powerful thinker and globe-trotting advisor on sustainability, Louise Fresco says it's time to think of food as a topic of social and economic importance on par with oil -- that responsible agriculture and food consumption are crucial to world stability");
                    sw.WriteLine("In James Howard Kunstler's view, public spaces should be inspired centers of civic life and the physical manifestation of the common good. Instead, he argues, what we have in America is a nation of places not worth caring about. James Howard Kunstler may be the world’s most outspoken critic of suburban sprawl. He believes the end of the fossil fuels era will soon force a return to smaller-scale, agrarian communities -- and an overhaul of the most destructive features of postwar society.");
                    sw.WriteLine("Here's a powerful provocation from artist Jae Rhim Lee. Can we commit our bodies to a cleaner, greener Earth, even after death? Naturally -- using a special burial suit seeded with pollution-gobbling mushrooms. Yes, this just might be the strangest TEDTalk you'll ever see ... Artist and TED Fellow Jae Rhim Lee re-imagines the relationships between the body and the world");
                    sw.WriteLine("The gharial and king cobra are two of India's most iconic reptiles, and they're endangered because of polluted waterways. Conservationist Romulus Whitaker shows rare footage of these magnificent animals and urges us to save the rivers that sustain their lives and our own.Romulus Whitaker is a scientist and conservationist who slings around the globe to study and protect reptiles. ");
                    sw.WriteLine("Speaking as both an astronomer and a concerned member of the human race, Sir Martin Rees examines our planet and its future from a cosmic perspective. He urges action to prevent dark consequences from our scientific and technological development. Martin Rees, one of the world's most eminent astronomers, is a professor of cosmology and astrophysics at the University of Cambridge and the UK's Astronomer Royal. He is one of our key thinkers on the future of humanity in the cosmos.");
                    sw.Close();
                    aFile.Close();
                }
                else
                {
                    FileStream   aFile = new FileStream(Not_Watch_fileLoc, FileMode.Append, FileAccess.Write);
                    StreamWriter sw    = new StreamWriter(aFile);
                    sw.WriteLine("Human growth has strained the Earth's resources, but as Johan Rockstrom reminds us, our advances also give us the science to recognize this and change behavior. His research has found nine planetary boundaries that can guide us in protecting our planet's many overlapping ecosystems. If Earth is a self-regulating system, it's clear that human activity is capable of disrupting it. Johan Rockstrom has led a team of scientists to define the nine Earth systems that need to be kept within bounds for Earth to keep itself in balance");
                    sw.WriteLine("Louise Fresco shows us why we should celebrate mass-produced, supermarket-style white bread. She says environmentally sound mass production will feed the world, yet leave a role for small bakeries and traditional methods. A powerful thinker and globe-trotting advisor on sustainability, Louise Fresco says it's time to think of food as a topic of social and economic importance on par with oil -- that responsible agriculture and food consumption are crucial to world stability");
                    sw.WriteLine("In James Howard Kunstler's view, public spaces should be inspired centers of civic life and the physical manifestation of the common good. Instead, he argues, what we have in America is a nation of places not worth caring about. James Howard Kunstler may be the world’s most outspoken critic of suburban sprawl. He believes the end of the fossil fuels era will soon force a return to smaller-scale, agrarian communities -- and an overhaul of the most destructive features of postwar society.");
                    sw.WriteLine("Here's a powerful provocation from artist Jae Rhim Lee. Can we commit our bodies to a cleaner, greener Earth, even after death? Naturally -- using a special burial suit seeded with pollution-gobbling mushrooms. Yes, this just might be the strangest TEDTalk you'll ever see ... Artist and TED Fellow Jae Rhim Lee re-imagines the relationships between the body and the world");
                    sw.WriteLine("The gharial and king cobra are two of India's most iconic reptiles, and they're endangered because of polluted waterways. Conservationist Romulus Whitaker shows rare footage of these magnificent animals and urges us to save the rivers that sustain their lives and our own.Romulus Whitaker is a scientist and conservationist who slings around the globe to study and protect reptiles. ");
                    sw.WriteLine("Speaking as both an astronomer and a concerned member of the human race, Sir Martin Rees examines our planet and its future from a cosmic perspective. He urges action to prevent dark consequences from our scientific and technological development. Martin Rees, one of the world's most eminent astronomers, is a professor of cosmology and astrophysics at the University of Cambridge and the UK's Astronomer Royal. He is one of our key thinkers on the future of humanity in the cosmos.");
                    sw.Close();
                    aFile.Close();
                }
            }

            if (length == 4 || length == 3 || length == 1)
            {
                if (Next == "Sports")
                {
                    Sports_1 frm = new Sports_1(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Politics")
                {
                    Politics frm = new Politics(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Medical")
                {
                    Medical frm = new Medical(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Science")
                {
                    Science frm = new Science(NewUserSlections);
                    frm.Show();
                }
                else
                {
                    Finish frm = new Finish();
                    frm.Show();
                }
            }

            else
            {
                Finish frm = new Finish();
                frm.Show();
            }
            this.Close();
        }
コード例 #6
0
        private void Technology_btn1_Click(object sender, EventArgs e)
        {
            if (RB1.Checked)
            {
                if (!File.Exists(Watch_fileLoc))
                {
                    FileStream aFile = new FileStream(Watch_fileLoc, FileMode.Create, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(aFile);
                    sw.WriteLine("Researcher Kwabena Boahen is looking for ways to mimic the brain's supercomputing powers in silicon -- because the messy, redundant processes inside our heads actually make for a small, light, superfast computer. Kwabena Boahen wants to understand how brains work -- and to build a computer that works like the brain by reverse-engineering the nervous system. His group at Stanford is developing Neurogrid, a hardware platform that will emulate the cortex’s inner workings");
                    sw.WriteLine("Historian George Dyson tells stories from the birth of the modern computer -- from its 17th-century origins to the hilarious notebooks of some early computer engineers.A historian and philosopher of science, George Dyson takes a clear-eyed and deeply researched view of our recent scientific past -- while showing where it may lead us.");
                    sw.WriteLine(" David McCandless turns complex data sets (like worldwide military spending, media buzz, Facebook status updates) into beautiful, simple diagrams that tease out unseen patterns and connections. Good design, he suggests, is the best way to navigate information glut -- and it may just change the way we see the world. David McCandless draws beautiful conclusions from complex datasets -- thus revealing unexpected insights into our world");
                    sw.WriteLine("With all the intensity and brilliance for which he is known, Alan Kay envisions better techniques for teaching kids by using computers to illustrate experience in ways -– mathematically and scientifically -- that only computers can. One of the true luminaries of personal computing, Alan Kay conceived of laptops and graphical interfaces years before they were realized. At XeroxPARC, Apple, HP and Disney, he has developed tools for improving the mind.");
                    sw.WriteLine("Technology is evolving us, says Amber Case, as we become a screen-staring, button-clicking new version of h**o sapiens. We now rely on external brains (cell phones and computers) to communicate, remember, even live out secondary lives. But will these machines ultimately connect or conquer us? Case offers surprising insight into our cyborg selves. Amber Case studies the symbiotic interactions between humans and machines -- and considers how our values and culture are being shaped by living lives increasingly mediated by high technology");
                    sw.WriteLine("Computer science began in the '30s ... the 1830s. John Graham-Cumming tells the story of Charles Babbage's mechanical, steam-powered analytical engine and how Ada Lovelace, mathematician and daughter of Lord Byron, saw beyond its simple computational abilities to imagine the future of computers.  (Recorded at TEDxImperialCollege) Computer programmer John Graham-Cumming keeps geek history alive by raising awareness for it's heroes and their inventions");
                    sw.Close();
                    aFile.Close();
                }
                else
                {
                    FileStream aFile = new FileStream(Watch_fileLoc, FileMode.Append, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(aFile);
                    sw.WriteLine("Researcher Kwabena Boahen is looking for ways to mimic the brain's supercomputing powers in silicon -- because the messy, redundant processes inside our heads actually make for a small, light, superfast computer. Kwabena Boahen wants to understand how brains work -- and to build a computer that works like the brain by reverse-engineering the nervous system. His group at Stanford is developing Neurogrid, a hardware platform that will emulate the cortex’s inner workings");
                    sw.WriteLine("Historian George Dyson tells stories from the birth of the modern computer -- from its 17th-century origins to the hilarious notebooks of some early computer engineers.A historian and philosopher of science, George Dyson takes a clear-eyed and deeply researched view of our recent scientific past -- while showing where it may lead us.");
                    sw.WriteLine(" David McCandless turns complex data sets (like worldwide military spending, media buzz, Facebook status updates) into beautiful, simple diagrams that tease out unseen patterns and connections. Good design, he suggests, is the best way to navigate information glut -- and it may just change the way we see the world. David McCandless draws beautiful conclusions from complex datasets -- thus revealing unexpected insights into our world");
                    sw.WriteLine("With all the intensity and brilliance for which he is known, Alan Kay envisions better techniques for teaching kids by using computers to illustrate experience in ways -– mathematically and scientifically -- that only computers can. One of the true luminaries of personal computing, Alan Kay conceived of laptops and graphical interfaces years before they were realized. At XeroxPARC, Apple, HP and Disney, he has developed tools for improving the mind.");
                    sw.WriteLine("Technology is evolving us, says Amber Case, as we become a screen-staring, button-clicking new version of h**o sapiens. We now rely on external brains (cell phones and computers) to communicate, remember, even live out secondary lives. But will these machines ultimately connect or conquer us? Case offers surprising insight into our cyborg selves. Amber Case studies the symbiotic interactions between humans and machines -- and considers how our values and culture are being shaped by living lives increasingly mediated by high technology");
                    sw.WriteLine("Computer science began in the '30s ... the 1830s. John Graham-Cumming tells the story of Charles Babbage's mechanical, steam-powered analytical engine and how Ada Lovelace, mathematician and daughter of Lord Byron, saw beyond its simple computational abilities to imagine the future of computers.  (Recorded at TEDxImperialCollege) Computer programmer John Graham-Cumming keeps geek history alive by raising awareness for it's heroes and their inventions");
                    sw.Close();
                    aFile.Close();
                }
            }

            else if (RB2.Checked)
            {
                if (!File.Exists(Not_Watch_fileLoc))
                {
                    FileStream aFile = new FileStream(Not_Watch_fileLoc, FileMode.Create, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(aFile);
                    sw.WriteLine("Researcher Kwabena Boahen is looking for ways to mimic the brain's supercomputing powers in silicon -- because the messy, redundant processes inside our heads actually make for a small, light, superfast computer. Kwabena Boahen wants to understand how brains work -- and to build a computer that works like the brain by reverse-engineering the nervous system. His group at Stanford is developing Neurogrid, a hardware platform that will emulate the cortex’s inner workings");
                    sw.WriteLine("Historian George Dyson tells stories from the birth of the modern computer -- from its 17th-century origins to the hilarious notebooks of some early computer engineers.A historian and philosopher of science, George Dyson takes a clear-eyed and deeply researched view of our recent scientific past -- while showing where it may lead us.");
                    sw.WriteLine(" David McCandless turns complex data sets (like worldwide military spending, media buzz, Facebook status updates) into beautiful, simple diagrams that tease out unseen patterns and connections. Good design, he suggests, is the best way to navigate information glut -- and it may just change the way we see the world. David McCandless draws beautiful conclusions from complex datasets -- thus revealing unexpected insights into our world");
                    sw.WriteLine("With all the intensity and brilliance for which he is known, Alan Kay envisions better techniques for teaching kids by using computers to illustrate experience in ways -– mathematically and scientifically -- that only computers can. One of the true luminaries of personal computing, Alan Kay conceived of laptops and graphical interfaces years before they were realized. At XeroxPARC, Apple, HP and Disney, he has developed tools for improving the mind.");
                    sw.WriteLine("Technology is evolving us, says Amber Case, as we become a screen-staring, button-clicking new version of h**o sapiens. We now rely on external brains (cell phones and computers) to communicate, remember, even live out secondary lives. But will these machines ultimately connect or conquer us? Case offers surprising insight into our cyborg selves. Amber Case studies the symbiotic interactions between humans and machines -- and considers how our values and culture are being shaped by living lives increasingly mediated by high technology");
                    sw.WriteLine("Computer science began in the '30s ... the 1830s. John Graham-Cumming tells the story of Charles Babbage's mechanical, steam-powered analytical engine and how Ada Lovelace, mathematician and daughter of Lord Byron, saw beyond its simple computational abilities to imagine the future of computers.  (Recorded at TEDxImperialCollege) Computer programmer John Graham-Cumming keeps geek history alive by raising awareness for it's heroes and their inventions");
                    sw.Close();
                    aFile.Close();
                }
                else
                {
                    FileStream aFile = new FileStream(Not_Watch_fileLoc, FileMode.Append, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(aFile);
                    sw.WriteLine("Researcher Kwabena Boahen is looking for ways to mimic the brain's supercomputing powers in silicon -- because the messy, redundant processes inside our heads actually make for a small, light, superfast computer. Kwabena Boahen wants to understand how brains work -- and to build a computer that works like the brain by reverse-engineering the nervous system. His group at Stanford is developing Neurogrid, a hardware platform that will emulate the cortex’s inner workings");
                    sw.WriteLine("Historian George Dyson tells stories from the birth of the modern computer -- from its 17th-century origins to the hilarious notebooks of some early computer engineers.A historian and philosopher of science, George Dyson takes a clear-eyed and deeply researched view of our recent scientific past -- while showing where it may lead us.");
                    sw.WriteLine(" David McCandless turns complex data sets (like worldwide military spending, media buzz, Facebook status updates) into beautiful, simple diagrams that tease out unseen patterns and connections. Good design, he suggests, is the best way to navigate information glut -- and it may just change the way we see the world. David McCandless draws beautiful conclusions from complex datasets -- thus revealing unexpected insights into our world");
                    sw.WriteLine("With all the intensity and brilliance for which he is known, Alan Kay envisions better techniques for teaching kids by using computers to illustrate experience in ways -– mathematically and scientifically -- that only computers can. One of the true luminaries of personal computing, Alan Kay conceived of laptops and graphical interfaces years before they were realized. At XeroxPARC, Apple, HP and Disney, he has developed tools for improving the mind.");
                    sw.WriteLine("Technology is evolving us, says Amber Case, as we become a screen-staring, button-clicking new version of h**o sapiens. We now rely on external brains (cell phones and computers) to communicate, remember, even live out secondary lives. But will these machines ultimately connect or conquer us? Case offers surprising insight into our cyborg selves. Amber Case studies the symbiotic interactions between humans and machines -- and considers how our values and culture are being shaped by living lives increasingly mediated by high technology");
                    sw.WriteLine("Computer science began in the '30s ... the 1830s. John Graham-Cumming tells the story of Charles Babbage's mechanical, steam-powered analytical engine and how Ada Lovelace, mathematician and daughter of Lord Byron, saw beyond its simple computational abilities to imagine the future of computers.  (Recorded at TEDxImperialCollege) Computer programmer John Graham-Cumming keeps geek history alive by raising awareness for it's heroes and their inventions");
                    sw.Close();
                    aFile.Close();
                }
            }

            if (length == 4 || length == 3 || length == 1)
            {
                if (Next == "Entertainment")
                {
                    Entertainment_1 frm = new Entertainment_1(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Business")
                {
                    Business frm = new Business(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Religious")
                {
                    Religious_1 frm = new Religious_1(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Environment")
                {
                    Environment frm = new Environment(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Sports")
                {
                    Sports_1 frm = new Sports_1(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Politics")
                {
                    Politics frm = new Politics(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Medical")
                {
                    Medical frm = new Medical(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Science")
                {
                    Science frm = new Science(NewUserSlections);
                    frm.Show();
                }

                else
                {
                    Finish frm = new Finish();
                    frm.Show();
                }
            }

            else
            {
                Finish frm = new Finish();
                frm.Show();
            }
            this.Close();
        }
コード例 #7
0
        private void Entertainment_btn1_Click(object sender, EventArgs e)
        {
            if (RB1.Checked)
            {
                if (!File.Exists(Watch_fileLoc))
                {
                    FileStream   aFile = new FileStream(Watch_fileLoc, FileMode.Create, FileAccess.Write);
                    StreamWriter sw    = new StreamWriter(aFile);
                    sw.WriteLine("At TED@MotorCity, Lisa Gansky, author of The Mesh, talks about a future of business that's about sharing all kinds of stuff, either via smart and tech-enabled rental or, more boldly, peer-to-peer. Examples across industries -- from music to cars -- show how close we are to this meshy future.Lisa Gansky is the author of The Mesh: Why the Future of Business Is Sharing, and the instigator behind the Mesh Directory (www.meshing.it).");
                    sw.WriteLine("At his carpet company, Ray Anderson has increased sales and doubled profits while turning the traditional take / make / waste. industrial system on its head. In a gentle, understated way, he shares a powerful vision for sustainable commerce.Ray Anderson founded the company that makes covetable Flor carpeting. But behind the fresh design is a decades-deep commitment to sustainable ways of doing business -- culminating in the Mission Zero plan. ");
                    sw.WriteLine("When the dotcom bubble burst, hotelier Chip Conley went in search of a business model based on happiness. In an old friendship with an employee and in the wisdom of a Buddhist king, he learned that success comes from what you count. Chip Conley creates joyful hotels, where he hopes his employees, customers and investors alike can realize their full potential. His books share that philosophy with the wider world");
                    sw.WriteLine("John Gerzema says there's an upside to the recent financial crisis -- the opportunity for positive change. In talk talk, he identifies four major cultural shifts driving new consumer behavior and shows how businesses are evolving to connect with thoughtful spending. (Filmed at TEDxKC.) John Gerzema uses data, analysis and decades of experience to identify trends and develop daring new approaches to advertising");
                    sw.WriteLine("Ten percent of American businesses disappear every year. … It’s far higher than the failure rate of, say, Americans. Ten percent of Americans don’t disappear every year. Which leads us to conclude American businesses fail faster than Americans, and therefore American businesses are evolving faster than Americans");
                    sw.WriteLine("Economics writer Tim Harford studies complex systems -- and finds a surprising link among the successful ones: they were built through trial and error. In this sparkling talk from TEDGlobal 2011, he asks us to embrace our randomness and start making better mistakes.Tim Harford's writings reveal the economic ideas behind everyday experiences");
                    sw.Close();
                    aFile.Close();
                }
                else
                {
                    FileStream   aFile = new FileStream(Watch_fileLoc, FileMode.Append, FileAccess.Write);
                    StreamWriter sw    = new StreamWriter(aFile);
                    sw.WriteLine("At TED@MotorCity, Lisa Gansky, author of The Mesh, talks about a future of business that's about sharing all kinds of stuff, either via smart and tech-enabled rental or, more boldly, peer-to-peer. Examples across industries -- from music to cars -- show how close we are to this meshy future.Lisa Gansky is the author of The Mesh: Why the Future of Business Is Sharing, and the instigator behind the Mesh Directory (www.meshing.it).");
                    sw.WriteLine("At his carpet company, Ray Anderson has increased sales and doubled profits while turning the traditional take / make / waste. industrial system on its head. In a gentle, understated way, he shares a powerful vision for sustainable commerce.Ray Anderson founded the company that makes covetable Flor carpeting. But behind the fresh design is a decades-deep commitment to sustainable ways of doing business -- culminating in the Mission Zero plan. ");
                    sw.WriteLine("When the dotcom bubble burst, hotelier Chip Conley went in search of a business model based on happiness. In an old friendship with an employee and in the wisdom of a Buddhist king, he learned that success comes from what you count. Chip Conley creates joyful hotels, where he hopes his employees, customers and investors alike can realize their full potential. His books share that philosophy with the wider world");
                    sw.WriteLine("John Gerzema says there's an upside to the recent financial crisis -- the opportunity for positive change. In talk talk, he identifies four major cultural shifts driving new consumer behavior and shows how businesses are evolving to connect with thoughtful spending. (Filmed at TEDxKC.) John Gerzema uses data, analysis and decades of experience to identify trends and develop daring new approaches to advertising");
                    sw.WriteLine("Ten percent of American businesses disappear every year. … It’s far higher than the failure rate of, say, Americans. Ten percent of Americans don’t disappear every year. Which leads us to conclude American businesses fail faster than Americans, and therefore American businesses are evolving faster than Americans");
                    sw.WriteLine("Economics writer Tim Harford studies complex systems -- and finds a surprising link among the successful ones: they were built through trial and error. In this sparkling talk from TEDGlobal 2011, he asks us to embrace our randomness and start making better mistakes.Tim Harford's writings reveal the economic ideas behind everyday experiences");
                    sw.Close();
                    aFile.Close();
                }
            }

            else if (RB2.Checked)
            {
                if (!File.Exists(Not_Watch_fileLoc))
                {
                    FileStream   aFile = new FileStream(Not_Watch_fileLoc, FileMode.Create, FileAccess.Write);
                    StreamWriter sw    = new StreamWriter(aFile);
                    sw.WriteLine("At TED@MotorCity, Lisa Gansky, author of The Mesh, talks about a future of business that's about sharing all kinds of stuff, either via smart and tech-enabled rental or, more boldly, peer-to-peer. Examples across industries -- from music to cars -- show how close we are to this meshy future.Lisa Gansky is the author of The Mesh: Why the Future of Business Is Sharing, and the instigator behind the Mesh Directory (www.meshing.it).");
                    sw.WriteLine("At his carpet company, Ray Anderson has increased sales and doubled profits while turning the traditional take / make / waste. industrial system on its head. In a gentle, understated way, he shares a powerful vision for sustainable commerce.Ray Anderson founded the company that makes covetable Flor carpeting. But behind the fresh design is a decades-deep commitment to sustainable ways of doing business -- culminating in the Mission Zero plan. ");
                    sw.WriteLine("When the dotcom bubble burst, hotelier Chip Conley went in search of a business model based on happiness. In an old friendship with an employee and in the wisdom of a Buddhist king, he learned that success comes from what you count. Chip Conley creates joyful hotels, where he hopes his employees, customers and investors alike can realize their full potential. His books share that philosophy with the wider world");
                    sw.WriteLine("John Gerzema says there's an upside to the recent financial crisis -- the opportunity for positive change. In talk talk, he identifies four major cultural shifts driving new consumer behavior and shows how businesses are evolving to connect with thoughtful spending. (Filmed at TEDxKC.) John Gerzema uses data, analysis and decades of experience to identify trends and develop daring new approaches to advertising");
                    sw.WriteLine("Ten percent of American businesses disappear every year. … It’s far higher than the failure rate of, say, Americans. Ten percent of Americans don’t disappear every year. Which leads us to conclude American businesses fail faster than Americans, and therefore American businesses are evolving faster than Americans");
                    sw.WriteLine("Economics writer Tim Harford studies complex systems -- and finds a surprising link among the successful ones: they were built through trial and error. In this sparkling talk from TEDGlobal 2011, he asks us to embrace our randomness and start making better mistakes.Tim Harford's writings reveal the economic ideas behind everyday experiences");
                    sw.Close();
                    aFile.Close();
                }
                else
                {
                    FileStream   aFile = new FileStream(Not_Watch_fileLoc, FileMode.Append, FileAccess.Write);
                    StreamWriter sw    = new StreamWriter(aFile);
                    sw.WriteLine("At TED@MotorCity, Lisa Gansky, author of The Mesh, talks about a future of business that's about sharing all kinds of stuff, either via smart and tech-enabled rental or, more boldly, peer-to-peer. Examples across industries -- from music to cars -- show how close we are to this meshy future.Lisa Gansky is the author of The Mesh: Why the Future of Business Is Sharing, and the instigator behind the Mesh Directory (www.meshing.it).");
                    sw.WriteLine("At his carpet company, Ray Anderson has increased sales and doubled profits while turning the traditional take / make / waste. industrial system on its head. In a gentle, understated way, he shares a powerful vision for sustainable commerce.Ray Anderson founded the company that makes covetable Flor carpeting. But behind the fresh design is a decades-deep commitment to sustainable ways of doing business -- culminating in the Mission Zero plan. ");
                    sw.WriteLine("When the dotcom bubble burst, hotelier Chip Conley went in search of a business model based on happiness. In an old friendship with an employee and in the wisdom of a Buddhist king, he learned that success comes from what you count. Chip Conley creates joyful hotels, where he hopes his employees, customers and investors alike can realize their full potential. His books share that philosophy with the wider world");
                    sw.WriteLine("John Gerzema says there's an upside to the recent financial crisis -- the opportunity for positive change. In talk talk, he identifies four major cultural shifts driving new consumer behavior and shows how businesses are evolving to connect with thoughtful spending. (Filmed at TEDxKC.) John Gerzema uses data, analysis and decades of experience to identify trends and develop daring new approaches to advertising");
                    sw.WriteLine("Ten percent of American businesses disappear every year. … It’s far higher than the failure rate of, say, Americans. Ten percent of Americans don’t disappear every year. Which leads us to conclude American businesses fail faster than Americans, and therefore American businesses are evolving faster than Americans");
                    sw.WriteLine("Economics writer Tim Harford studies complex systems -- and finds a surprising link among the successful ones: they were built through trial and error. In this sparkling talk from TEDGlobal 2011, he asks us to embrace our randomness and start making better mistakes.Tim Harford's writings reveal the economic ideas behind everyday experiences");
                    sw.Close();
                    aFile.Close();
                }
            }

            if (length == 4 || length == 3 || length == 1)
            {
                if (Next == "Religious")
                {
                    Religious_1 frm = new Religious_1(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Environment")
                {
                    Environment frm = new Environment(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Sports")
                {
                    Sports_1 frm = new Sports_1(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Politics")
                {
                    Politics frm = new Politics(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Medical")
                {
                    Medical frm = new Medical(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Science")
                {
                    Science frm = new Science(NewUserSlections);
                    frm.Show();
                }
                else
                {
                    Finish frm = new Finish();
                    frm.Show();
                }
            }

            else
            {
                Finish frm = new Finish();
                frm.Show();
            }
            this.Close();
        }
コード例 #8
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                string     Watch_fileLoc     = Program._path + "Watch.txt";
                string     Not_Watch_fileLoc = Program._path + "Not_Watch.txt";
                FileStream aFile             = new FileStream(Watch_fileLoc, FileMode.Create, FileAccess.Write);
                FileStream nFile             = new FileStream(Not_Watch_fileLoc, FileMode.Create, FileAccess.Write);
                aFile.Close();
                nFile.Close();
            }
            catch (Exception)
            {
                MessageBox.Show("Error creating intial files at Input Data folder. Make sure there are no files open.");
                Application.Exit();
            }


            string selections         = "";
            int    NumberOfSelections = 0;

            if (Technology.Checked)
            {
                selections         = selections + "," + "Technology";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (Entertainment.Checked)
            {
                selections         = selections + "," + "Entertainment";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (Business.Checked)
            {
                selections         = selections + "," + "Business";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (Religious.Checked)
            {
                selections         = selections + "," + "Religious";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (Environment.Checked)
            {
                selections         = selections + "," + "Environment";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (Sports.Checked)
            {
                selections         = selections + "," + "Sports";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (Politics.Checked)
            {
                selections         = selections + "," + "Politics";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (Medical.Checked)
            {
                selections         = selections + "," + "Medical";
                NumberOfSelections = NumberOfSelections + 1;
            }

            if (Science.Checked)
            {
                selections         = selections + "," + "Science";
                NumberOfSelections = NumberOfSelections + 1;
            }



            if (NumberOfSelections > 3)
            {
                MessageBox.Show("Please select only THREE categories");
            }

            else if (NumberOfSelections < 1)
            {
                MessageBox.Show("Please select at least ONE categories");
            }

            else if (Technology.Checked)
            {
                Technology_1 frm = new Technology_1(selections);
                frm.Show();
                this.Close();
            }
            else if (Entertainment.Checked)
            {
                Entertainment_1 frm = new Entertainment_1(selections);
                frm.Show();
                this.Close();
            }
            else if (Business.Checked)
            {
                Business frm = new Business(selections);
                frm.Show();
                this.Close();
            }
            else if (Religious.Checked)
            {
                Religious_1 frm = new Religious_1(selections);
                frm.Show();
                this.Close();
            }
            else if (Environment.Checked)
            {
                Environment frm = new Environment(selections);
                frm.Show();
                this.Close();
            }
            else if (Sports.Checked)
            {
                Sports_1 frm = new Sports_1(selections);
                frm.Show();
                this.Close();
            }
            else if (Politics.Checked)
            {
                Politics frm = new Politics(selections);
                frm.Show();
                this.Close();
            }
            else if (Medical.Checked)
            {
                Medical frm = new Medical(selections);
                frm.Show();
                this.Close();
            }
            else if (Science.Checked)
            {
                Science frm = new Science(selections);
                frm.Show();
                this.Close();
            }
        }
コード例 #9
0
        private void Technology_btn1_Click(object sender, EventArgs e)
        {
            if (RB1.Checked)
            {
                if (!File.Exists(Watch_fileLoc))
                {
                    FileStream   aFile = new FileStream(Watch_fileLoc, FileMode.Create, FileAccess.Write);
                    StreamWriter sw    = new StreamWriter(aFile);
                    sw.WriteLine("Researcher Kwabena Boahen is looking for ways to mimic the brain's supercomputing powers in silicon -- because the messy, redundant processes inside our heads actually make for a small, light, superfast computer. Kwabena Boahen wants to understand how brains work -- and to build a computer that works like the brain by reverse-engineering the nervous system. His group at Stanford is developing Neurogrid, a hardware platform that will emulate the cortex’s inner workings");
                    sw.WriteLine("Historian George Dyson tells stories from the birth of the modern computer -- from its 17th-century origins to the hilarious notebooks of some early computer engineers.A historian and philosopher of science, George Dyson takes a clear-eyed and deeply researched view of our recent scientific past -- while showing where it may lead us.");
                    sw.WriteLine(" David McCandless turns complex data sets (like worldwide military spending, media buzz, Facebook status updates) into beautiful, simple diagrams that tease out unseen patterns and connections. Good design, he suggests, is the best way to navigate information glut -- and it may just change the way we see the world. David McCandless draws beautiful conclusions from complex datasets -- thus revealing unexpected insights into our world");
                    sw.WriteLine("With all the intensity and brilliance for which he is known, Alan Kay envisions better techniques for teaching kids by using computers to illustrate experience in ways -– mathematically and scientifically -- that only computers can. One of the true luminaries of personal computing, Alan Kay conceived of laptops and graphical interfaces years before they were realized. At XeroxPARC, Apple, HP and Disney, he has developed tools for improving the mind.");
                    sw.WriteLine("Technology is evolving us, says Amber Case, as we become a screen-staring, button-clicking new version of h**o sapiens. We now rely on external brains (cell phones and computers) to communicate, remember, even live out secondary lives. But will these machines ultimately connect or conquer us? Case offers surprising insight into our cyborg selves. Amber Case studies the symbiotic interactions between humans and machines -- and considers how our values and culture are being shaped by living lives increasingly mediated by high technology");
                    sw.WriteLine("Computer science began in the '30s ... the 1830s. John Graham-Cumming tells the story of Charles Babbage's mechanical, steam-powered analytical engine and how Ada Lovelace, mathematician and daughter of Lord Byron, saw beyond its simple computational abilities to imagine the future of computers.  (Recorded at TEDxImperialCollege) Computer programmer John Graham-Cumming keeps geek history alive by raising awareness for it's heroes and their inventions");
                    sw.Close();
                    aFile.Close();
                }
                else
                {
                    FileStream   aFile = new FileStream(Watch_fileLoc, FileMode.Append, FileAccess.Write);
                    StreamWriter sw    = new StreamWriter(aFile);
                    sw.WriteLine("Researcher Kwabena Boahen is looking for ways to mimic the brain's supercomputing powers in silicon -- because the messy, redundant processes inside our heads actually make for a small, light, superfast computer. Kwabena Boahen wants to understand how brains work -- and to build a computer that works like the brain by reverse-engineering the nervous system. His group at Stanford is developing Neurogrid, a hardware platform that will emulate the cortex’s inner workings");
                    sw.WriteLine("Historian George Dyson tells stories from the birth of the modern computer -- from its 17th-century origins to the hilarious notebooks of some early computer engineers.A historian and philosopher of science, George Dyson takes a clear-eyed and deeply researched view of our recent scientific past -- while showing where it may lead us.");
                    sw.WriteLine(" David McCandless turns complex data sets (like worldwide military spending, media buzz, Facebook status updates) into beautiful, simple diagrams that tease out unseen patterns and connections. Good design, he suggests, is the best way to navigate information glut -- and it may just change the way we see the world. David McCandless draws beautiful conclusions from complex datasets -- thus revealing unexpected insights into our world");
                    sw.WriteLine("With all the intensity and brilliance for which he is known, Alan Kay envisions better techniques for teaching kids by using computers to illustrate experience in ways -– mathematically and scientifically -- that only computers can. One of the true luminaries of personal computing, Alan Kay conceived of laptops and graphical interfaces years before they were realized. At XeroxPARC, Apple, HP and Disney, he has developed tools for improving the mind.");
                    sw.WriteLine("Technology is evolving us, says Amber Case, as we become a screen-staring, button-clicking new version of h**o sapiens. We now rely on external brains (cell phones and computers) to communicate, remember, even live out secondary lives. But will these machines ultimately connect or conquer us? Case offers surprising insight into our cyborg selves. Amber Case studies the symbiotic interactions between humans and machines -- and considers how our values and culture are being shaped by living lives increasingly mediated by high technology");
                    sw.WriteLine("Computer science began in the '30s ... the 1830s. John Graham-Cumming tells the story of Charles Babbage's mechanical, steam-powered analytical engine and how Ada Lovelace, mathematician and daughter of Lord Byron, saw beyond its simple computational abilities to imagine the future of computers.  (Recorded at TEDxImperialCollege) Computer programmer John Graham-Cumming keeps geek history alive by raising awareness for it's heroes and their inventions");
                    sw.Close();
                    aFile.Close();
                }
            }

            else if (RB2.Checked)
            {
                if (!File.Exists(Not_Watch_fileLoc))
                {
                    FileStream   aFile = new FileStream(Not_Watch_fileLoc, FileMode.Create, FileAccess.Write);
                    StreamWriter sw    = new StreamWriter(aFile);
                    sw.WriteLine("Researcher Kwabena Boahen is looking for ways to mimic the brain's supercomputing powers in silicon -- because the messy, redundant processes inside our heads actually make for a small, light, superfast computer. Kwabena Boahen wants to understand how brains work -- and to build a computer that works like the brain by reverse-engineering the nervous system. His group at Stanford is developing Neurogrid, a hardware platform that will emulate the cortex’s inner workings");
                    sw.WriteLine("Historian George Dyson tells stories from the birth of the modern computer -- from its 17th-century origins to the hilarious notebooks of some early computer engineers.A historian and philosopher of science, George Dyson takes a clear-eyed and deeply researched view of our recent scientific past -- while showing where it may lead us.");
                    sw.WriteLine(" David McCandless turns complex data sets (like worldwide military spending, media buzz, Facebook status updates) into beautiful, simple diagrams that tease out unseen patterns and connections. Good design, he suggests, is the best way to navigate information glut -- and it may just change the way we see the world. David McCandless draws beautiful conclusions from complex datasets -- thus revealing unexpected insights into our world");
                    sw.WriteLine("With all the intensity and brilliance for which he is known, Alan Kay envisions better techniques for teaching kids by using computers to illustrate experience in ways -– mathematically and scientifically -- that only computers can. One of the true luminaries of personal computing, Alan Kay conceived of laptops and graphical interfaces years before they were realized. At XeroxPARC, Apple, HP and Disney, he has developed tools for improving the mind.");
                    sw.WriteLine("Technology is evolving us, says Amber Case, as we become a screen-staring, button-clicking new version of h**o sapiens. We now rely on external brains (cell phones and computers) to communicate, remember, even live out secondary lives. But will these machines ultimately connect or conquer us? Case offers surprising insight into our cyborg selves. Amber Case studies the symbiotic interactions between humans and machines -- and considers how our values and culture are being shaped by living lives increasingly mediated by high technology");
                    sw.WriteLine("Computer science began in the '30s ... the 1830s. John Graham-Cumming tells the story of Charles Babbage's mechanical, steam-powered analytical engine and how Ada Lovelace, mathematician and daughter of Lord Byron, saw beyond its simple computational abilities to imagine the future of computers.  (Recorded at TEDxImperialCollege) Computer programmer John Graham-Cumming keeps geek history alive by raising awareness for it's heroes and their inventions");
                    sw.Close();
                    aFile.Close();
                }
                else
                {
                    FileStream   aFile = new FileStream(Not_Watch_fileLoc, FileMode.Append, FileAccess.Write);
                    StreamWriter sw    = new StreamWriter(aFile);
                    sw.WriteLine("Researcher Kwabena Boahen is looking for ways to mimic the brain's supercomputing powers in silicon -- because the messy, redundant processes inside our heads actually make for a small, light, superfast computer. Kwabena Boahen wants to understand how brains work -- and to build a computer that works like the brain by reverse-engineering the nervous system. His group at Stanford is developing Neurogrid, a hardware platform that will emulate the cortex’s inner workings");
                    sw.WriteLine("Historian George Dyson tells stories from the birth of the modern computer -- from its 17th-century origins to the hilarious notebooks of some early computer engineers.A historian and philosopher of science, George Dyson takes a clear-eyed and deeply researched view of our recent scientific past -- while showing where it may lead us.");
                    sw.WriteLine(" David McCandless turns complex data sets (like worldwide military spending, media buzz, Facebook status updates) into beautiful, simple diagrams that tease out unseen patterns and connections. Good design, he suggests, is the best way to navigate information glut -- and it may just change the way we see the world. David McCandless draws beautiful conclusions from complex datasets -- thus revealing unexpected insights into our world");
                    sw.WriteLine("With all the intensity and brilliance for which he is known, Alan Kay envisions better techniques for teaching kids by using computers to illustrate experience in ways -– mathematically and scientifically -- that only computers can. One of the true luminaries of personal computing, Alan Kay conceived of laptops and graphical interfaces years before they were realized. At XeroxPARC, Apple, HP and Disney, he has developed tools for improving the mind.");
                    sw.WriteLine("Technology is evolving us, says Amber Case, as we become a screen-staring, button-clicking new version of h**o sapiens. We now rely on external brains (cell phones and computers) to communicate, remember, even live out secondary lives. But will these machines ultimately connect or conquer us? Case offers surprising insight into our cyborg selves. Amber Case studies the symbiotic interactions between humans and machines -- and considers how our values and culture are being shaped by living lives increasingly mediated by high technology");
                    sw.WriteLine("Computer science began in the '30s ... the 1830s. John Graham-Cumming tells the story of Charles Babbage's mechanical, steam-powered analytical engine and how Ada Lovelace, mathematician and daughter of Lord Byron, saw beyond its simple computational abilities to imagine the future of computers.  (Recorded at TEDxImperialCollege) Computer programmer John Graham-Cumming keeps geek history alive by raising awareness for it's heroes and their inventions");
                    sw.Close();
                    aFile.Close();
                }
            }

            if (length == 4 || length == 3 || length == 1)
            {
                if (Next == "Entertainment")
                {
                    Entertainment_1 frm = new Entertainment_1(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Business")
                {
                    Business frm = new Business(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Religious")
                {
                    Religious_1 frm = new Religious_1(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Environment")
                {
                    Environment frm = new Environment(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Sports")
                {
                    Sports_1 frm = new Sports_1(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Politics")
                {
                    Politics frm = new Politics(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Medical")
                {
                    Medical frm = new Medical(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Science")
                {
                    Science frm = new Science(NewUserSlections);
                    frm.Show();
                }

                else
                {
                    Finish frm = new Finish();
                    frm.Show();
                }
            }

            else
            {
                Finish frm = new Finish();
                frm.Show();
            }
            this.Close();
        }
コード例 #10
0
        private void Entertainment_btn1_Click(object sender, EventArgs e)
        {
            if (RB1.Checked)
            {
                if (!File.Exists(Watch_fileLoc))
                {
                    FileStream aFile = new FileStream(Watch_fileLoc, FileMode.Create, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(aFile);
                    sw.WriteLine("Politicians are strange creatures, says politician Omar Ahmad. And the best way to engage them on your pet issue is a monthly handwritten letter. Ahmad shows why old-fashioned correspondence is more effective than email, phone or even writing a check -- and shares the four simple steps to writing a letter that works.An internet infrastructure maven and activist, Omar Ahmad was the mayor of San Carlos, California");
                    sw.WriteLine("Noah Feldman makes a searing case that both politics and religion -- whatever their differences -- are similar technologies, designed to efficiently connect and manage any group of people. Noah Feldman studies the intersection of religion, politics and law -- with a focus on how Islam meshes with modern democracy.");
                    sw.WriteLine("Political prisoners aren't the only ones being tortured -- the vast majority of judicial torture happens in ordinary cases, even in 'functioning' legal systems. Social activist Karen Tse shows how we can, and should, stand up and end the use of routine torture.In too many countries, it's still normal to torture prisoners for confessions and information. Karen Tse works to end that");
                    sw.WriteLine("Nate Silver has answers to controversial questions about race in politics: Did Obama's race hurt his votes in some places? Stats and myths collide in this fascinating talk that ends with a remarkable insight on how town planning can promote tolerance.Math whiz and baseball fan Nate Silver was mainly known for predicting outcomes in fantasy ballgames -- until his technique hit a home run calling the outcome of the 2008 election primaries");
                    sw.Close();
                    aFile.Close();
                }
                else
                {
                    FileStream aFile = new FileStream(Watch_fileLoc, FileMode.Append, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(aFile);
                    sw.WriteLine("Politicians are strange creatures, says politician Omar Ahmad. And the best way to engage them on your pet issue is a monthly handwritten letter. Ahmad shows why old-fashioned correspondence is more effective than email, phone or even writing a check -- and shares the four simple steps to writing a letter that works.An internet infrastructure maven and activist, Omar Ahmad was the mayor of San Carlos, California");
                    sw.WriteLine("Noah Feldman makes a searing case that both politics and religion -- whatever their differences -- are similar technologies, designed to efficiently connect and manage any group of people. Noah Feldman studies the intersection of religion, politics and law -- with a focus on how Islam meshes with modern democracy.");
                    sw.WriteLine("Political prisoners aren't the only ones being tortured -- the vast majority of judicial torture happens in ordinary cases, even in 'functioning' legal systems. Social activist Karen Tse shows how we can, and should, stand up and end the use of routine torture.In too many countries, it's still normal to torture prisoners for confessions and information. Karen Tse works to end that");
                    sw.WriteLine("Nate Silver has answers to controversial questions about race in politics: Did Obama's race hurt his votes in some places? Stats and myths collide in this fascinating talk that ends with a remarkable insight on how town planning can promote tolerance.Math whiz and baseball fan Nate Silver was mainly known for predicting outcomes in fantasy ballgames -- until his technique hit a home run calling the outcome of the 2008 election primaries");
                    sw.Close();
                    aFile.Close();
                }
            }

            else if (RB2.Checked)
            {
                if (!File.Exists(Not_Watch_fileLoc))
                {
                    FileStream aFile = new FileStream(Not_Watch_fileLoc, FileMode.Create, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(aFile);
                    sw.WriteLine("Politicians are strange creatures, says politician Omar Ahmad. And the best way to engage them on your pet issue is a monthly handwritten letter. Ahmad shows why old-fashioned correspondence is more effective than email, phone or even writing a check -- and shares the four simple steps to writing a letter that works.An internet infrastructure maven and activist, Omar Ahmad was the mayor of San Carlos, California");
                    sw.WriteLine("Noah Feldman makes a searing case that both politics and religion -- whatever their differences -- are similar technologies, designed to efficiently connect and manage any group of people. Noah Feldman studies the intersection of religion, politics and law -- with a focus on how Islam meshes with modern democracy.");
                    sw.WriteLine("Political prisoners aren't the only ones being tortured -- the vast majority of judicial torture happens in ordinary cases, even in 'functioning' legal systems. Social activist Karen Tse shows how we can, and should, stand up and end the use of routine torture.In too many countries, it's still normal to torture prisoners for confessions and information. Karen Tse works to end that");
                    sw.WriteLine("Nate Silver has answers to controversial questions about race in politics: Did Obama's race hurt his votes in some places? Stats and myths collide in this fascinating talk that ends with a remarkable insight on how town planning can promote tolerance.Math whiz and baseball fan Nate Silver was mainly known for predicting outcomes in fantasy ballgames -- until his technique hit a home run calling the outcome of the 2008 election primaries");
                    sw.Close();
                    aFile.Close();
                }
                else
                {
                    FileStream aFile = new FileStream(Not_Watch_fileLoc, FileMode.Append, FileAccess.Write);
                    StreamWriter sw = new StreamWriter(aFile);
                    sw.WriteLine("Politicians are strange creatures, says politician Omar Ahmad. And the best way to engage them on your pet issue is a monthly handwritten letter. Ahmad shows why old-fashioned correspondence is more effective than email, phone or even writing a check -- and shares the four simple steps to writing a letter that works.An internet infrastructure maven and activist, Omar Ahmad was the mayor of San Carlos, California");
                    sw.WriteLine("Noah Feldman makes a searing case that both politics and religion -- whatever their differences -- are similar technologies, designed to efficiently connect and manage any group of people. Noah Feldman studies the intersection of religion, politics and law -- with a focus on how Islam meshes with modern democracy.");
                    sw.WriteLine("Political prisoners aren't the only ones being tortured -- the vast majority of judicial torture happens in ordinary cases, even in 'functioning' legal systems. Social activist Karen Tse shows how we can, and should, stand up and end the use of routine torture.In too many countries, it's still normal to torture prisoners for confessions and information. Karen Tse works to end that");
                    sw.WriteLine("Nate Silver has answers to controversial questions about race in politics: Did Obama's race hurt his votes in some places? Stats and myths collide in this fascinating talk that ends with a remarkable insight on how town planning can promote tolerance.Math whiz and baseball fan Nate Silver was mainly known for predicting outcomes in fantasy ballgames -- until his technique hit a home run calling the outcome of the 2008 election primaries");
                    sw.Close();
                    aFile.Close();
                }
            }

            if (length == 4 || length == 3 || length == 1)
            {

                if (Next == "Medical")
                {
                    Medical frm = new Medical(NewUserSlections);
                    frm.Show();
                }

                else if (Next == "Science")
                {
                    Science frm = new Science(NewUserSlections);
                    frm.Show();
                }
                else
                {
                    Finish frm = new Finish();
                    frm.Show();
                }
            }

                else
                {
                    Finish frm = new Finish();
                    frm.Show();
                }
            this.Close();
        }