private static void WriteInFile(string path, string error, string message, string caption, MessageViewMode mode) { string s = DateTime.Now.ToString("########## dd.MM.yyyy HH:mm:ss"); StreamWriter sw = new StreamWriter(path + "errors.txt", true, Encoding.Unicode); sw.WriteLine(s + "\n " + message + "\n" + error); sw.Close(); if (caption != null) { MessageView mv = new MessageView(message, caption, mode); mv.ShowDialog(); } }
private void ShowWindowReading() { try { readingWindow.ShowDialog(); } catch { } }