public void OnIsCheckedChanged(TAccountItem accountItem) { this.OnPropertyChanged(t => t.IsAllChecked); this.OnPropertyChanged(t => t.SelectedItems); foreach (var item in Items.Where(t => t.IsChecked)) { item.OnPropertyChanged(t => t.CornerRadius); } Commands.Update(); }
public void CancelEdit() { if (_Clone != null) { Name = _Clone.Name; UserID = _Clone.UserID; Username = _Clone.Username; Password = _Clone.Password; Url = _Clone.Url; AppID = _Clone.AppID; _Clone = null; } }
public void Show(TAccountItem editingItem) { EditingObject = editingItem; _Form = new TAccountEditorView(); _Form.DataContext = this; _Form.MouseDown += _Form_MouseDown; _Form.Closed += _Form_Closed; EditingObject.PropertyChanged += EditingObject_PropertyChanged; _Form.Title = $"Edit Account : {editingItem.Name}"; _Form.Show(); _Form.Activate(); }
public void StartEdit() { //_Clone = (TAccountItem)MemberwiseClone(); _Clone = new TAccountItem { Name = Name, UserID = UserID, Username = Username, Password = Password, Url = Url, AppID = AppID }; TAccountEditor Editor = new TAccountEditor(); Editor.Show(this); }
public void EndEdit() { _Clone = null; }
private void Launch(object obj) { TAccountItem accountItem = (TAccountItem)obj; System.Diagnostics.Process.Start("http://" + accountItem.Url); }