public Form1()
        {
            g = new Global();
            InitializeComponent();
            showCharge();

            Inventory s = new Inventory(this.g,true);
        }
 private void button2_Click(object sender, EventArgs e)
 {
     Inventory s = new Inventory(this.g,false);
     s.ShowDialog();
     showCharge();
 }