示例#1
0
 private void BtnNew_Click(object sender, RoutedEventArgs e)
 {
     DbOperator.AddCollection(CollectionName.Text);
     _window.UpdateCollections();
     Dispose();
     _page?.RefreshList();
 }
示例#2
0
        private static void InitLocalDb()
        {
            var defCol = DbOperator.GetCollections().Where(k => k.Locked);

            if (!defCol.Any())
            {
                DbOperator.AddCollection("最喜爱的", true);
            }
        }