protected override void Dispose(bool disposing) { if (docGrid != null) { // Отписываюсь от события var style = docGrid.Style as Grids.Styles.OuterScanerStyle; if (style != null) { style.FileChanged -= NewImageAddDialog_FileChanged; } docGrid.Style = null; docGrid.Dispose(); docGrid = null; } Grids.Styles.OuterScanerStyle.Clear(); if (disposing) { if (components != null) { components.Dispose(); } } base.Dispose(disposing); }
public override void LoadDocs(Grids.DocGrid docGrid, bool clean, int curID, string filename = null) { if (ID == rootID) { docGrid.LoadFoundDocs(Emp, clean, curID); } else { docGrid.LoadQueryDocs(XML, Emp, clean, curID); } }
protected override void Sorted(object sender, EventArgs e) { Grids.DocGrid grid = sender as Grids.DocGrid ; if(grid == null) return; grid.Sorted -= Sorted; if(!string.IsNullOrEmpty(curFileName)) { grid.SelectConditional(Environment.ImageReader.FullNameField, curFileName, false); curFileName = null; } }
public override void LoadDocs(Grids.DocGrid docGrid, bool clean, int curID, string filename = null) { this.curID = curID; docGrid.Sorted += Sorted; if (Rights == AccessLevel.ReadOnly) { docGrid.LoadSharedWorkFolderDocs(ID, Emp, clean); } else { docGrid.LoadFullAccessFolderDocs(ID, Emp, clean); } }
public override void LoadDocs(Grids.DocGrid docGrid, bool clean, int curID, string filename = null) { //this.curFileName = filename; if (Directory.Exists(Path)) { docGrid.Sorted += Sorted; docGrid.LoadDiskImages(Path, clean); } else { Remove(); } }
protected virtual void Sorted(object sender, System.EventArgs e) { Grids.DocGrid grid = sender as Grids.DocGrid; if (grid == null && grid.DataSource != null) { return; } grid.Sorted -= Sorted; if (curID > 0) { grid.SelectByID(curID); curID = 0; } }
public override void LoadDocs(Grids.DocGrid docGrid, bool clean, int curID, string filename = null) { docGrid.LoadWorkFolderDocs(ID, Emp, clean, curID); }
public override void LoadDocs(Grids.DocGrid docGrid, bool clean, int curID, string filename = null) { this.curID = curID; docGrid.Sorted += Sorted; docGrid.LoadFaxesOut(ID); }
public override void LoadDocs(Grids.DocGrid docGrid, bool clean, int curID, string filename = null) { this.curFileName = filename; docGrid.Sorted += Sorted; docGrid.LoadScans(Path, clean); }
public override void LoadDocs(Grids.DocGrid docGrid, bool clean, int curID, string filename = null) { docGrid.LoadCatalogDocs(Path, clean, curID); this.curID = 0; }
public override void LoadDocs(Grids.DocGrid docGrid, bool clean, int curID, string filename = null) { this.curID = curID; docGrid.Sorted += Sorted; docGrid.LoadDocuments(GetDataTable()); }
/// <summary> /// Required method for Designer support - do not modify the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NewImageAddDialog)); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); this.panelBottom = new System.Windows.Forms.Panel(); this.buttonAdd = new System.Windows.Forms.Button(); this.chbImageMain = new System.Windows.Forms.CheckBox(); this.buttonCancel = new System.Windows.Forms.Button(); this.buttonSave = new System.Windows.Forms.Button(); this.panelTree = new System.Windows.Forms.Panel(); this.docGrid = new Kesco.App.Win.DocView.Grids.DocGrid(); this.splitterH = new System.Windows.Forms.Splitter(); this.tree = new Kesco.App.Win.DocView.FolderTree.FolderTree(); this.foldersList = new System.Windows.Forms.ImageList(this.components); this.panelDocControl = new System.Windows.Forms.Panel(); this.groupBoxPages = new System.Windows.Forms.GroupBox(); this.minPageBox = new System.Windows.Forms.NumericUpDown(); this.maxPageBox = new System.Windows.Forms.NumericUpDown(); this.label3 = new System.Windows.Forms.Label(); this.rbSelectedPages = new System.Windows.Forms.RadioButton(); this.rbAllPages = new System.Windows.Forms.RadioButton(); this.docControl = new Kesco.Lib.Win.Document.Controls.DocControl(); this.splitterVert = new System.Windows.Forms.Splitter(); this.panelBottom.SuspendLayout(); this.panelTree.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.docGrid)).BeginInit(); this.panelDocControl.SuspendLayout(); this.groupBoxPages.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.minPageBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.maxPageBox)).BeginInit(); this.SuspendLayout(); // // panelBottom // this.panelBottom.Controls.Add(this.buttonAdd); this.panelBottom.Controls.Add(this.chbImageMain); this.panelBottom.Controls.Add(this.buttonCancel); this.panelBottom.Controls.Add(this.buttonSave); resources.ApplyResources(this.panelBottom, "panelBottom"); this.panelBottom.Name = "panelBottom"; // // buttonAdd // resources.ApplyResources(this.buttonAdd, "buttonAdd"); this.buttonAdd.Name = "buttonAdd"; this.buttonAdd.UseVisualStyleBackColor = true; this.buttonAdd.Click += new System.EventHandler(this.buttonAdd_Click); // // chbImageMain // this.chbImageMain.Checked = true; this.chbImageMain.CheckState = System.Windows.Forms.CheckState.Checked; resources.ApplyResources(this.chbImageMain, "chbImageMain"); this.chbImageMain.Name = "chbImageMain"; // // buttonCancel // resources.ApplyResources(this.buttonCancel, "buttonCancel"); this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); // // buttonSave // resources.ApplyResources(this.buttonSave, "buttonSave"); this.buttonSave.Name = "buttonSave"; this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click); // // panelTree // this.panelTree.Controls.Add(this.docGrid); this.panelTree.Controls.Add(this.splitterH); this.panelTree.Controls.Add(this.tree); resources.ApplyResources(this.panelTree, "panelTree"); this.panelTree.Name = "panelTree"; // // docGrid // this.docGrid.AllowUserToAddRows = false; this.docGrid.AllowUserToDeleteRows = false; this.docGrid.AllowUserToResizeRows = false; this.docGrid.BackgroundColor = System.Drawing.SystemColors.Window; this.docGrid.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText; dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.docGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; this.docGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.White; dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.docGrid.DefaultCellStyle = dataGridViewCellStyle2; resources.ApplyResources(this.docGrid, "docGrid"); this.docGrid.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically; this.docGrid.ImageTime = new System.DateTime(((long)(0))); this.docGrid.MainForm = null; this.docGrid.Name = "docGrid"; this.docGrid.ReadOnly = true; this.docGrid.RowHeadersVisible = false; this.docGrid.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; this.docGrid.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.docGrid.ShowCellErrors = false; this.docGrid.ShowEditingIcon = false; this.docGrid.ShowRowErrors = false; this.docGrid.Style = null; // // splitterH // resources.ApplyResources(this.splitterH, "splitterH"); this.splitterH.Name = "splitterH"; this.splitterH.TabStop = false; // // tree // resources.ApplyResources(this.tree, "tree"); this.tree.DrawMode = System.Windows.Forms.TreeViewDrawMode.OwnerDrawText; this.tree.ImageList = this.foldersList; this.tree.ItemHeight = 16; this.tree.Name = "tree"; this.tree.SelectedNode = null; this.tree.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.tree_AfterSelect); // // foldersList // this.foldersList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("foldersList.ImageStream"))); this.foldersList.TransparentColor = System.Drawing.SystemColors.Window; this.foldersList.Images.SetKeyName(0, ""); this.foldersList.Images.SetKeyName(1, ""); this.foldersList.Images.SetKeyName(2, ""); this.foldersList.Images.SetKeyName(3, ""); this.foldersList.Images.SetKeyName(4, ""); this.foldersList.Images.SetKeyName(5, ""); this.foldersList.Images.SetKeyName(6, ""); this.foldersList.Images.SetKeyName(7, ""); this.foldersList.Images.SetKeyName(8, ""); this.foldersList.Images.SetKeyName(9, ""); this.foldersList.Images.SetKeyName(10, ""); this.foldersList.Images.SetKeyName(11, ""); // // panelDocControl // this.panelDocControl.Controls.Add(this.groupBoxPages); this.panelDocControl.Controls.Add(this.docControl); resources.ApplyResources(this.panelDocControl, "panelDocControl"); this.panelDocControl.Name = "panelDocControl"; // // groupBoxPages // this.groupBoxPages.Controls.Add(this.minPageBox); this.groupBoxPages.Controls.Add(this.maxPageBox); this.groupBoxPages.Controls.Add(this.label3); this.groupBoxPages.Controls.Add(this.rbSelectedPages); this.groupBoxPages.Controls.Add(this.rbAllPages); resources.ApplyResources(this.groupBoxPages, "groupBoxPages"); this.groupBoxPages.Name = "groupBoxPages"; this.groupBoxPages.TabStop = false; // // minPageBox // resources.ApplyResources(this.minPageBox, "minPageBox"); this.minPageBox.Name = "minPageBox"; // // maxPageBox // resources.ApplyResources(this.maxPageBox, "maxPageBox"); this.maxPageBox.Name = "maxPageBox"; // // label3 // resources.ApplyResources(this.label3, "label3"); this.label3.Name = "label3"; // // rbSelectedPages // resources.ApplyResources(this.rbSelectedPages, "rbSelectedPages"); this.rbSelectedPages.Name = "rbSelectedPages"; // // rbAllPages // this.rbAllPages.Checked = true; resources.ApplyResources(this.rbAllPages, "rbAllPages"); this.rbAllPages.Name = "rbAllPages"; this.rbAllPages.TabStop = true; // // docControl // resources.ApplyResources(this.docControl, "docControl"); this.docControl.AnnotationDraw = false; this.docControl.CurDocString = null; this.docControl.Cursor = System.Windows.Forms.Cursors.WaitCursor; this.docControl.DocumentID = 0; this.docControl.EmpName = null; this.docControl.ForceRelicate = false; this.docControl.ImageID = -1; this.docControl.ImagesPanelOrientation = Kesco.Lib.Win.ImageControl.ImageControl.TypeThumbnailPanelOrientation.Left; this.docControl.IsEditNotes = false; this.docControl.IsMain = false; this.docControl.IsMoveImage = true; this.docControl.Name = "docControl"; this.docControl.Page = 0; this.docControl.SelectionMode = false; this.docControl.ShowThumbPanel = true; this.docControl.ShowToolBar = true; this.docControl.ShowWebPanel = false; this.docControl.SplinterPlace = new System.Drawing.Point(200, 50); this.docControl.TabStop = false; this.docControl.WatchOnFile = false; this.docControl.Zoom = 100; this.docControl.ZoomText = ""; // // splitterVert // resources.ApplyResources(this.splitterVert, "splitterVert"); this.splitterVert.Name = "splitterVert"; this.splitterVert.TabStop = false; // // NewImageAddDialog // this.AcceptButton = this.buttonSave; resources.ApplyResources(this, "$this"); this.CancelButton = this.buttonCancel; this.Controls.Add(this.splitterVert); this.Controls.Add(this.panelDocControl); this.Controls.Add(this.panelTree); this.Controls.Add(this.panelBottom); this.Name = "NewImageAddDialog"; this.Load += new System.EventHandler(this.NewImageAddDialog_Load); this.panelBottom.ResumeLayout(false); this.panelTree.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.docGrid)).EndInit(); this.panelDocControl.ResumeLayout(false); this.groupBoxPages.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.minPageBox)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.maxPageBox)).EndInit(); this.ResumeLayout(false); }
public virtual void LoadDocs(Grids.DocGrid docGrid, bool clean, int curID, string filename = null) { }