public ChatCategorizeTreeItem Clone() { lock (this.ThisLock) { return(JsonUtils.Clone(this)); } }
public StoreTreeItem Clone() { lock (this.ThisLock) { return(JsonUtils.Clone(this)); } }
public MulticastMessageItem Clone() { lock (this.ThisLock) { return(JsonUtils.Clone(this)); } }
public LinkItem Clone() { lock (this.ThisLock) { return(JsonUtils.Clone(this)); } }
public ProfileSetting Clone() { lock (this.ThisLock) { return(JsonUtils.Clone(this)); } }
/// <summary> /// Initializes a new instance of the <see cref="SettingsViewModel"/> class. /// </summary> public SettingsViewModel() { this.AcceptCommand = new RelayCommand(o => this.Accept()); this.ResetWindowLocationCommand = new RelayCommand(o => this.ResetWindowLocation()); this.Settings = ApplicationManager.Settings; this.SettingsCopy = JsonUtils.Clone(ApplicationManager.Settings); }
/// <summary> /// Initializes a new instance of the <see cref="SettingsViewModel"/> class. /// </summary> public SettingsViewModel() { this.AcceptCommand = new RelayCommand(o => this.Accept()); this.ResetToolbarLocationCommand = new RelayCommand(o => this.ResetToolbarLocation()); this.Settings = ApplicationManager.Settings; this.SettingsCopy = JsonUtils.Clone(ApplicationManager.Settings); this.FileExtensions = ApplicationManager.SupportedImageTypes; }
/// <summary> /// Initializes a new instance of the <see cref="SettingsViewModel"/> class. /// </summary> public SettingsViewModel() { this.SaveChangesCommand = new RelayCommand((o) => this.SaveChanges()); this.SettingsCopy = JsonUtils.Clone(ApplicationManager.Settings); this.Extensions = new List <ExtensionViewModel>(); foreach (var extension in ApplicationManager.Extensions) { var viewModel = new ExtensionViewModel(this) { Extension = extension }; foreach (var action in extension.Actions) { var assignedHotKey = ApplicationManager.HotKeys.FirstOrDefault(hk => hk.Extension == extension && hk.Action == action); var extensionAction = new ExtensionActionViewModel(viewModel) { Action = action, AssignedHotKey = assignedHotKey, Extension = extension }; viewModel.Actions.Add(extensionAction); } this.Extensions.Add(viewModel); } this.SelectedExtension = this.Extensions.FirstOrDefault(); this.Themes = WindowManager.Themes; this.Accents = WindowManager.Accents; this.SelectedTheme = this.Themes.FirstOrDefault(t => t.DirectoryName == this.SettingsCopy.Theme); }