private void Indicator_Click(object sender, EventArgs e) { ClientApi.KillTimers(); Communication.SendShutdownSignal(); Communication.KillCloseThread(); Close(); }
static void OnProcessExit(object sender, EventArgs e) { ClientApi.KillTimers(); Communication.KillCloseThread(); Communication.SendShutdownSignal(); }