private void InitPage() { layoutControl = layoutItems; if (LoadedRow == null && editrow == null) { frmRibbon.DisableButtons("Delete"); editrow = CreateNew() as DebtorEmailSetupClient; } layoutItems.DataContext = editrow; BusyIndicator = busyIndicator; if (editrow._host != null || editrow._companySMTP != null) { grpSmtp.IsCollapsed = true; } frmRibbon.OnItemClicked += FrmRibbon_OnItemClicked; leCompanySMTP.api = api; cmbExternType.ItemsSource = new List <string> { "Debtor", "DebtorInvoice", "Creditor", "CreditorInvoice", "Employee", "Contact" }; cmbExternType.SelectedIndex = 0; layoutProp.Label = string.Format(Uniconta.ClientTools.Localization.lookup("AddOBJ"), Uniconta.ClientTools.Localization.lookup("Properties")); #if !SILVERLIGHT liTextinHtml.Label = Uniconta.ClientTools.Localization.lookup("TextInHtml"); #endif txtSmptPwd.Text = editrow._smtpPassword; }
private void InitPage() { layoutControl = layoutItems; if (LoadedRow == null && editrow == null) { frmRibbon.DisableButtons(new string[] { "Delete" }); editrow = CreateNew() as DebtorEmailSetupClient; } layoutItems.DataContext = editrow; BusyIndicator = busyIndicator; if (!string.IsNullOrEmpty(editrow._host)) { grpSmtp.IsCollapsed = true; } frmRibbon.OnItemClicked += FrmRibbon_OnItemClicked; cmbExternType.ItemsSource = new List <string> { "Debtor", "DebtorInvoice" }; cmbExternType.SelectedIndex = 0; layoutProp.Label = string.Format(Uniconta.ClientTools.Localization.lookup("AddOBJ"), Uniconta.ClientTools.Localization.lookup("Properties")); #if !SILVERLIGHT liTextinHtml.Label = Uniconta.ClientTools.Localization.lookup("TextInHtml"); #endif }