public static SettingsWindow Instance()
 {
     if (instance == null || instance.isClosed)
     {
         instance = new SettingsWindow();
     }
     return instance;
 }
 void settingMenuItem_Click(object sender, EventArgs e)
 {
     SettingsWindow.Instance().Show();
     SettingsWindow.Instance().Activate();
 }