Inheritance: System.Windows.Forms.Form
Exemplo n.º 1
0
 static void Main()
 {
     var dbPath = "UserVocabulary.db3";
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     if (!File.Exists(dbPath))
     {
         var s= File.Create(dbPath);
         s.Close();
         DbOperator.Instance.InitDatabase();
         MessageBox.Show("这是您第一次运行本程序,请先设置词汇量","词库设置",MessageBoxButtons.OK,MessageBoxIcon.Information);
         var diag = new UserVocabularyConfigForm();
         if (diag.ShowDialog() == DialogResult.OK)
         {
             Application.Run(new MainForm());
         }
         else
         {
             File.Delete(dbPath);
         }
     }
     else
     {
         Application.Run(new MainForm());
     }
 }
Exemplo n.º 2
0
        private void ToolStripMenuItemUserVocabularyConfig_Click(object sender, EventArgs e)
        {
            UserVocabularyConfigForm form = new UserVocabularyConfigForm();

            form.Show();
        }
Exemplo n.º 3
0
 private void ToolStripMenuItemUserVocabularyConfig_Click(object sender, EventArgs e)
 {
     UserVocabularyConfigForm form=new UserVocabularyConfigForm();
     form.Show();
 }