Exercise 4: Design Form of AutoCount Accounting 1.8

From AutoCount Resource Center
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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
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.


See Also





Go to menu

IconAC81.png Go to top
ProgrammerGo.jpg Resources For AutoCount Software Developers