private void btn_addcommodity_Click(object sender, EventArgs e)//点击了添加商品的按钮
 {
     //try//如果是在集成窗口中的话就可以判断打开否则运行就会出错
     //{
     //    Parent.Parent.Hide();
     //    Frm_AddCommdodity f = new Frm_AddCommdodity();
     //    f.ShowDialog();
     //    Parent.Parent.Show();
     //}
     //catch { }
     if (this.Parent != null)
     {
         Frm_AddCommdodity f = new Frm_AddCommdodity();
         f.TopLevel = false;
         f.Parent   = this.Parent;
         f.Show();
         f.BringToFront();
     }
     else
     {
         Hide();
         Frm_AddCommdodity f = new Frm_AddCommdodity();
         f.ShowDialog();
         Show();
     }
 }
        private void tobtn_addcom_Click(object sender, EventArgs e)//点击了添加商品的按钮
        {
            Frm_AddCommdodity f = new Frm_AddCommdodity();

            create_window("Frm_AddCommdodity", f);
        }