Ejemplo n.º 1
0
 public BookCateEdit(BookCate bc, LibraryManage lm)
 {
     InitializeComponent();
     bookCate       = bc;
     libraryManage  = lm;
     parentBookCate = libraryManage.bookManage.getBookCate(bookCate.ParentId);
 }
Ejemplo n.º 2
0
 public void Show(List <User> list, ListView lv, LibraryManage lm)
 {
     this.list     = list;
     this.lv       = lv;
     libraryManage = lm;
     this.Show();
     return;
 }
Ejemplo n.º 3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            /*
             * SQLiteConn conn = new SQLiteConn();
             * conn.open();
             * DbDataReader reader = conn.execReader("select Code from Users where Code REGEXP(20)");
             * while (reader.Read())
             * {
             *  MessageBox.Show(reader[0].ToString());
             * }
             */

            LibraryManage libraryManage = new LibraryManage();

            if (!libraryManage.isDbExits())
            {
                MessageBox.Show("数据库文件不存在于以下位置:\n" + libraryManage.getDbPath(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            if (!libraryManage.isDb())
            {
                MessageBox.Show("数据库是损坏的!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            //初始化
            libraryManage.init();

            login m_login = new login(libraryManage);

            if (m_login.ShowDialog() == DialogResult.Yes)
            {
                SystemMain sm = new SystemMain(libraryManage);
                Application.Run(sm);
                libraryManage.exit();
            }

            //测试借阅功能
            //Application.Run(new BorrowManage("liyifan"));
        }
 public SystemSetting(LibraryManage lm)
 {
     InitializeComponent();
     libraryManage = lm;
 }
 public BookCateManage(LibraryManage lm)
 {
     InitializeComponent();
     libraryManage = lm;
 }
 public BorrowHistory(LibraryManage lm)
 {
     InitializeComponent();
     libraryManage = lm;
 }
Ejemplo n.º 7
0
 public BookEdit(Book b, LibraryManage lm)
 {
     InitializeComponent();
     libraryManage = lm;
     book          = b;
 }
Ejemplo n.º 8
0
 public BorrowBook(LibraryManage lm)
 {
     InitializeComponent();
     libraryManage = lm;
 }
Ejemplo n.º 9
0
 public login(LibraryManage lm)
 {
     InitializeComponent();
     libraryManage = lm;
     user          = libraryManage.user;
 }
Ejemplo n.º 10
0
 public ReaderEdit(Reader r, LibraryManage lm)
 {
     InitializeComponent();
     reader        = r;
     libraryManage = lm;
 }
 public ReaderCateEdit(ReaderCate c, LibraryManage lm)
 {
     InitializeComponent();
     cate          = c;
     libraryManage = lm;
 }
Ejemplo n.º 12
0
 public SystemMain(LibraryManage lm)
 {
     InitializeComponent();
     libraryManage = lm;
     user          = lm.user;
 }
Ejemplo n.º 13
0
 public BakDB(LibraryManage lm)
 {
     InitializeComponent();
     libraryManage = lm;
 }
Ejemplo n.º 14
0
 public ReaderAdd(LibraryManage lm)
 {
     InitializeComponent();
     libraryManage = lm;
 }
Ejemplo n.º 15
0
 public UserManages(LibraryManage lm)
 {
     InitializeComponent();
     libraryManage = lm;
 }
Ejemplo n.º 16
0
 public EditPassword(LibraryManage lm)
 {
     InitializeComponent();
     libraryManage = lm;
     user          = libraryManage.user;
 }
Ejemplo n.º 17
0
 public UserEdit(User u, LibraryManage lm)
 {
     InitializeComponent();
     libraryManage = lm;
     user          = u;
 }