Exemplo n.º 1
0
        private void IsTiming_Changed(object sender, bool e)
        {
            var icon = e ? FeatherSymbol.Pause : FeatherSymbol.Play;

            StatusIcon.Symbol = icon;
            if (e)
            {
                vm.BeginStamp = DateTime.Now;
            }
            else
            {
                var ts          = DateTime.Now - vm.BeginStamp;
                var historyItem = new HistoryItem(TitleBox.Text ?? "Untitled", vm.CurrentSelectedFolder.Id, Convert.ToInt32(ts.TotalSeconds));
                vm.AddHistoryItem(historyItem);
                TitleBox.Text = "Untitled";
            }
        }