private void InitializeWindow()
        {
            _parentWin = (CdrAgent)this.Owner;

            //txtKind.ItemsSource = _parentWin._cdrprops.CDRInternational;
            txtKind.SelectedValuePath = "Kind";
            txtKind.DisplayMemberPath = "Kind";
            txtKind.SelectedIndex = 0;
            txtNationCode.Focus();

            if (_propsValue == null)
            {
                _mode = AddPrefixStates.Add;
                return;
            }
            else
            {
                _mode = AddPrefixStates.Modify;
                txtKind.SelectedValue = _propsValue.Kind;
                txtNationCode.Text = _propsValue.NationCode;
                txtAreaCode.Text = _propsValue.AreaCode;
                txtNationNameKO.Text = _propsValue.NameKo;
                txtNationNameEN.Text = _propsValue.NameEn;
                txtLM.Text = _propsValue.LM;
            }
        }
Exemplo n.º 2
0
        private void InitializeWindow()
        {
            _parentWin = (CdrAgent)this.Owner;

            //txtKind.ItemsSource = _parentWin._cdrprops.CDRInternational;
            txtKind.SelectedValuePath = "Kind";
            txtKind.DisplayMemberPath = "Kind";
            txtKind.SelectedIndex     = 0;
            txtNationCode.Focus();

            if (_propsValue == null)
            {
                _mode = AddPrefixStates.Add;
                return;
            }
            else
            {
                _mode = AddPrefixStates.Modify;
                txtKind.SelectedValue = _propsValue.Kind;
                txtNationCode.Text    = _propsValue.NationCode;
                txtAreaCode.Text      = _propsValue.AreaCode;
                txtNationNameKO.Text  = _propsValue.NameKo;
                txtNationNameEN.Text  = _propsValue.NameEn;
                txtLM.Text            = _propsValue.LM;
            }
        }
Exemplo n.º 3
0
        private void InitializeWindow()
        {
            _parentWin = (CdrAgent)this.Owner;

            if (_mode == AddPrefixStates.Modify)
            {
                txtPrefix.Text = _domesticrate.prefix;
                txtPrefix.IsReadOnly = true;
                txtType.Text = _domesticrate.type;
                txtRate.Text = _domesticrate.rate.ToString();
                txtSec.Text = _domesticrate.sec.ToString();
            }
        }
Exemplo n.º 4
0
        private void InitializeWindow()
        {
            _parentWin = (CdrAgent)this.Owner;

            if (_mode == AddPrefixStates.Modify)
            {
                txtKind.Text  = _obj.areacode.ToString();
                txtLRate.Text = _obj.lrate.ToString();
                txtLSec.Text  = _obj.lsec.ToString();
                txtMRate.Text = _obj.mrate.ToString();
                txtMSec.Text  = _obj.msec.ToString();
            }
        }
        private void InitializeWindow()
        {
            _parentWin = (CdrAgent)this.Owner;

            if (_mode == AddPrefixStates.Modify)
            {
                txtKind.Text = _obj.areacode.ToString();
                txtLRate.Text = _obj.lrate.ToString();
                txtLSec.Text = _obj.lsec.ToString();
                txtMRate.Text = _obj.mrate.ToString();
                txtMSec.Text = _obj.msec.ToString();
            }
        }
Exemplo n.º 6
0
        private void InitializeWindow()
        {
            _parentWin = (CdrAgent)this.Owner;

            if (_mode == AddPrefixStates.Modify)
            {
                txtPrefix.Text       = _domesticrate.prefix;
                txtPrefix.IsReadOnly = true;
                txtType.Text         = _domesticrate.type;
                txtRate.Text         = _domesticrate.rate.ToString();
                txtSec.Text          = _domesticrate.sec.ToString();
            }
        }
Exemplo n.º 7
0
        private void InitializeWindow()
        {
            _parentWin = (CdrAgent)this.Owner;

            if (_propsValue == null)
            {
                _mode = AddPrefixStates.Add;
            }
            else
            {
                _mode = AddPrefixStates.Modify;

                txtTelnum.Text = _propsValue.TelNum;
                txtMemo.Text   = _propsValue.Memo;
            }
        }
Exemplo n.º 8
0
        private void InitializeWindow()
        {
            _parentWin = (CdrAgent)this.Owner;

            if (_propsValue == null)
            {
                _mode = AddPrefixStates.Add;
            }
            else
            {
                _mode = AddPrefixStates.Modify;

                txtTelnum.Text = _propsValue.TelNum;
                txtMemo.Text = _propsValue.Memo;
            }
        }