コード例 #1
0
        private void SaveProject_OnClick(object sender, RoutedEventArgs e)
        {
            var saveFileDialog = new SaveFileDialog()
            {
                Filter = "Planning Game File (*.rplg)|*.rplg"
            };

            if (saveFileDialog.ShowDialog() == true)
            {
                SaveProject?.Invoke(this, new FileEventArgs(saveFileDialog.FileName));
            }
        }
コード例 #2
0
 private void ButtonSave_Click(object sender, RoutedEventArgs e)
 {
     SaveProject?.Invoke(sender, EventArgs.Empty);
 }