Exercise 4: Design Form of AutoCount Accounting 1.8: Difference between revisions

From AutoCount Resource Center
Content added Content deleted
(Created page with "{{NavigateDeveloper|collapsed}} __NOTOC__ Objectives: Design Form of AutoCount Accounting 1.8 Implement AutoCount Accounting 1.8 Visual Style requires {{DevExpress}} WinForm...")
 
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{NavigateDeveloper|collapsed}}
__NOTOC__
__NOTOC__
Objectives: Design Form of AutoCount Accounting 1.8
Objectives: Design Form of AutoCount Accounting 1.8
Line 10: 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" line highlight="6,7">
<syntaxhighlight lang="csharp" highlight="6,7">
BCE.AutoCount.dll
BCE.AutoCount.dll
BCE.AutoCount.CommandAccounting.dll
BCE.AutoCount.CommandAccounting.dll
Line 20: Line 19:
</syntaxhighlight>
</syntaxhighlight>
:* Add References of {{DevExpress}} WinForms.
:* Add References of {{DevExpress}} WinForms.
<syntaxhighlight lang="csharp" line>
<syntaxhighlight lang="csharp">
DevExpress.Data.v13.1.dll
DevExpress.Data.v13.1.dll
DevExpress.Design.v13.1.dll
DevExpress.Design.v13.1.dll
Line 79: Line 78:


==See Also==
==See Also==
*[[201a.GettingStarted|201a: AutoCount Accounting Plug-In Getting Started]]
* [[Plug-In 1.8 Getting Started]]
* [[Plug-In 1.8 User Control & Interface]]
*[[Exercise 5: Design Grid of AutoCount Accounting 1.8]]
* [[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]]
* [[Exercise 5: Design Grid of AutoCount Accounting 1.8]]


<br /><br />
<br /><br />
<br /><br />
<br /><br />
[[Category:Developers]]
[[Category:Programmer]]
[[Category:Tutorials]]
[[Category:Plug-In]]
[[Category:Plug-In]]
[[Category:Exercise]]
[[Category:Programmer Exercise]]
{{NavigateDeveloper}}

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
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

Go to top
Resources For AutoCount Software Developers