private void tbSet_Click(object sender, EventArgs e) { Common.frmSetGrid myGrid = new Common.frmSetGrid(); myGrid.gvSource = gvReport; myGrid.ShowDialog(); myGrid.Dispose(); }
/// <summary> /// 设置表格格式 /// </summary> protected virtual void SetGridFormat() { Common.frmSetGrid myGrid = new Common.frmSetGrid(); myGrid.gvSource = gvList; myGrid.ShowDialog(); myGrid.Dispose(); }
private void frmPayImport_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F7) { Common.frmSetGrid myGrid = new Common.frmSetGrid(); myGrid.gvSource = gvMain; myGrid.ShowDialog(); myGrid.Dispose(); } if (e.KeyCode == Keys.F5) { SaveFieldFormat(); } }
/// <summary> /// 设置格式 /// </summary> protected override void SetGridFormat() { Common.frmSetGrid myGrid = new Common.frmSetGrid(); if (gcReport.IsFocused == true) { myGrid.gvSource = gvReport; } if (gcSellOut.IsFocused == true) { myGrid.gvSource = gvSellOut; } if (gcAccept.IsFocused == true) { myGrid.gvSource = gvAccept; } if (gcSellBack.IsFocused == true) { myGrid.gvSource = gvSellBack; } myGrid.ShowDialog(); myGrid.Dispose(); }
/// <summary> /// 设置格式 /// </summary> protected override void SetGridFormat() { Common.frmSetGrid myGrid = new Common.frmSetGrid(); if (gcReport.IsFocused == true) { myGrid.gvSource = gvReport; } if (gcStockIn.IsFocused == true) { myGrid.gvSource = gvStockIn; } if (gcPay.IsFocused == true) { myGrid.gvSource = gvPay; } if (gcStockBack.IsFocused == true) { myGrid.gvSource = gvStockBack; } myGrid.ShowDialog(); myGrid.Dispose(); }