private void button_editDp2LibraryDef_Click(object sender, EventArgs e) { InstallOpacParamDlg param_dlg = new InstallOpacParamDlg(); GuiUtil.AutoSetDefaultFont(param_dlg); if (this.LineInfo == null || (this.LineInfo.LibraryUrl == null && this.LineInfo.LibraryUserName == null && this.LineInfo.LibraryPassword == null) ) { param_dlg.ManageUserName = "******"; param_dlg.ManagePassword = ""; // dlg.Rights = "this:management;children_database:management;children_directory:management;children_leaf:management;descendant_directory:management;descendant_record:management;descendant_leaf:management"; } else { Debug.Assert(this.LineInfo != null, ""); param_dlg.Dp2LibraryUrl = this.LineInfo.LibraryUrl; param_dlg.ManageUserName = this.LineInfo.LibraryUserName; param_dlg.ManagePassword = this.LineInfo.LibraryPassword; param_dlg.LibraryReportDir = this.LineInfo.LibraryReportDir; } param_dlg.StartPosition = FormStartPosition.CenterScreen; param_dlg.ManageUserName = "******"; param_dlg.ShowDialog(this); if (param_dlg.DialogResult != System.Windows.Forms.DialogResult.OK) { return; } if (this.LineInfo == null) { this.LineInfo = new LineInfo(); } this.LineInfo.LibraryUrl = param_dlg.Dp2LibraryUrl; this.LineInfo.LibraryUserName = param_dlg.ManageUserName; this.LineInfo.LibraryPassword = param_dlg.ManagePassword; this.LineInfo.LibraryReportDir = param_dlg.LibraryReportDir; RefreshDp2LibraryInfo(); }
private void button_editDp2LibraryDef_Click(object sender, EventArgs e) { InstallOpacParamDlg param_dlg = new InstallOpacParamDlg(); GuiUtil.AutoSetDefaultFont(param_dlg); if (this.LineInfo == null || (this.LineInfo.LibraryUrl == null && this.LineInfo.LibraryUserName == null && this.LineInfo.LibraryPassword == null) ) { param_dlg.ManageUserName = "******"; param_dlg.ManagePassword = ""; // dlg.Rights = "this:management;children_database:management;children_directory:management;children_leaf:management;descendant_directory:management;descendant_record:management;descendant_leaf:management"; } else { Debug.Assert(this.LineInfo != null, ""); param_dlg.Dp2LibraryUrl = this.LineInfo.LibraryUrl; param_dlg.ManageUserName = this.LineInfo.LibraryUserName; param_dlg.ManagePassword = this.LineInfo.LibraryPassword; param_dlg.LibraryReportDir = this.LineInfo.LibraryReportDir; } param_dlg.StartPosition = FormStartPosition.CenterScreen; param_dlg.ManageUserName = "******"; param_dlg.ShowDialog(this); if (param_dlg.DialogResult != System.Windows.Forms.DialogResult.OK) return; if (this.LineInfo == null) { this.LineInfo = new LineInfo(); } this.LineInfo.LibraryUrl = param_dlg.Dp2LibraryUrl; this.LineInfo.LibraryUserName = param_dlg.ManageUserName; this.LineInfo.LibraryPassword = param_dlg.ManagePassword; this.LineInfo.LibraryReportDir = param_dlg.LibraryReportDir; RefreshDp2LibraryInfo(); }