Beispiel #1
0
 static void Main(string[] args)
 {
     Console.WriteLine("Running...");
     try
     {
         FL_RPC.Init();
     }
     catch (Exception e)
     {
         Console.WriteLine("\n \nERROR: " + e.Message);
         Console.WriteLine("INFO: Exception Name: " + e.GetType());
         Console.WriteLine("\n");
         FL_RPC.StopAndExit();
         Environment.Exit(-1);
     }
 }
Beispiel #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     textBox1.AppendText("Stopping thread... \n");
     FL_RPC.StopAndExit();
     Environment.Exit(0);
 }