Exemplo n.º 1
0
        private IEnumerator <object> SaveInstanceAs(string targetFilename)
        {
            UseWaitCursor = true;
            Enabled       = false;

            try {
                yield return(Instance.SaveAs(targetFilename));
            } finally {
                UseWaitCursor = false;
                Enabled       = true;
            }
        }