cmdDataGridView
public static CommandID cmdDataGridView;
cmdDataGridView = new CommandID(guidSharpErpCmdSet, 5);
public class DataGridViewCommand : Command
{
public DataGridViewCommand()
: base(SharpErpCommands.cmdDataGridView)
{
this.Text = SR.Command_DataGridView_Text;
}
}
using System;
using System.Windows .Forms ;
namespace SharpErp.Framework.Forms
{
public partial class DataViewWindow : DataWindowBase
{
//private Control control;
public DataViewWindow()
{
InitializeComponent();
}
public DataViewWindow(Control control)
{
//this.control = control;
this.InitializeComponent();
control.Dock = DockStyle.Fill;
this.Controls.Add(control);
}
}
}
public class DataGridViewCommand : Command
{
public DataGridViewCommand()
: base(SharpErpCommands.cmdDataGridView)
{
this.Text = SR.Command_DataGridView_Text;
}
}
base.MenuCommandService.AddCommand(new MenuCommand(new EventHandler(this.OnDataGridView), SharpErpCommands.cmdDataGridView));