ICS309HeaderViewModel()
 {
     if (ICS309ViewModel.Instance.CommLog == null)
     {
         //ICS309ViewModel.Instance.InitializeAsync();
         InitializeCommLog();
     }
     OperationalPeriod = $"{DateTimeStrings.DateTimeString(OperationalPeriodStart)} to {DateTimeStrings.DateTimeString(OperationalPeriodEnd)}";
     //RadioNetName = IdentityViewModel.Instance.UseTacticalCallsign ? $"{IdentityViewModel.Instance.TacticalCallsign}" : "";
     OperatorNameCallsign = ICS309ViewModel.Instance.CommLog.OperatorNameCallsign;
 }
Пример #2
0
        //public async Task InitializeAsync()
        public void InitializeAsync()
        {
            FromOpenFile = false;

            _CommLog = new CommLog();
            _CommLog.OperationalPeriodFrom = DateTime.Today;
            _CommLog.OperationalPeriodTo   = DateTime.Now;
            _CommLog.OperatorNameCallsign  = $"{IdentityViewModel.Instance.UserName}, {IdentityViewModel.Instance.UserCallsign}";
            _CommLog.DateTimePrepared      = DateTimeStrings.DateTimeString(DateTime.Now);
            //await BuildLogDataSetAsync(_CommLog.OperationalPeriodFrom, _CommLog.OperationalPeriodTo);
        }