清理多余引用
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
using Nice3point.Revit.Toolkit.External;
|
||||
|
||||
using ShrlAlgoToolkit.RevitAddins.RvCommon;
|
||||
using ShrlAlgoToolkit;
|
||||
using ShrlAlgoToolkit.RevitAddins;
|
||||
|
||||
namespace ShrlAlgoToolkit.RevitAddins.General;
|
||||
|
||||
@@ -20,18 +18,18 @@ public class AutoSaveCmd : ExternalCommand
|
||||
return;
|
||||
}
|
||||
AutoSaveViewModel viewModel = new();
|
||||
General.AutoSaveView view = new()
|
||||
AutoSaveView view = new()
|
||||
{
|
||||
DataContext = viewModel
|
||||
};
|
||||
view.ShowDialog();
|
||||
|
||||
if (RevitAddins.Properties.Settings.Default.IsActiveAutoSave)
|
||||
if (Properties.Settings.Default.IsActiveAutoSave)
|
||||
{
|
||||
if (RevitAddins.Properties.Settings.Default.AutoSaveIntervalTime >= 1)
|
||||
if (Properties.Settings.Default.AutoSaveIntervalTime >= 1)
|
||||
{
|
||||
timer.Interval = RevitAddins.Properties.Settings.Default.AutoSaveIntervalTime * 60 * 1000;
|
||||
RevitAddins.Properties.Settings.Default.Save();
|
||||
timer.Interval = Properties.Settings.Default.AutoSaveIntervalTime * 60 * 1000;
|
||||
Properties.Settings.Default.Save();
|
||||
}
|
||||
//timer.Enabled = Properties.Settings.Default.AutoSave;
|
||||
timer.Start();
|
||||
|
||||
Reference in New Issue
Block a user