Click here to Skip to main content
15,888,521 members
Home / Discussions / C#
   

C#

 
QuestionDataGridview Error Pin
Nguyen Sy Bang12-Aug-15 21:46
Nguyen Sy Bang12-Aug-15 21:46 
AnswerRe: DataGridview Error Pin
Richard MacCutchan12-Aug-15 21:54
mveRichard MacCutchan12-Aug-15 21:54 
GeneralMessage Closed Pin
12-Aug-15 22:48
Nguyen Sy Bang12-Aug-15 22:48 
GeneralRe: DataGridview Error Pin
Simon_Whale12-Aug-15 23:23
Simon_Whale12-Aug-15 23:23 
GeneralShorten the time and code for building software Pin
Tiny Grass12-Aug-15 18:07
Tiny Grass12-Aug-15 18:07 
GeneralRe: Shorten the time and code for building software Pin
Richard MacCutchan12-Aug-15 21:07
mveRichard MacCutchan12-Aug-15 21:07 
GeneralRe: Shorten the time and code for building software Pin
Tiny Grass12-Aug-15 21:36
Tiny Grass12-Aug-15 21:36 
QuestionHow to serialize this? Pin
Sphinxniuie12-Aug-15 17:33
Sphinxniuie12-Aug-15 17:33 
C#
if(ex.Message.Contains("Row not found or changed."))
                { // for debugging: get the keys and values in the dictionary log.WriteErrorToLog("******DEBUG START**********", "AddOrder_DEBUG_LOG");
                log.WriteErrorToLog("got this error message:" + ex.Message + " See dictionary values below." , "AddOrder_DEBUG_LOG");
        foreach (KeyValuePair<string, object="">kvp in dict)
                { log.WriteErrorToLog(kvp.Key + "=" + Iif(kvp.Value == null, "null", kvp.Value.ToString()), "AddOrder_DEBUG_LOG"); }
                log.WriteErrorToLog("******DEBUG END**********", "AddOrder_DEBUG_LOG");
                SendEmail("xxxxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx " + xxxxxxxxxxxxxx + ". xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "", "", false); }
        else if
                (ex.Message.Contains("xxxxxxxxxxxxxxxxxx")) { WriteToLog(ex.Message + ex.StackTrace, "Exception", "AddOrder"); SendEmail("xxxxxxxxxxx", "xxxxxxxxxxxxxxxxx " + DateTime.Now, "xxxxxxxxxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxx", "", "", false); }
        else if
                (ex.Message.Contains("Timeout expired."))
                { WriteToLog("DealerImport query timeout around " + DateTime.Now + " Details:" + ex.Message, "Exception", "AddOrder"); }
        else if
                (ex.Message.Contains("xxxxxxxxxxxxxx.")) { WriteToLog("Someone killed the DealerImport query around " + DateTime.Now + " Details:" + ex.Message, "Exception", "AddOrder"); }
 else {
        if (ex.InnerException != null) { WriteToLog(ex.Message + ex.StackTrace + ex.InnerException.Message.ToString(), "Exception", "AddOrder"); }
            else { WriteToLog(ex.Message + ex.StackTrace, "Exception", "AddOrder"); } } } return result;
        }

Confused | :confused: Confused | :confused: Confused | :confused: Confused | :confused: Confused | :confused: Confused | :confused: Confused | :confused: Confused | :confused:

modified 13-Aug-15 0:06am.

QuestionRe: How to serialize this? Pin
Richard MacCutchan12-Aug-15 21:07
mveRichard MacCutchan12-Aug-15 21:07 
AnswerRe: How to serialize this? Pin
Sphinxniuie12-Aug-15 21:13
Sphinxniuie12-Aug-15 21:13 
GeneralRe: How to serialize this? Pin
Richard MacCutchan12-Aug-15 21:31
mveRichard MacCutchan12-Aug-15 21:31 
GeneralRe: How to serialize this? Pin
Sphinxniuie12-Aug-15 21:36
Sphinxniuie12-Aug-15 21:36 
GeneralRe: How to serialize this? Pin
Richard MacCutchan12-Aug-15 21:43
mveRichard MacCutchan12-Aug-15 21:43 
GeneralRe: How to serialize this? Pin
Sphinxniuie12-Aug-15 21:48
Sphinxniuie12-Aug-15 21:48 
GeneralRe: How to serialize this? Pin
Richard MacCutchan12-Aug-15 21:52
mveRichard MacCutchan12-Aug-15 21:52 
QuestionWPF TabControl content memory leak Pin
theonlyavenger12-Aug-15 11:17
theonlyavenger12-Aug-15 11:17 
AnswerRe: WPF TabControl content memory leak Pin
Pete O'Hanlon12-Aug-15 11:24
mvePete O'Hanlon12-Aug-15 11:24 
GeneralRe: WPF TabControl content memory leak Pin
theonlyavenger13-Aug-15 9:41
theonlyavenger13-Aug-15 9:41 
Questionprice calculator Pin
Member 1190452712-Aug-15 5:23
Member 1190452712-Aug-15 5:23 
AnswerRe: price calculator Pin
Eddy Vluggen12-Aug-15 5:31
professionalEddy Vluggen12-Aug-15 5:31 
GeneralRe: price calculator Pin
Member 1190452712-Aug-15 5:45
Member 1190452712-Aug-15 5:45 
GeneralRe: price calculator [warning, long post] Pin
Eddy Vluggen12-Aug-15 6:45
professionalEddy Vluggen12-Aug-15 6:45 
GeneralRe: price calculator [warning, long post] Pin
Member 1190452712-Aug-15 6:59
Member 1190452712-Aug-15 6:59 
GeneralRe: price calculator [warning, long post] Pin
Eddy Vluggen12-Aug-15 7:11
professionalEddy Vluggen12-Aug-15 7:11 
GeneralRe: price calculator [warning, long post] Pin
Matt T Heffron12-Aug-15 14:34
professionalMatt T Heffron12-Aug-15 14:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.