Example #1
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            if (tbxCurrencystring.Equals(string.Empty))
            {
                MessageBox.Show("Currency Symbol can not be blank!");
                return;
            }
            CurrencyMasterModel objMaster = new CurrencyMasterModel();

            objMaster.Symbol         = tbxCurrencysymbol.Text.Trim();
            objMaster.CString        = tbxCurrencystring.Text.Trim();
            objMaster.ConvertionMode = cbxCurrencyconvMode.Text.Trim();
            objMaster.SubString      = tbxCurrencySubstring.Text.Trim();
            objMaster.CM_ID          = CurrecyId;
            objMaster.ModifiedBy     = "Admin";


            bool isSuccess = objCurr.UpdateCurrency(objMaster);

            if (isSuccess)
            {
                MessageBox.Show("Update Successfully!");
                ClearControls();
                CurrecyId = 0;
                Administration.List.CurrencyList frmList = new Administration.List.CurrencyList();
                frmList.StartPosition = FormStartPosition.CenterScreen;

                frmList.ShowDialog();
            }
        }
Example #2
0
        private void ListCurrency_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            Administration.List.CurrencyList frmList = new Administration.List.CurrencyList();
            frmList.StartPosition = FormStartPosition.CenterScreen;

            frmList.ShowDialog();
        }
Example #3
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            bool isDelete = objCurr.DeletCurrency(CurrecyId);

            if (isDelete)
            {
                MessageBox.Show("Delete Successfully!");
                ClearControls();
                CurrecyId = 0;
                Administration.List.CurrencyList frmList = new Administration.List.CurrencyList();
                frmList.StartPosition = FormStartPosition.CenterScreen;

                frmList.ShowDialog();
                FillCurrencyInfo();
                tbxCurrencysymbol.Focus();
            }
        }