Skip to content

Commit

Permalink
Resolve Warning Architect ISML
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Feb 19, 2021
1 parent 736de00 commit ae697ea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
17 changes: 0 additions & 17 deletions RevitElementBipChecker/Model/RelayCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,6 @@ public void Execute(object parameter = null)
}
#endregion

#region Support
public class CloseCommand : ICommand
{
public bool CanExecute(object parameter)
{
return true;
}

public event EventHandler CanExecuteChanged;

public void Execute(object parameter)
{
Window myWin = parameter as Window;
myWin.Close();
}
}
#endregion
}
}

5 changes: 5 additions & 0 deletions RevitElementBipChecker/RevitElementBipChecker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
<Deterministic>true</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
None
</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
Expand Down
6 changes: 4 additions & 2 deletions RevitElementBipChecker/Viewmodel/BipCheckerViewmodel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ public ObservableCollection<ParameterData> Data
this.State = "Element Current";
}
catch (Autodesk.Revit.Exceptions.OperationCanceledException ) { }
catch(Exception e) { }

catch (Exception)
{
// ignored
}
}
if (data == null)
{
Expand Down

0 comments on commit ae697ea

Please sign in to comment.