示例#1
0
        private void AddProdButton_Click(object sender, EventArgs e)
        {
            AgregarProdMenu Agregar = new AgregarProdMenu();

            this.Hide();
            Agregar.ShowDialog();
            Agregar = null;
            this.Show();
        }
 private void EliminarProdMenu_Load(object sender, EventArgs e)
 {
     string[] dat = new string[2];
     AgregarProdMenu.obtenerProd();
     foreach (KeyValuePair <string, string[]> all in AgregarProdMenu.Prods)
     {
         dat = all.Value.ToArray();
         if (dat[0].Length > 20)
         {
             productosToDeleteList.Items.Add(all.Key + "\t" + dat[0].Substring(0, 19) + "\t\t\t" + dat[1]);
         }
         else
         {
             productosToDeleteList.Items.Add(all.Key + "\t" + dat[0].PadRight(21, ' ') + "\t\t\t\t" + dat[1]);
         }
     }
 }