Model lost in space
-
In the code where the view get's cleared from the current model (i.e. when you want to save changes in the program but have everything cleared), I have found this little gem: (Variable-Names changed to protect the innocent)
if(view != null)
{
SetUI(view);
myTree.Update(view);
}
else
{
MessageBox.Show("Error when saving, Model is lost in space");
}As you'd assume, every change is lost when the view is null, and the user has no idea what just happened. :(
-
In the code where the view get's cleared from the current model (i.e. when you want to save changes in the program but have everything cleared), I have found this little gem: (Variable-Names changed to protect the innocent)
if(view != null)
{
SetUI(view);
myTree.Update(view);
}
else
{
MessageBox.Show("Error when saving, Model is lost in space");
}As you'd assume, every change is lost when the view is null, and the user has no idea what just happened. :(
dakovinc wrote:
and the user has no idea what just happened. :(
Of course they have! they know that the data he entered took the wrong path and ended up in a black hole! ;P
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)
-
dakovinc wrote:
and the user has no idea what just happened. :(
Of course they have! they know that the data he entered took the wrong path and ended up in a black hole! ;P
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)
Sentenryu wrote:
Of course they have! they know that the data he entered took the wrong path and ended up in a black hole! ;-P
:laugh: :thumbsup:
Always Keep Smiling. Yours Pankaj Nikam
-
In the code where the view get's cleared from the current model (i.e. when you want to save changes in the program but have everything cleared), I have found this little gem: (Variable-Names changed to protect the innocent)
if(view != null)
{
SetUI(view);
myTree.Update(view);
}
else
{
MessageBox.Show("Error when saving, Model is lost in space");
}As you'd assume, every change is lost when the view is null, and the user has no idea what just happened. :(
-
In the code where the view get's cleared from the current model (i.e. when you want to save changes in the program but have everything cleared), I have found this little gem: (Variable-Names changed to protect the innocent)
if(view != null)
{
SetUI(view);
myTree.Update(view);
}
else
{
MessageBox.Show("Error when saving, Model is lost in space");
}As you'd assume, every change is lost when the view is null, and the user has no idea what just happened. :(
It reminds me of an old term for a crashed program that 'went to east hyperspace': 1.hyperspace A memory location that is far away from where the program counter should be pointing, especially a place that is inaccessible because it is not even mapped in by the virtual-memory system. “Another core dump — looks like the program jumped off to hyperspace somehow.” (Compare jump off into never-never land.) This usage is from the SF notion of a spaceship jumping into hyperspace, that is, taking a shortcut through higher-dimensional space — in other words, bypassing this universe. The variant east hyperspace is recorded among CMU and Bliss hackers.
At least artificial intelligence already is superior to natural stupidity
-
In the code where the view get's cleared from the current model (i.e. when you want to save changes in the program but have everything cleared), I have found this little gem: (Variable-Names changed to protect the innocent)
if(view != null)
{
SetUI(view);
myTree.Update(view);
}
else
{
MessageBox.Show("Error when saving, Model is lost in space");
}As you'd assume, every change is lost when the view is null, and the user has no idea what just happened. :(
-
In the code where the view get's cleared from the current model (i.e. when you want to save changes in the program but have everything cleared), I have found this little gem: (Variable-Names changed to protect the innocent)
if(view != null)
{
SetUI(view);
myTree.Update(view);
}
else
{
MessageBox.Show("Error when saving, Model is lost in space");
}As you'd assume, every change is lost when the view is null, and the user has no idea what just happened. :(