コード例 #1
0
        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();
        }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
        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();
        }
コード例 #4
0
        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);
        }
コード例 #5
0
 public void EndEdit()
 {
     _Clone = null;
 }
コード例 #6
0
        private void Launch(object obj)
        {
            TAccountItem accountItem = (TAccountItem)obj;

            System.Diagnostics.Process.Start("http://" + accountItem.Url);
        }