Description's EditForm
Description's EditForm
protected PositiveLayoutControl DataLayaoutControl; :In the forms, we will be able to use the variable and the component to catch the events.
protected SaleContext tContext = new SaleContext(); : Instead of constantly defining the context, we will use it once and for all.
protected void EventsLoad() : we create the events that will be used in the list forms
private void FrmClose() : This is the function we use to close the form.
protected virtual void DatabaseAddOrUpdate() { } : Our function file that we will use when updating the database or making new recordings.
protected virtual void NewData() { } : btnNew Events
protected internal void DataLoad() : The function file we call Ovveride will run the following codes in all places where we call this function.
private void Button_ItemClick(object sender, ItemClickEventArgs e) : We will manage the events of the buttons to be used in the implemented forms