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; } }
public AddPrefix(AddPrefixStates mode) { InitializeComponent(); _mode = mode; this.Loaded += AddPrefix_Loaded; }
public AddPrefixInternational(AddPrefixStates mode) { InitializeComponent(); _mode = mode; this.Loaded += AddPrefix_Loaded; }
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; } }
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; } }