예제 #1
0
        private void addAutoToClientButton_Click(object sender, EventArgs e)
        {
            sessionData.Operation_Type = OperationTypes.ADD_AUTO;
            AutoPopupForm autoPopupForm = new AutoPopupForm(sessionData);

            autoPopupForm.Show();
        }
예제 #2
0
        private void modifyAutoButton_Click(object sender, EventArgs e)
        {
            sessionData.Operation_Type = OperationTypes.MODIFY_AUTO;
            sessionData.selectedAuto   = AutoMapper.FromModelToEntity((AutoModel)clientAutosListBox.SelectedItem);
            AutoPopupForm autoPopupForm = new AutoPopupForm(sessionData);

            autoPopupForm.Show();
        }