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(); } }
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(); } } }
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(); } }
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(); } }
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(); } }
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(); } }
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(); } }
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(); } }
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(); } }
// 训练样本的选择 private void sampleToolStripMenuItem_Click(object sender, EventArgs e) { SampleForm sform = new SampleForm(); sform.ShowDialog(); }
public void bt_Click(Object sender, EventArgs e) { SampleForm sf = new SampleForm(); sf.ShowDialog(); }