Save() public method

public Save ( ) : void
return void
コード例 #1
0
 private void saveButton_Click(object sender, EventArgs e)
 {
     if (langNameBox.Text != "" && !copyFont)
     {
         App_Code.Language L = new App_Code.Language();
         L.Name = langNameBox.Text;
         L.Save();
         this.Close();
     }
     else if (langNameBox.Text != "" && copyFont)
     {
         NewName = langNameBox.Text;
         this.Close();
     }
     else
     {
         MessageBox.Show("Please enter a name.");
     }
 }
コード例 #2
0
 private void saveButton_Click(object sender, EventArgs e)
 {
     if (langNameBox.Text != "" && !copyFont)
     {
         App_Code.Language L = new App_Code.Language();
         L.Name = langNameBox.Text;
         L.Save();
         this.Close();
     }
     else if (langNameBox.Text != "" && copyFont)
     {
         NewName = langNameBox.Text;
         this.Close();
     }
     else
     {
         MessageBox.Show("Please enter a name.");
     }
 }