/// <summary> /// Called when [execute export to XML]. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="System.Windows.Input.ExecutedRoutedEventArgs"/> instance containing the event data.</param> private static void OnExecuteExportToXML(object sender, ExecutedRoutedEventArgs args) { GanttControl gantt = args.Source as GanttControl; if (gantt.ExportToXML()) { MessageBox.Show("Tasks exported successfully.", "XML Import/Export", MessageBoxButton.OK, MessageBoxImage.Information); } }
/// <summary> /// Called when [execute save as XML]. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="System.Windows.Input.ExecutedRoutedEventArgs"/> instance containing the event data.</param> private static void OnExecuteSaveAsXML(object sender, ExecutedRoutedEventArgs args) { GanttControl gantt = args.Source as GanttControl; gantt.ExportToXML(); }
/// <summary> /// Called when [execute save XML]. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="System.Windows.Input.ExecutedRoutedEventArgs"/> instance containing the event data.</param> private static void OnExecuteSaveXML(object sender, ExecutedRoutedEventArgs args) { GanttControl gantt = args.Source as GanttControl; gantt.ExportToXML("../../Data/ProjectData.xml"); }