示例#1
0
        private void chkHomeCurAdd_CheckedChanged(object sender, EventArgs e)
        {
            if (chkHomeCurAdd.Checked)
            {
                cmbCurrency.Enabled = false;

                string HmCur = "", HmRate = "";
                string respond = MyCommon.GetHomeCurrencyAndExrate(out HmCur, out HmRate);
                if (lblAcCurrency.Text != HmCur)
                {
                    cmbCurrency.Text = HmCur;
                    lblExrate.Text   = HmRate;
                }
            }
            else
            {
                cmbCurrency.Enabled = true;
                lblExrate.Text      = "";
            }
        }
示例#2
0
        private void frmJournal_Load(object sender, EventArgs e)
        {
            MyAccount = new AccountCreation(Program.AccountStatic.LoggingAsLocal);
            MyCommon  = new CommonOperations(Program.AccountStatic.LoggingAsLocal);

            MyJournal = new Journal(Program.AccountStatic.LoggingAsLocal);

            IsLocalLoging = Program.AccountStatic.LoggingAsLocal;
            panel1.Top    = (this.Height - panel1.Height) / 2;
            panel1.Left   = (this.Width - panel1.Width) / 2;
            MyCommon.LoadCurrency(cmbCurrency);
            MyCommon.LoadStatusComboAccount(cmbPayFor, 6);
            string HmCur = "", HmRate = "";
            string respond = MyCommon.GetHomeCurrencyAndExrate(out HmCur, out HmRate);

            cmbCurrency.Text = HmCur;
            MyCommon.LoadStatusComboAccount(cmbStatus, 4);
        }