상속: System.Windows.Forms.Form
예제 #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());
     }
 }
예제 #2
0
        private void ToolStripMenuItemUserVocabularyConfig_Click(object sender, EventArgs e)
        {
            UserVocabularyConfigForm form = new UserVocabularyConfigForm();

            form.Show();
        }
예제 #3
0
 private void ToolStripMenuItemUserVocabularyConfig_Click(object sender, EventArgs e)
 {
     UserVocabularyConfigForm form=new UserVocabularyConfigForm();
     form.Show();
 }