Exemplo n.º 1
0
 private void CancelButtonLS_Click(object sender, EventArgs e)
 {
     if (Program.Triger1 == 0)
     {
         DBCreation dB = new DBCreation();
         dB.Show();
         this.Close();
     }
     else
     {
         MainChangingWindow main = new MainChangingWindow();
         main.Show();
         this.Close();
     }
 }
        private void CreateDB_Click(object sender, EventArgs e)
        {
            Program.CountryName            = "";
            Program.RegionName             = "";
            Program.LocalityName           = "";
            Program.ExtraInfo              = "";
            Program.CurrentOpertedDataBase = new DataSet();
            Program.TypeDataBase           = new DataSet();
            Program.MakeConnecction();
            Program.MakeDataSet();
            Program.AddColumn();
            Program.MakeTypeMas();
            Program.CreateMap();
            Program.MakeTypeColor();
            Program.MakeHeadersType();
            Program.MakeHeaders();
            DBCreation dbCreation = new DBCreation();

            dbCreation.Show();
        }
Exemplo n.º 3
0
        private void новаяБДToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Program.CountryName            = "";
            Program.RegionName             = "";
            Program.LocalityName           = "";
            Program.ExtraInfo              = "";
            Program.CurrentOpertedDataBase = new DataSet();
            Program.TypeDataBase           = new DataSet();
            Program.MakeConnecction();
            Program.MakeDataSet();
            Program.AddColumn();
            Program.MakeTypeMas();
            Program.CreateMap();
            Program.MakeTypeColor();
            Program.MakeHeadersType();
            Program.MakeHeaders();
            DBCreation dB = new DBCreation();

            dB.Show();
            this.Close();
        }