コード例 #1
0
 public bool IsEquivalent(Repository other)
 {
     if (other == null)
     {
         return false;
     }
     if (!(this.DriverLoader.IsValid && other.DriverLoader.IsValid))
     {
         return (this.GetStore().ToString() == other.GetStore().ToString());
     }
     if (!this.DriverLoader.Equals(other.DriverLoader))
     {
         return false;
     }
     return this.DriverLoader.Driver.AreRepositoriesEquivalent(this, other);
 }
コード例 #2
0
 internal string ShowConnectionDialog(string repositoryData, bool isNewRepository)
 {
     Repository cxInfo = new Repository(XElement.Parse(repositoryData));
     if (this.ShowConnectionDialog(cxInfo, isNewRepository))
     {
         return cxInfo.GetStore().ToString();
     }
     return null;
 }