📄 productcategoriesform.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace MobileDevelopersHandbook
{
public partial class ProductCategoriesForm : Form
{
private MobileDevelopersHandbook.MyResultSetsResultSets.ProductCategoryResultSet productCategoryResultSet;
public ProductCategoriesForm()
{
InitializeComponent();
}
private void ProductCategoriesForm_Load(object sender, EventArgs e)
{
// TODO: Delete this line of code to remove the default AutoFill for 'MobileDevelopersHandbook.MyResultSetsResultSets.ProductCategoryResultSet'.
productCategoryResultSet = new MobileDevelopersHandbook.MyResultSetsResultSets.ProductCategoryResultSet();
productCategoryResultSet.Bind(this.productCategoryResultSetBindingSource);
}
private void newMenuItemMenuItem_Click(object sender, EventArgs e)
{
productCategoryResultSetBindingSource.AddNew();
ShowEditDialog();
}
private void productCategoryResultSetDataGrid_Click(object sender, EventArgs e)
{
ShowEditDialog();
}
private void ShowEditDialog()
{
ProductCategoryEditViewDialog productcategoryEditViewDialog =
ProductCategoryEditViewDialog.Instance(this.productCategoryResultSetBindingSource);
productcategoryEditViewDialog.ShowDialog();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -