Пример #1
0
    public ProjectEdit(Library.ProjectEdit obj)
    {
      _project = obj;
      _nameStatus = new PropertyStatus(_project, "Name");
      _nameStatus.PropertyChanged += _nameStatus_PropertyChanged;
      label.IsVisible = !_nameStatus.IsValid;

      Title = "Edit project";

      var tbi = new ToolbarItem();
      tbi.Text = "Save";
      tbi.Clicked += Save_Clicked;
      ToolbarItems.Add(tbi);
    }
Пример #2
0
        public ProjectEdit(Library.ProjectEdit obj)
        {
            _project    = obj;
            _nameStatus = new PropertyStatus(_project, "Name");
            _nameStatus.PropertyChanged += _nameStatus_PropertyChanged;
            label.IsVisible              = !_nameStatus.IsValid;

            Title = "Edit project";

            var tbi = new ToolbarItem();

            tbi.Text     = "Save";
            tbi.Clicked += Save_Clicked;
            ToolbarItems.Add(tbi);
        }