Ejemplo n.º 1
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;
            }
        }
        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;
            }
        }
Ejemplo n.º 3
0
        public AddPrefix(AddPrefixStates mode)
        {
            InitializeComponent();

            _mode = mode;

            this.Loaded += AddPrefix_Loaded;
        }
Ejemplo n.º 4
0
        public AddPrefixInternational(AddPrefixStates mode)
        {
            InitializeComponent();

            _mode = mode;

            this.Loaded += AddPrefix_Loaded;
        }
Ejemplo n.º 5
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;
            }
        }
Ejemplo n.º 6
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;
            }
        }