Esempio n. 1
0
        static void Main(string[] args)
        {
            List <SampleHarness> harnesses   = new List <SampleHarness>();
            LinqSamples          linqHarness = new LinqSamples(new DataSource(), Task.Properties.Resources.Customers);

            harnesses.Add(linqHarness);
            Application.EnableVisualStyles();
            using (SampleForm form = new SampleForm("HomeWork - Sergey Davydov", harnesses))
            {
                form.ShowDialog();
            }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            List <SampleHarness> harnesses = new List <SampleHarness>();

            // LinqSamples:
            LinqSamples linqHarness = new LinqSamples();

            harnesses.Add(linqHarness);

            // LinqSamples:
            LambdaSamples lambdaHarness = new LambdaSamples();

            harnesses.Add(lambdaHarness);

            // Linq To SQL Samples:
            LinqToSqlSamples linqToSqlHarness = new LinqToSqlSamples();

            harnesses.Add(linqToSqlHarness);

            // LinqToXmlSamples:
            LinqToXmlSamples linqToXmlHarness = new LinqToXmlSamples();

            harnesses.Add(linqToXmlHarness);

            // DataSetLinqSamples:
            DataSetLinqSamples dsLinqSamples = new DataSetLinqSamples();

            harnesses.Add(dsLinqSamples);

            // XQueryUseCases:
            XQueryUseCases xqueryHarness = new XQueryUseCases();

            harnesses.Add(xqueryHarness);

            if (args.Length >= 1 && args[0] == "/runall")
            {
                foreach (SampleHarness harness in harnesses)
                {
                    harness.RunAllSamples();
                }
            }
            else
            {
                Application.EnableVisualStyles();

                using (SampleForm form = new SampleForm("LINQ Project Sample Query Explorer", harnesses))
                {
                    form.ShowDialog();
                }
            }
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            List <SampleHarness> harnesses = new List <SampleHarness>();

            var linqHarness = new LinqSamples();

            harnesses.Add(linqHarness);

            Application.EnableVisualStyles();

            using (SampleForm form = new SampleForm("HomeWork - Vyacheslav Odinokov", harnesses))
            {
                form.ShowDialog();
            }
        }
Esempio n. 4
0
        static void Main(string[] args)
        {
            List <SampleHarness> harnesses = new List <SampleHarness>();

            LinqSamples linqHarness = new LinqSamples();

            harnesses.Add(linqHarness);

            Application.EnableVisualStyles();

            using (SampleForm form = new SampleForm("HomeWork - Lizaveta Yeutushenka", harnesses))
            {
                form.ShowDialog();
            }
        }
Esempio n. 5
0
        private static void Main(string[] args)
        {
            var harnesses = new List <SampleHarness>();


            var linqHarness = new LinqSamples();

            harnesses.Add(linqHarness);

            Application.EnableVisualStyles();

            using (var form = new SampleForm("HomeWork - Nikolai Latuhin", harnesses))
            {
                form.ShowDialog();
            }
        }
Esempio n. 6
0
        static void Main(string[] args)
        {
            List <SampleHarness> harnesses = new List <SampleHarness>();


            LinqSamples linqHarness = new LinqSamples();

            harnesses.Add(linqHarness);

            Application.EnableVisualStyles();

            using (SampleForm form = new SampleForm("HomeWork - Aleksandr Ataakgayev", harnesses))
            {
                form.ShowDialog();
            }
        }
Esempio n. 7
0
        static void Main(string[] args)
        {
            List <SampleHarness> harnesses = new List <SampleHarness>();


            LinqSamples    linqHarness    = new LinqSamples();
            SQLLinqQueries sqlLinqHarness = new SQLLinqQueries();

            harnesses.Add(linqHarness);
            harnesses.Add(sqlLinqHarness);

            Application.EnableVisualStyles();

            using (SampleForm form = new SampleForm("HomeWork", harnesses))
            {
                form.ShowDialog();
            }
        }
Esempio n. 8
0
        static void Main()
        {
            List <SampleHarness> harnesses = new List <SampleHarness>();


            LinqSamples      linqHarness      = new LinqSamples();
            LinqToSqlSamples linqToSqlHarness = new LinqToSqlSamples();

            harnesses.Add(linqHarness);
            harnesses.Add(linqToSqlHarness);


            Application.EnableVisualStyles();

            using (SampleForm form = new SampleForm("HomeWork", harnesses))
            {
                form.ShowDialog();
            }
        }
Esempio n. 9
0
        static void Main(string[] args)
        {
            List <SampleHarness> harnesses = new List <SampleHarness>();


            LinqSamples linqHarness = new LinqSamples();

            harnesses.Add(linqHarness);
            LINQtoSQLModule linqToSQL = new LINQtoSQLModule();

            harnesses.Add(linqToSQL);

            Application.EnableVisualStyles();

            using (SampleForm form = new SampleForm("HomeWork", harnesses))
            {
                form.ShowDialog();
            }
        }
Esempio n. 10
0
 // 训练样本的选择
 private void sampleToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SampleForm sform = new SampleForm();
     sform.ShowDialog();
 }
Esempio n. 11
0
    public void bt_Click(Object sender, EventArgs e)
    {
        SampleForm sf = new SampleForm();

        sf.ShowDialog();
    }