Exemple #1
0
 public static void ShowGlobalWindow()
 {
     if (globalWindow == null)
     {
         globalWindow = new GlobalWindow();
         globalWindow.Show();
     }
     else
     {
         globalWindow.Show();
     }
 }
Exemple #2
0
        private void btnYes_Click(object sender, EventArgs e)
        {
            this.Close();
            GlobalWindow global = new GlobalWindow();

            OleDbConnection conn;
            OleDbCommand    cmd;

            global.Connection(out conn, out cmd, TextPath.abc);

            conn.Open();
            cmd.CommandText = "DROP TABLE [Cluster];";
            cmd.ExecuteNonQuery();

            cmd.CommandText = "CREATE TABLE [Cluster] (Cl INT, Dist INT, NextCl INT, NextDist INT);";
            cmd.ExecuteNonQuery();
            conn.Close();

            global.GlobalCucl(TextPath.abc, "Cl,Dist,NextCl,NextDist", TextPath.path);
        }