// Copyright (c) 2005 Daniel Grunwald // Licensed under the terms of the "BSD License", see doc/license.txt using System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; namespace Base { /// /// Interface for content displayed in the application. /// public interface IViewContent { /// /// Gets the control used to display this view content. /// Control Control { get; } string Title { get; } event EventHandler TitleChanged; /// /// Closes the view content. Returns true when the content was closed successfully, /// false when closing the content was aborted (e.g. by the user) /// bool Close(); /// /// Saves the content, e.g. to a file. Returns true when the content has been saved successfully. /// bool Save(); /// /// Asks the user to specify the file location/name and saves the content using the new name. /// Returns true when the content has been saved successfully. /// bool SaveAs(); } }