Loading without prompting to save


Author
Message
Neil Turp
Neil Turp
Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)
Group: Forum Members
Posts: 0, Visits: 166
I have a app, xamarin on OSX, it has a list of topics,  When the user selects a topic, the app searches a folder and loads the relevant file if there is one, and shows an empty text editor window if there is not.  The user can edit the file and when they move to another topic, it automatically saves - there is no time when the user is asked to find a file to load or to give a file a name to save.  The code is:

Nevron.Nov.Text.Formats.NTextFormat tf = new Nevron.Nov.text.Formats.NRtfTextFormat();
if (System.IO.File.Exists(<FileName read from list>))
{
     tvKey.LoadFromFile(<Filename>, tf, false);
}
else {
    tvKey.LoadNewDocument(); 
}

      
It all works ok if there is a file there to start with, the problem occurs if there is no data file to read and the user types into the text window.  In this case, the file is saved, all code exits, perfect, and then it shows a dialog that asks the user to Save, Don't Save, Cancel.  I can't see what I've missed.  Any ideas?
Neil
Reply
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi,

Thank you for the detailed description of your project. It appears that there was a bug in our component that resulted in showing the "Save changes" dialog in some cases in which it should not be shown. Fortunately, we have managed to fix the bug and the fix will be included in the upcoming major new version of Nevron Open Vision (v2017.1). The new version will be available for download later today and will also feature many other improvements in our components and the NOV framework.

Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search