Exercise 4: Design Form of AutoCount Accounting 1.8: Difference between revisions
Content added Content deleted
mNo edit summary |
mNo edit summary |
||
Line 79: | Line 79: | ||
==See Also== |
==See Also== |
||
*[[ |
* [[Plug-In 1.8 Getting Started]] |
||
* [[Plug-In 1.8 User Control & Interface]] |
|||
⚫ | |||
* [[Exercise_1:_Build_My_First_Plug-In|Exercise 1: Build My First Plug-In]] |
|||
* [[Exercise_2:_Create_Dialog_Box|Exercise 2: Create Dialog Box]] |
|||
* [[Exercise_3:_Create_Form|Exercise 3: Create Form]] |
|||
* [[Exercise 4: Design Form of AutoCount Accounting 1.8]] |
|||
⚫ | |||
<br /><br /> |
<br /><br /> |
Revision as of 06:23, 2 January 2018
Go to top
|
Resources For AutoCount Software Developers
|
Objectives: Design Form of AutoCount Accounting 1.8 Implement AutoCount Accounting 1.8 Visual Style requires DevExpress WinForms Components version 13.1.10.
This project is a new Plug-In project, projects in previous tutorials are not required. But you must already learn previous tutorials to proceed with this tutorial.
1. Create a new project or open project of Tutorial.PRG201.
- Name this project as "Tutorial.PRG201"
- Add References of AutoCount Accounting
BCE.AutoCount.dll
BCE.AutoCount.CommandAccounting.dll
BCE.AutoCount.MainEntry.dll
BCE.Utils.dll
BCE.Utils.UI.dll
BCE.AutoCount.Invoicing.dll
BCE.AutoCount.Invoicing.Sales.dll
- Add References of DevExpress WinForms.
DevExpress.Data.v13.1.dll
DevExpress.Design.v13.1.dll
DevExpress.Utils.v13.1.dll
DevExpress.Utils.v13.1.UI.dll
DevExpress.XtraEditors.v13.1.dll
DevExpress.XtraGrid.v13.1.dll
2. Right click project and create new Windows Form (Visual C# Items).
- Name the new Form as ' FormShowSalesInvoice '
3. Add MenuItemAttribute on top of this class.
[BCE.AutoCount.PlugIn.MenuItem("Show Sales Invoice", 30)]
4. Change inheritance of FormShowSalesInvoice : Form -> FormShowSalesInvoice : DevExpress.XtraEditors.XtraForm
5. Add attribute [BCE.Application.SingleInstanceThreadForm] to enable Main Menu attached to your Form.
6. Add AutoCount Panel Header
[BCE.AutoCount.PlugIn.MenuItem("Show Sales Invoice", 30)]
[BCE.Application.SingleInstanceThreadForm]
public partial class FormShowSalesInvoice : DevExpress.XtraEditors.XtraForm
{
private BCE.Data.DBSetting mydbset;
public FormShowSalesInvoice(BCE.Data.DBSetting dbSetting)
{
InitializeComponent();
mydbset = dbSetting;
new BCE.AutoCount.Controls.PanelHeader(this, "Show Sales Invoice", "");
}
}
7. Build this project (Build dll)
8. Build the dll as AutoCount Plug-In Package (.app)
9. Load this Plug-In into AutoCount Accounting
10. Open "Show Sales Invoice" Form
- Use different Form Theme to see the changes of your form color and style.
-
Money Twins Form Theme
-
Black Form Theme
See Also
- Plug-In 1.8 Getting Started
- Plug-In 1.8 User Control & Interface
- Exercise 1: Build My First Plug-In
- Exercise 2: Create Dialog Box
- Exercise 3: Create Form
- Exercise 4: Design Form of AutoCount Accounting 1.8
- Exercise 5: Design Grid of AutoCount Accounting 1.8