Reset() 공개 메소드

public Reset ( bool enableHotkeys ) : System.Threading.Tasks.Task
enableHotkeys bool
리턴 System.Threading.Tasks.Task
        private async Task Save(bool finalize)
        {
            Model.Save();

            await App.Current.Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, (Action)(async() =>
            {
                Sidebar _sidebar = App.Current.Sidebar;

                if (_sidebar == null)
                {
                    return;
                }

                await _sidebar.Reset(finalize);
            }));
        }
예제 #2
0
        private void Save(bool finalize)
        {
            Model.Save();

            Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.ApplicationIdle, (Action)(() =>
            {
                Sidebar _sidebar = (Application.Current as App).GetSidebar;

                if (_sidebar == null)
                {
                    return;
                }

                _sidebar.Reset(finalize);
            }));
        }