private void ChangePasswordForm_Load(object sender, EventArgs e) { this.Channels = new LibraryChannelCollection(); this.Channels.BeforeLogin += new BeforeLoginEventHandle(Channels_BeforeLogin); this.Channels.AfterLogin += new AfterLoginEventHandle(Channels_AfterLogin); stop = new DigitalPlatform.Stop(); stop.Register(MainForm.stopManager, true); // 和容器关联 }
private void ChangePasswordForm_Load(object sender, EventArgs e) { this.Channels = new LibraryChannelCollection(); this.Channels.BeforeLogin += new BeforeLoginEventHandle(Channels_BeforeLogin); this.Channels.AfterLogin += new AfterLoginEventHandle(Channels_AfterLogin); stop = new DigitalPlatform.Stop(); stop.Register(MainForm.stopManager, true); // 和容器关联 }
private void DupForm_Load(object sender, EventArgs e) { this.Channels = new LibraryChannelCollection(); this.Channels.BeforeLogin += new BeforeLoginEventHandle(Channels_BeforeLogin); this.Channels.AfterLogin += new AfterLoginEventHandle(Channels_AfterLogin); stop = new DigitalPlatform.Stop(); stop.Register(MainForm.stopManager, true); // 和容器关联 this.checkBox_includeLowCols.Checked = this.MainForm.AppInfo.GetBoolean( "dup_form", "include_low_cols", true); this.checkBox_returnAllRecords.Checked = this.MainForm.AppInfo.GetBoolean( "dup_form", "return_all_records", true); if (String.IsNullOrEmpty(this.comboBox_projectName.Text) == true) { this.comboBox_projectName.Text = this.MainForm.AppInfo.GetString( "dup_form", "projectname", ""); } string strWidths = this.MainForm.AppInfo.GetString( "dup_form", "browse_list_column_width", ""); if (String.IsNullOrEmpty(strWidths) == false) { ListViewUtil.SetColumnHeaderWidth(this.listView_browse, strWidths, true); } // 自动启动查重 if (this.AutoBeginSearch == true) { API.PostMessage(this.Handle, WM_INITIAL, 0, 0); } }
private void ZhongcihaoForm_Load(object sender, EventArgs e) { LoadSize(); this.Channels = new LibraryChannelCollection(); this.Channels.BeforeLogin += new BeforeLoginEventHandle(Channels_BeforeLogin); #if NO stop = new DigitalPlatform.Stop(); stop.Register(MainForm.stopManager, true); // 和容器关联 #endif // 服务器名 if (string.IsNullOrEmpty(this.textBox_serverName.Text) == true) { this.textBox_serverName.Text = this.MainForm.AppInfo.GetString( "zhongcihao_form", "servername", ""); } // 类号 if (String.IsNullOrEmpty(this.textBox_classNumber.Text) == true) { this.textBox_classNumber.Text = this.MainForm.AppInfo.GetString( "zhongcihao_form", "classnumber", ""); } // 线索书目库名 if (String.IsNullOrEmpty(this.comboBox_biblioDbName.Text) == true) { this.comboBox_biblioDbName.Text = this.MainForm.AppInfo.GetString( "zhongcihao_form", "biblio_dbname", ""); } // 是否要返回浏览列 this.checkBox_returnBrowseCols.Checked = this.MainForm.AppInfo.GetBoolean( "zhongcihao_form", "return_browse_cols", true); string strWidths = this.MainForm.AppInfo.GetString( "zhongcihao_form", "record_list_column_width", ""); if (String.IsNullOrEmpty(strWidths) == false) { ListViewUtil.SetColumnHeaderWidth(this.listView_number, strWidths, true); } if (this.AutoBeginSearch == true) { API.PostMessage(this.Handle, WM_INITIAL, 0, 0); } }
private void DupForm_Load(object sender, EventArgs e) { this.Channels = new LibraryChannelCollection(); this.Channels.BeforeLogin += new BeforeLoginEventHandle(Channels_BeforeLogin); this.Channels.AfterLogin += new AfterLoginEventHandle(Channels_AfterLogin); stop = new DigitalPlatform.Stop(); stop.Register(MainForm.stopManager, true); // 和容器关联 this.checkBox_includeLowCols.Checked = this.MainForm.AppInfo.GetBoolean( "dup_form", "include_low_cols", true); this.checkBox_returnAllRecords.Checked = this.MainForm.AppInfo.GetBoolean( "dup_form", "return_all_records", true); if (String.IsNullOrEmpty(this.comboBox_projectName.Text) == true) { this.comboBox_projectName.Text = this.MainForm.AppInfo.GetString( "dup_form", "projectname", ""); } string strWidths = this.MainForm.AppInfo.GetString( "dup_form", "browse_list_column_width", ""); if (String.IsNullOrEmpty(strWidths) == false) { ListViewUtil.SetColumnHeaderWidth(this.listView_browse, strWidths, true); } // 自动启动查重 if (this.AutoBeginSearch == true) { API.PostMessage(this.Handle, WM_INITIAL, 0, 0); } }
public ListViewBiblioLoader(LibraryChannelCollection channels, dp2ServerCollection servers, Stop stop, List<ListViewItem> items, Hashtable cacheTable) { m_loader = new BiblioLoader(); m_loader.Channels = channels; m_loader.Servers = servers; m_loader.Stop = stop; m_loader.Format = "xml"; m_loader.GetBiblioInfoStyle = GetBiblioInfoStyle.Timestamp; // 附加信息只取得 timestamp this.Items = items; this.CacheTable = cacheTable; }
private void dp2SearchForm_Load(object sender, EventArgs e) { #if NO if (this.MainForm.TestMode == true) { MessageBox.Show(this.MainForm, "dp2 检索窗需要先设置序列号(正式模式)才能使用"); API.PostMessage(this.Handle, API.WM_CLOSE, 0, 0); return; } #endif #if SN // 检查序列号 // DateTime start_day = new DateTime(2014, 11, 15); // 2014/11/15 以后强制启用序列号功能 // if (DateTime.Now >= start_day || this.MainForm.IsExistsSerialNumberStatusFile() == true) { // 在用户目录中写入一个隐藏文件,表示序列号功能已经启用 this.MainForm.WriteSerialNumberStatusFile(); string strError = ""; int nRet = this.MainForm.VerifySerialCode("dp2 检索窗需要先设置序列号才能使用", "", false, out strError); if (nRet == -1) { #if NO MessageBox.Show(this.MainForm, "dp2 检索窗需要先设置序列号才能使用"); API.PostMessage(this.Handle, API.WM_CLOSE, 0, 0); return; #endif } else { // 为全部服务器设置 verified 标志 if (this.MainForm.Servers != null) this.MainForm.Servers.SetAllVerified(true); } } #else // 为全部服务器设置 verified 标志 this.MainForm.Servers.SetAllVerified(true); #endif // EventLoadFinish.Reset(); this.BinDir = Environment.CurrentDirectory; this.commander = new Commander(this); this.commander.IsBusy -= new IsBusyEventHandler(commander_IsBusy); this.commander.IsBusy += new IsBusyEventHandler(commander_IsBusy); SetLayout(this.LayoutName); this.MainForm.AppInfo.LoadMdiSize += new EventHandler(AppInfo_LoadMdiSize); this.MainForm.AppInfo.SaveMdiSize += new EventHandler(AppInfo_SaveMdiSize); LoadSize(); this.Channels = new LibraryChannelCollection(); this.Channels.BeforeLogin += new BeforeLoginEventHandle(Channels_BeforeLogin); this.Channels.AfterLogin += new AfterLoginEventHandle(Channels_AfterLogin); #if NO stop = new DigitalPlatform.Stop(); stop.Register(MainForm.stopManager, true); // 和容器关联 #endif // this.dp2ResTree1.TestMode = this.MainForm.TestMode; this.dp2ResTree1.stopManager = MainForm.stopManager; this.dp2ResTree1.Servers = MainForm.Servers; // 引用 this.dp2ResTree1.Channels = this.Channels; // 引用 this.dp2ResTree1.cfgCache = this.MainForm.cfgCache; string strSortTables = this.MainForm.AppInfo.GetString( "dp2_search", "sort_tables", ""); this.dp2ResTree1.sort_tables = dp2ResTree.RestoreSortTables(strSortTables); this.dp2ResTree1.CheckBoxes = this.MainForm.AppInfo.GetBoolean( "dp2_search", "enable_checkboxes", false); this.dp2ResTree1.Fill(null); this.textBox_simple_queryWord.Text = this.MainForm.AppInfo.GetString( "dp2_search_simple_query", "word", ""); this.comboBox_simple_matchStyle.Text = this.MainForm.AppInfo.GetString( "dp2_search_simple_query", "matchstyle", "前方一致"); this.textBox_mutiline_queryContent.Text = this.MainForm.AppInfo.GetString( "dp2_search_muline_query", "content", ""); this.comboBox_multiline_matchStyle.Text = this.MainForm.AppInfo.GetString( "dp2_search_muline_query", "matchstyle", "前方一致"); string strWidths = this.MainForm.AppInfo.GetString( "dp2searchform", "record_list_column_width", ""); if (String.IsNullOrEmpty(strWidths) == false) { ListViewUtil.SetColumnHeaderWidth(this.listView_browse, strWidths, true); } string strSaveString = this.MainForm.AppInfo.GetString( "dp2searchform", "query_lines", "^^^"); this.dp2QueryControl1.Restore(strSaveString); // 按照上次保存的路径展开resdircontrol树 string strResDirPath = this.MainForm.AppInfo.GetString( "dp2_search_simple_query", "resdirpath", ""); if (strResDirPath != null) { this.Update(); object[] pList = { strResDirPath }; this.BeginInvoke(new Delegate_ExpandResDir(ExpandResDir), pList); } else { this.EventLoadFinish.Set(); } comboBox_matchStyle_TextChanged(null, null); }