MapSuiteGisEditor/GisEditorInfrastructure/Shares/Validators.cs
/// <summary>
/// Checks the are same projects opened.
/// </summary>
/// <param name="uri">The URI.</param>
/// <param name="projectPluginManager">The project plugin manager.</param>
/// <exception cref="System.ArgumentException">This project is already open.;uri</exception>
Checks the are same projects opened.
Checks the are same projects opened .
public static void CheckAreSameProjectsOpened(Uri uri, ProjectPluginManager projectPluginManager)
        {
            if (projectPluginManager.IsLoaded && projectPluginManager.ProjectUri != null
                && uri != null
                && projectPluginManager.ProjectUri.AbsolutePath.Equals(uri.AbsolutePath, StringComparison.OrdinalIgnoreCase)
                && !projectPluginManager.ProjectUri.AbsolutePath.Equals("blank", StringComparison.OrdinalIgnoreCase))
            {
                throw new ArgumentException(GisEditor.LanguageManager.GetStringResource("GisEditorUserControlAlreadyOpenMessage"), "uri");
            }
        }
public static void CheckAreSameProjectsOpened ( Uri uri , ProjectPluginManager projectPluginManager ) { if ( projectPluginManager . IsLoaded && projectPluginManager . ProjectUri != null && uri != null && projectPluginManager . ProjectUri . AbsolutePath . Equals ( uri . AbsolutePath , StringComparison . OrdinalIgnoreCase ) && ! projectPluginManager . ProjectUri . AbsolutePath . Equals ( " " , StringComparison . OrdinalIgnoreCase ) ) { throw new ArgumentException ( GisEditor . LanguageManager . GetStringResource ( " " ) , " " ) ; } }
Checks the are same projects opened.
Checks the are same projects opened .
This project is already open.;uri
This project is already open . ; uri
uri
Uri
None
projectPluginManager
ProjectPluginManager
The project plugin manager.
The project plugin manager .