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