public BookCateEdit(BookCate bc, LibraryManage lm) { InitializeComponent(); bookCate = bc; libraryManage = lm; parentBookCate = libraryManage.bookManage.getBookCate(bookCate.ParentId); }
public void Show(List <User> list, ListView lv, LibraryManage lm) { this.list = list; this.lv = lv; libraryManage = lm; this.Show(); return; }
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; }
public BookEdit(Book b, LibraryManage lm) { InitializeComponent(); libraryManage = lm; book = b; }
public BorrowBook(LibraryManage lm) { InitializeComponent(); libraryManage = lm; }
public login(LibraryManage lm) { InitializeComponent(); libraryManage = lm; user = libraryManage.user; }
public ReaderEdit(Reader r, LibraryManage lm) { InitializeComponent(); reader = r; libraryManage = lm; }
public ReaderCateEdit(ReaderCate c, LibraryManage lm) { InitializeComponent(); cate = c; libraryManage = lm; }
public SystemMain(LibraryManage lm) { InitializeComponent(); libraryManage = lm; user = lm.user; }
public BakDB(LibraryManage lm) { InitializeComponent(); libraryManage = lm; }
public ReaderAdd(LibraryManage lm) { InitializeComponent(); libraryManage = lm; }
public UserManages(LibraryManage lm) { InitializeComponent(); libraryManage = lm; }
public EditPassword(LibraryManage lm) { InitializeComponent(); libraryManage = lm; user = libraryManage.user; }
public UserEdit(User u, LibraryManage lm) { InitializeComponent(); libraryManage = lm; user = u; }