Esempio n. 1
0
        private void SetDirty(object sender, EventArgs e = null, bool isDirty = true)
        {
            if (_isLoading)
            {
                return;
            }

            this.Text = AppInfo.AppName + (isDirty ? " *" : "");
            _isDirty  = isDirty;

            if (sender == pathSource)
            {
                _currentTask.Source.Path = pathSource.Text;
            }
            if (sender == txtFilter)
            {
                _currentTask.Source.Filter = txtFilter.Text;
            }
            if (sender == pathSource || sender == txtFilter)
            {
                SourceUpdated();
            }

            if (isDirty)
            {
                _currentTask?.SetDirty();
            }
        }