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

            VMAuthors vma = GetVMAuthor();
            vma.AddAuthor(author);
        }
コード例 #5
0
ファイル: VMRubbings.cs プロジェクト: JiNanCVT/Calligraphy
        public VMRubbings(T_Author a)
        {
            _author = a;

            CreatRubbingCollection();

            _Cvs_Rubbings = new CollectionViewSource();

            _Cvs_Rubbings.Source = _Ocl_Rubbings;
        }
コード例 #6
0
ファイル: VMAuthors.cs プロジェクト: JiNanCVT/Calligraphy
 //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);
 }