Exemple #1
0
        void UpdateTitle()
        {
            string title = _title?.Replace("&", "&")
                           .Replace("<", "&lt;")
                           .Replace(">", "&gt;")
                           .Replace(Environment.NewLine, "<br>");

            _layout.SetPartText("elm.text.title", title);
        }
Exemple #2
0
 void UpdateTitle()
 {
     if (!_isProgressRunning)
     {
         _layout.SetPartText("elm.text.title", _title);
     }
     else
     {
         _layout.SetPartText("elm.text.title", null);
     }
 }
Exemple #3
0
        void UpdateTitle()
        {
            string title = _title?.Replace("&", "&amp;")
                           .Replace("<", "&lt;")
                           .Replace(">", "&gt;")
                           .Replace(Environment.NewLine, "<br>");

            if (!_isProgressRunning)
            {
                _layout.SetPartText("elm.text.title", title);
            }
            else
            {
                _layout.SetPartText("elm.text.title", null);
            }
        }
Exemple #4
0
 void UpdateTitle()
 {
     _layout.SetPartText("elm.text.title", _title);
 }