Ejemplo n.º 1
0
 /// <summary>
 /// 添加书法家
 /// </summary>
 /// <param name="authors"></param>
 public WAddAuthor(VMAuthors vmAuthors)
 {
     InitializeComponent();
     _author = new T_Author();
     Grd_Author.DataContext = _author;
     _vmAuthors = vmAuthors;
 }
Ejemplo n.º 2
0
 public PRubbings(T_Author author)
 {
     InitializeComponent();
     _vmRubbing = new VMRubbings(author);
     Grd_rubbing.DataContext = _vmRubbing.Cvs_Rubbings;
     Lb_Author.Content = author.Name;
 }
Ejemplo n.º 3
0
 public DevPRubbings(T_Author author)
 {
     InitializeComponent();
     _author = author;
     _vmRubbings = new VMRubbings(_author);
     Gdc_Rubbings.DataContext = _vmRubbings.Cvs_Rubbings;
 }
Ejemplo n.º 4
0
        public void Add()
        {
            T_Author author = new T_Author();
            author.Name = "书法家";
            author.Description = "简介";

            VMAuthors vma = GetVMAuthor();
            vma.AddAuthor(author);
        }
Ejemplo n.º 5
0
        public VMRubbings(T_Author a)
        {
            _author = a;

            CreatRubbingCollection();

            _Cvs_Rubbings = new CollectionViewSource();

            _Cvs_Rubbings.Source = _Ocl_Rubbings;
        }
Ejemplo n.º 6
0
 //private void SaveCallBack(IAsyncResult result)
 //{
 //    if (result.IsCompleted)
 //        System.Diagnostics.Debug.WriteLine("save completed");
 //}
 public void AddAuthor(T_Author a)
 {
     CalligraphyEditor.App.Entities.AddToT_Author(a);
     CalligraphyEditor.App.Entities.SaveChanges();
     _ocl_authors.Add(a);
 }