Exemplo n.º 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));
            }
        }
Exemplo n.º 2
0
 private void ButtonSave_Click(object sender, RoutedEventArgs e)
 {
     SaveProject?.Invoke(sender, EventArgs.Empty);
 }