ServiceRechargeSuperSmallForm.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. namespace LYFZ.Software.UI.MembershipManage.SuperSmallForm
  10. {
  11. public partial class ServiceRechargeSuperSmallForm : LYFZ.ComponentLibrary.BaseContentsFormMain
  12. {
  13. public ServiceRechargeSuperSmallForm()
  14. {
  15. InitializeComponent();
  16. this.Shown += ServiceRechargeSuperSmallForm_Shown;
  17. this.txtCount.KeyPress += txtCount_KeyPress;
  18. this.txtCount.Leave += txtCount_Leave;
  19. this.dgvData.CellMouseDoubleClick += dgvData_CellMouseDoubleClick;
  20. this.btnOK.Click += btnOK_Click;
  21. this.btnCancel.Click += btnCancel_Click;
  22. this.dgvData.MouseDown += dgvData_MouseDown;
  23. this.contextMenuStrip1.ItemClicked += contextMenuStrip1_ItemClicked;
  24. }
  25. /// <summary>
  26. /// 窗体加载事件
  27. /// </summary>
  28. /// <param name="sender"></param>
  29. /// <param name="e"></param>
  30. protected virtual void ServiceRechargeSuperSmallForm_Shown(object sender, EventArgs e)
  31. {
  32. //throw new NotImplementedException();
  33. }
  34. /// <summary>
  35. /// 服务次数输入限制
  36. /// </summary>
  37. /// <param name="sender"></param>
  38. /// <param name="e"></param>
  39. protected virtual void txtCount_KeyPress(object sender, KeyPressEventArgs e)
  40. {
  41. //throw new NotImplementedException();
  42. }
  43. /// <summary>
  44. /// 服务次数离开事件
  45. /// </summary>
  46. /// <param name="sender"></param>
  47. /// <param name="e"></param>
  48. protected virtual void txtCount_Leave(object sender, EventArgs e)
  49. {
  50. //throw new NotImplementedException();
  51. }
  52. /// <summary>
  53. /// 列表服务次数列双击事件
  54. /// </summary>
  55. /// <param name="sender"></param>
  56. /// <param name="e"></param>
  57. protected virtual void dgvData_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
  58. {
  59. //throw new NotImplementedException();
  60. }
  61. /// <summary>
  62. /// 确定
  63. /// </summary>
  64. /// <param name="sender"></param>
  65. /// <param name="e"></param>
  66. protected virtual void btnOK_Click(object sender, EventArgs e)
  67. {
  68. //throw new NotImplementedException();
  69. }
  70. /// <summary>
  71. /// 取消
  72. /// </summary>
  73. /// <param name="sender"></param>
  74. /// <param name="e"></param>
  75. protected virtual void btnCancel_Click(object sender, EventArgs e)
  76. {
  77. //throw new NotImplementedException();
  78. }
  79. /// <summary>
  80. /// 服务次数列点击事件(右键)
  81. /// </summary>
  82. /// <param name="sender"></param>
  83. /// <param name="e"></param>
  84. protected virtual void dgvData_MouseDown(object sender, MouseEventArgs e)
  85. {
  86. //throw new NotImplementedException();
  87. }
  88. /// <summary>
  89. /// 右键菜单选择项事件
  90. /// </summary>
  91. /// <param name="sender"></param>
  92. /// <param name="e"></param>
  93. protected virtual void contextMenuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
  94. {
  95. //throw new NotImplementedException();
  96. }
  97. }
  98. }