Exercise 4: Design Form of AutoCount Accounting 1.8: Difference between revisions
Content added Content deleted
mNo edit summary |
mNo edit summary |
||
Line 9: | Line 9: | ||
:* Name this project as "Tutorial.PRG201" |
:* Name this project as "Tutorial.PRG201" |
||
:* Add References of AutoCount Accounting |
:* Add References of AutoCount Accounting |
||
<syntaxhighlight lang="csharp" |
<syntaxhighlight lang="csharp" highlight="6,7"> |
||
BCE.AutoCount.dll |
BCE.AutoCount.dll |
||
BCE.AutoCount.CommandAccounting.dll |
BCE.AutoCount.CommandAccounting.dll |
||
Line 19: | Line 19: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
:* Add References of {{DevExpress}} WinForms. |
:* Add References of {{DevExpress}} WinForms. |
||
<syntaxhighlight lang="csharp" |
<syntaxhighlight lang="csharp"> |
||
DevExpress.Data.v13.1.dll |
DevExpress.Data.v13.1.dll |
||
DevExpress.Design.v13.1.dll |
DevExpress.Design.v13.1.dll |
Latest revision as of 03:13, 3 July 2018
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
Go to top
|
Resources For AutoCount Software Developers
|