예제 #1
0
        void RefreshStatus()
        {
            var stateViewModel = SipAccountStatusViewModel.Create(Core);

            labelStatus.ForeColor  = stateViewModel.Color;
            labelStatus.Text       = $"{stateViewModel.Text} {stateViewModel.TimeElapsed}";
            pictureBoxStatus.Image = stateViewModel.Image;
        }
예제 #2
0
 void UpdateAccountStateUi(ICore core)
 {
     Header = string.Format(_baseTitle, SipAccountStatusViewModel.Create(core)?.Text?.ToLower() ?? @"-");
 }