private void RegisterScript() { var sb = new StringBuilder(); sb.AppendFormat(@" ASC.CRM.ListItemView.init({0}, '{1}', '{2}'); ASC.CRM.ListItemView.EditItemHeaderText = '{3}'; ASC.CRM.ListItemView.AddItemProcessText = '{4}';", (int)CurrentTypeValue, AddPopupWindowText.ReplaceSingleQuote(), AddButtonText.ReplaceSingleQuote(), EditPopupWindowText.ReplaceSingleQuote(), AjaxProgressText.ReplaceSingleQuote() ); Page.RegisterInlineScript(sb.ToString()); }
private void ItemCodeTextUI_TextChanged(object sender, TextChangedEventArgs e) { try { if (ItemCodeTextUI.Text.Trim()?.Length == 0) { if (AddButtonText.Text == AddText) { AddButtonText.ShowUsingLinearAnimation(150); } AddButtonText.Text = CancelText; } else { if (AddButtonText.Text == CancelText) { AddButtonText.ShowUsingLinearAnimation(150); } AddButtonText.Text = AddText; } } catch { } }