Description's ListForm
Description's ListForm
protected internal GridView Table;:We’re getting an instance from GridView.
protected ControlNavigator Navigators; : We’re getting an instance for Navigator
private bool _formTemplateSave; : we'll use it to save the new dimensions of the form.
private bool _tableTemplateSave; : to save the current status of the tables.
protected internal bool Chosen = false; : Entity selected status.
protected internal SaleContext tContext = new SaleContext(); : We will use the contexts we will use in the Base Forms instead of constantly refreshing them.
private void EventsLoad() : we create the events that will be used in the list forms
private void BaseListForm_FormClosing(object sender, FormClosingEventArgs e) : Run the templateSave function when closing the Form.
private void BaseListForm_SizeChanged(object sender, EventArgs e) : Set the value of the _formTemplateSave variable to True when the Form size changes
private void BaseListForm_LocationChanged(object sender, EventArgs e) : When the Form position changes, the _formTemplateSave value is set to true
private void BaseListForm_Load(object sender, EventArgs e) : We are running events that occur when the Form is opened
private void TemplateSave() : Send values to the Save Form layout function.
protected internal void DataLoad() : Auto-run these events in all forms.
private void FrmClose() : This is the function we use to close the form
protected virtual void ListData() { } : The variable we will call as Ovveride in the implemented forms. We will list the data with this variable.
protected virtual void OpenEditFormAdd() { } : The variable we will call as Ovveride in the implemented forms. With this variable, we will open a new form.
protected virtual void OpenEditForm() { } : The variable we will call as Ovveride in the implemented forms. With this variable, we will open the form in edit mode.
protected virtual void ActivityOpen() { } : The variable we will call as Ovveride in the implemented forms. Our function to open the movements of the form related to this variable
protected virtual void DataSelections() { } : The variable we will call as Ovveride in the implemented forms. We will use this variable to select the data in the related form.
protected virtual void VariablesFill() { } : This is the function that we upload data to the components
protected virtual void EntityDelete() { } : The variable we will call as Ovveride in the implemented forms. We will use this variable to delete the data on the form.
private void Button_ItemClick(object sender, ItemClickEventArgs e) : We write events that the buttons on the form will follow when clicked.