コード例 #1
0
        /// <summary>
        /// Called when [execute import from 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 OnExecuteImportFromXML(object sender, ExecutedRoutedEventArgs args)
        {
            GanttControl gantt = args.Source as GanttControl;

            if (gantt.ImportFromXML())
            {
                MessageBox.Show("Tasks imported successfully.", "XML Import/Export", MessageBoxButton.OK, MessageBoxImage.Information);
            }
        }
コード例 #2
0
        /// <summary>
        /// Called when [execute load 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 OnExecuteLoadXML(object sender, ExecutedRoutedEventArgs args)
        {
            GanttControl gantt = args.Source as GanttControl;

            gantt.ImportFromXML();
        }