Esempio n. 1
0
        private void FRM_TransactionLines_Load(object sender, EventArgs e)
        {
            try
            {
                if (IsPost == true)
                {
                    btnAddNew.Enabled     = btnDelete.Enabled = btnPost.Enabled = false;
                    panelControl1.Enabled = false;
                }

                #region Display Lines for Existing Transaction :
                lines.MakeFirstTable(TransactionCode);
                LinesGrid.DataSource = lines.DataSet;
                LinesGrid.DataMember = lines.DataMember;
                #endregion

                #region FillAccountsType :
                cmbAccountType.Properties.Items.AddRange(typeof(AccountsManager.AccountFilterationTypes).GetEnumValues());
                cmbOffsetType.Properties.Items.AddRange(typeof(AccountsManager.AccountFilterationTypes).GetEnumValues());
                #endregion

                LinesView.InitNewRow += LinesView_InitNewRow;
                btnCancel_Click(null, null);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }