public static void StopLog() { if (Log != null) { Log.Close(); Log.Dispose(); Log = null; } }
public static void StartLog() { if (Log == null) { Log = new FormLog(); Log.FormClosed += Log_FormClosed1; Log.Show(); Log.AddLog("Log started"); } }
private static void Log_FormClosed1(object sender, FormClosedEventArgs e) { Log.Dispose(); Log = null; }