/// <summary> /// 刷新库存数 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> //public void sxspcount(object sender, EventArgs e) //{ // string sql = string.Format("select COUNT(*) from commodity where username = '******'", love.denglu_username); // lab_shoumai.Text ="您正在出售 "+ sqlHelper.ExecutedataTable(sql, CommandType.Text, null).Rows[0][0].ToString() +" 件商品"; //} private void Frm_Main_Sellde_Load(object sender, EventArgs e) { Frm_Login f = new Frm_Login(); Icon = f.Icon; //添加头像 tjtx(sender, e); love.meihua(this); tolab_UserName.Text = love.denglu_username == string.Empty ? "欢迎 a " : "欢迎 " + love.denglu_username + " 回来"; time.Enabled = true; tolab_dltime.Text = "登陆时间:" + DateTime.Now.ToString(); time.Tick += new EventHandler(time_Tick); //写上余额 sxje(sender, e);//刷新金额 Frm_ComXiangXI fff = new Frm_ComXiangXI(); fff.Dock = DockStyle.Fill; create_window("Frm_ComXiangXI", fff); }
private void btn_xiangxi_Click(object sender, EventArgs e)//点击了点击了详细的按钮 { //try//如果是在集成窗口中的话就可以判断打开否则运行就会出错 //{ // Parent.Parent.Hide(); // Frm_ComXiangXI f = new Frm_ComXiangXI(); // f.ShowDialog(); // Parent.Parent.Show(); //} //catch { } if (this.Parent != null) { Frm_ComXiangXI f = new Frm_ComXiangXI(); f.TopLevel = false; f.Parent = this.Parent; f.Show(); f.BringToFront(); } else { Hide(); Frm_ComXiangXI f = new Frm_ComXiangXI(); f.ShowDialog(); Show(); } }
private void tobtn_comxinagqin_Click(object sender, EventArgs e)//点击了商品详细的按钮 { Frm_ComXiangXI f = new Frm_ComXiangXI(); create_window("Frm_ComXiangXI", f); }