Ejemplo n.º 1
0
        internal void WrapUnwrapButton_OnClick(object sender, EventArgs eventArgs)
        {
            //чтобы текст не съезжал влево
            TextView et = (TextView)GetControl("EventCommentTextView", true);

            et.CssClass = "TextAlignLeft";
            et.Refresh();
            et.CssClass = "TextAlignCenter";
            et.Refresh();

            if (_taskCommentTextExpanded)
            {
                _taskCommentTextView.CssClass = "SubComment";
                _wrapUnwrapImage.Source       = ResourceManager.GetImage("longtext_expand");
                _taskCommentTextExpanded      = false;
            }
            else
            {
                _taskCommentTextView.CssClass = "SubCommentExpanded";
                _wrapUnwrapImage.Source       = ResourceManager.GetImage("longtext_close");
                _taskCommentTextExpanded      = true;
            }
            _taskCommentTextView.Refresh();
            _rootLayout.Refresh();
        }
Ejemplo n.º 2
0
 internal void WrapUnwrapButton_OnClick(object sender, EventArgs eventArgs)
 {
     if (_taskCommentTextExpanded)
     {
         _taskCommentTextView.CssClass = "SubComment";
         _wrapUnwrapImage.Source       = ResourceManager.GetImage("longtext_expand");
         _taskCommentTextExpanded      = false;
     }
     else
     {
         _taskCommentTextView.CssClass = "SubCommentExpanded";
         _wrapUnwrapImage.Source       = ResourceManager.GetImage("longtext_close");
         _taskCommentTextExpanded      = true;
     }
     _taskCommentTextView.Refresh();
     _rootLayout.Refresh();
 }
Ejemplo n.º 3
0
        private void ProcessPaymentCashType()
        {
            var sum       = GetEnteredSum();
            var notEnough = _totalSum - sum;

            if (notEnough > 0)
            {
                ShowControls(false);
                _cashNotEnoughTextView.Text = $"{notEnough:N}";
                _changeTextView.Text        = Translator.Translate("change_is_not_calculated");
                _changeTextView.CssClass    = "SumIsNotCalculated";
                _rootDockLayout.Refresh();
            }
            else
            {
                ShowControls(true);
                Utils.TraceMessage($"{-notEnough}");
                _changeTextView.Text     = $"{-notEnough:N}";
                _changeTextView.CssClass = "SumIsCalculated";
                _rootDockLayout.Refresh();
            }
        }
Ejemplo n.º 4
0
        private void ChangeLayoutStatus(int statusCode)
        {
            _connectedStatusTextView.Text =
                GetFrStatusText(statusCode);

            _isConnectedImage.CssClass =
                GetFrStatusStyle(statusCode);

            _connectionButtonImage.CssClass
                = GetConnectButtonStyle(statusCode);

            _connectionButtonDescriptionTextView.Text =
                GetStatusDescriptionForConnectButton(statusCode);

            ChangeTopInfoTextViews(statusCode);

            _rootLayout.Refresh();
        }