static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (Settings.Default.IsInitialized == false)
            {
                var dialog = new SettingDialog();
                if (dialog.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
            }

            var mainForm = new MainForm();
            mainForm.OpenClient();
            Application.Run();
        }
 private void _settingsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     var dialog = new SettingDialog();
     if (dialog.ShowDialog(this) == DialogResult.OK)
     {
         OpenClient();
     }
 }