|
I created a RIA aplication (SL4) that populates a grid from an MSSQL 2008 DB.
App has been working fine.
My question is: If I make some changes to the table design (add new column or change the name of the column), what is the best way to refresh that connection without having to start from scratch (craete the app, create the ADO, create the domain services...)
any help is greatly appreciated
|
|
|
|
|
In your Entity model (edmx), there should be a context menu option "Update from database" - that shoud pick up your changes.
C# has already designed away most of the tedium of C++.
|
|
|
|
|
hi,
I have a problème, in my application (world cup, south affrica) I have a 64 Matchs
in Groupe Phase i have a 48 Matchs and in Final Phase i have a 16 Matchs
Question:
How i do for affiche this Matchs and what's tools wpf used ?
help me please.
|
|
|
|
|
I would love to help you, but I am afraid I have no idea what you are talking about. Could you clarify what you are Turing to achieve in English please.
|
|
|
|
|
Dude...
affiche French [afiʃ] n
(Fine Arts & Visual Arts / Art Terms) a poster or advertisement, esp one drawn by an artist, as for the opening of an exhibition
[from afficher to post]
How could you not understand that?
|
|
|
|
|
To use WPF, we need to use Visual Studio.
Unfortunately, your question is not very clear to me beyond that.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
|
|
|
|
|
Am using this code and the problem is that, CPU usage is 100% when the dialog pops up for the user to confirm access to the web came and/or microphone. This happens with all browsers, you just leave the silverlight popup to wait and you can see the plugin to crash after some time.
But this is not a problem that occures only in browser enviropment, even if i run the application out of the box, with the slllauncher.exe, the same problem occures. 100% cpu usage and the dialog waits there. In browsers the dialog crashes cause of the plugin manager sees 100% cpu and thinks the silverlight plugin has crashed. Am using SL 4 with Visual studio 10, same thing happens in IE,FF4,FF3.5,Chrome.
This causes problems in PC's with windowsXp and with slow single core cpus, cause gets 100% and even the dialog freezes.
private void StartStopRecBtn_Click(object sender, RoutedEventArgs e)<br />
{<br />
if (!recordingStatus)<br />
{<br />
ReadOnlyCollection<AudioCaptureDevice> devices = CaptureDeviceConfiguration.GetAvailableAudioCaptureDevices();<br />
if (devices.Count == 0)<br />
return;<br />
<br />
if (!CaptureDeviceConfiguration.AllowedDeviceAccess)<br />
{<br />
CaptureDeviceConfiguration.RequestDeviceAccess();<br />
<br />
}<br />
if (CaptureDeviceConfiguration.AllowedDeviceAccess)<br />
{<br />
recImg.Source = new BitmapImage(new Uri("Images/StopRecording.jpg", UriKind.RelativeOrAbsolute));<br />
if (audioSink == null)<br />
{<br />
capture = new CaptureSource();<br />
capture.AudioCaptureDevice = CaptureDeviceConfiguration.GetDefaultAudioCaptureDevice();<br />
capture.VideoCaptureDevice = null;<br />
audioSink = new MemoryStreamAudioSink();<br />
audioSink.CaptureSource = capture;<br />
}<br />
else<br />
{<br />
<br />
audioSink.CaptureSource.Stop();<br />
audioSink = null;<br />
}<br />
<br />
try<br />
{<br />
<br />
if (audioSink != null)<br />
audioSink.CaptureSource.Start();<br />
else<br />
StatusText.Text = "Not ready to Record..";<br />
}<br />
catch (InvalidOperationException ex)<br />
{<br />
MessageBox.Show("There was a problem starting the webcam " +<br />
"If using a Mac, verify default device settings." +<br />
"Right click app to access the Configuration settings." + ex.Message + " " + ex.InnerException);<br />
}<br />
<br />
Thread.Sleep(TimeSpan.FromSeconds(0.5));<br />
recordingStatus = true;<br />
}<br />
}<br />
else<br />
{<br />
recordingStatus = false;<br />
StatusText.Text = "Ready to Record..";<br />
recImg.Source = new BitmapImage(new Uri("Images/StartRecording.jpg", UriKind.RelativeOrAbsolute));<br />
audioSink.CaptureSource.Stop();<br />
<br />
}<br />
}
http://img864.imageshack.us/img864/5869/slbug.png[^]
|
|
|
|
|
Someone know what is this dll file "Log4Net.dll" ???
In my SL project , itt is located in the " \bin\log4net.dll " folder on the server. If i delete this file, it will recreate automatically.
And is giving errors during compile.
"For as long as men massacre animals, they will kill each other. Indeed, he who sows the seed of murder and pain cannot reap joy and love." Pythagoras
|
|
|
|
|
|
how cann i remove the ereference to this dll ???
or remove the file ???
as it's causing too much trouble
"For as long as men massacre animals, they will kill each other. Indeed, he who sows the seed of murder and pain cannot reap joy and love." Pythagoras
|
|
|
|
|
If it's not in your project's references, then you're probably using a third-party library that uses it.
Maybe you should try to diagnose the bug instead of cutting out dependencies.
|
|
|
|
|
i tried to remove the crystal report references in my web.config file and havn't had problems.(no error in compile time and file isn't recreating after deleting it).
So it mean Crystal Report is using this Log4Net ???
I installed "SAP Crisal Report, version for Windows".
"For as long as men massacre animals, they will kill each other. Indeed, he who sows the seed of murder and pain cannot reap joy and love." Pythagoras
|
|
|
|
|
Maybe... I don't know. But something you're referencing must be pulling in log4net, or it wouldn't be copying over.
Again, though... log4net generally works very well... Maybe you should try to track down the error instead of trying to wipe out the entire library.
|
|
|
|
|
Have you ever used Crystal Report in your Silverlight project.??
"For as long as men massacre animals, they will kill each other. Indeed, he who sows the seed of murder and pain cannot reap joy and love." Pythagoras
|
|
|
|
|
No, I use log4net in a C# windows service.
|
|
|
|
|
Hi Ian
and what do you this log4net use for ??? to Login ??
"For as long as men massacre animals, they will kill each other. Indeed, he who sows the seed of murder and pain cannot reap joy and love." Pythagoras
|
|
|
|
|
Go to the site I linked, and see for yourself... It's for writing log files.
|
|
|
|
|
Thanks Ian to help
"For as long as men massacre animals, they will kill each other. Indeed, he who sows the seed of murder and pain cannot reap joy and love." Pythagoras
|
|
|
|
|
jadughar wrote: So it mean Crystal Report is using this Log4Net ???
No. Something else might be though.
|
|
|
|
|
How have you obtained this Dll?
Silverlight may not support this version of the Dll.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
|
|
|
|
|
Hi
I installed "SAP Crystal Report version for Visual Studio" .
In my web project when i tried to use Crystal Report to generate reports , and it generated this dll..
have yout ever tried to use Crystal Report in your web project ??
"For as long as men massacre animals, they will kill each other. Indeed, he who sows the seed of murder and pain cannot reap joy and love." Pythagoras
|
|
|
|
|
In a textbox of my wpf application, I would like to only allow numbers i.e.:
21 or 19.50 or 12.75 or 10
Can you see how my code below can be corrected because it only allows numbers such as 21, 1950, 1275, 10, etc... ?
Thank you
private bool IsDecimal(string text)
{
bool blnValidDecimal = false;
foreach (char c in text)
{
if (Char.IsNumber(c))
{
blnValidDecimal = true;
}
if (char.IsDigit(c))
{
blnValidDecimal = true;
}
}
return blnValidDecimal;
}
private void txtAvgGrade_PreviewTextInput(object sender, TextCompositionEventArgs e)
{
e.Handled = !IsDecimal(e.Text);
}
|
|
|
|
|
You might find decimal.TryParse useful.
decimal d;
return decimal.TryParse(text, out d);
|
|
|
|
|
Rather than attempting to reinvent the wheel, why not make use of the Attached Behavior I wrote here[^]? It gives you a lot of flexibility in how you accept your numbers, and manages features such as disallowing/allowing negative numbers, the number of decimal places allowed, whether or not the textbox accepts decimals or not.
|
|
|
|
|
thanks but I would like to get this existing code working.
Any thoughts on that please?
Thanks
|
|
|
|