C2026-043-Tech-Debt_v1 - Stash 1
This commit is contained in:
@@ -1,14 +1,7 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.IO;
|
||||
using AT.STO.UI.Win;
|
||||
using VEPROMS.CSLA.Library;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
@@ -30,7 +23,7 @@ namespace Volian.Controls.Library
|
||||
get { return _LibDocList; }
|
||||
set { _LibDocList = value; }
|
||||
}
|
||||
private Color saveGroupPanelUsages;
|
||||
private readonly Color saveGroupPanelUsages;
|
||||
#endregion
|
||||
#region Constructors
|
||||
public DisplayLibDocs()
|
||||
@@ -76,9 +69,8 @@ namespace Volian.Controls.Library
|
||||
public event DisplayLibDocEvent PrintRequest;
|
||||
private void OnPrintRequest(DisplayLibDocEventArgs args)
|
||||
{
|
||||
if (PrintRequest != null)
|
||||
PrintRequest(this, args);
|
||||
}
|
||||
PrintRequest?.Invoke(this, args);
|
||||
}
|
||||
|
||||
private void listBoxLibDocs_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -125,9 +117,9 @@ namespace Volian.Controls.Library
|
||||
foreach (ItemInfo ii in dicnt.LibraryDocumentUsageList)
|
||||
{
|
||||
if (ii.MyDocVersion != null)
|
||||
listBoxUsages.Items.Add(ii.MyProcedure.ToString() + " - " + ii.DisplayNumber + " " + ii.DisplayText);
|
||||
listBoxUsages.Items.Add($"{ii.MyProcedure} - {ii.DisplayNumber} {ii.DisplayText}");
|
||||
}
|
||||
btnPrint.Enabled = listBoxLibDocs.Items.Count > 0 ? true : false;
|
||||
btnPrint.Enabled = listBoxLibDocs.Items.Count > 0;
|
||||
}
|
||||
private void btnDelLibDoc_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -139,7 +131,7 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine("error deleting doc = " + ex.Message);
|
||||
Console.WriteLine($"error deleting doc = {ex.Message}");
|
||||
}
|
||||
LibDocListFillIn(_DisplayTabControl);
|
||||
}
|
||||
@@ -203,14 +195,15 @@ namespace Volian.Controls.Library
|
||||
|
||||
private void btnImpLibDoc_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog openFileDialog1 = new OpenFileDialog();
|
||||
OpenFileDialog openFileDialog1 = new OpenFileDialog
|
||||
{
|
||||
InitialDirectory = "c:\\",
|
||||
Filter = "Word files (*.doc;*.rtf;*.docx)|*.doc;*.rtf;*.docx|All files (*.*)|*.*",
|
||||
FilterIndex = 0,
|
||||
RestoreDirectory = true
|
||||
};
|
||||
|
||||
openFileDialog1.InitialDirectory = "c:\\";
|
||||
openFileDialog1.Filter = "Word files (*.doc;*.rtf;*.docx)|*.doc;*.rtf;*.docx|All files (*.*)|*.*";
|
||||
openFileDialog1.FilterIndex = 0;
|
||||
openFileDialog1.RestoreDirectory = true;
|
||||
|
||||
if (openFileDialog1.ShowDialog() == DialogResult.OK)
|
||||
if (openFileDialog1.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
int done = 0;
|
||||
int ntry = 0;
|
||||
@@ -352,24 +345,6 @@ namespace Volian.Controls.Library
|
||||
get { return _PaperSize; }
|
||||
set { _PaperSize = value; }
|
||||
}
|
||||
//private string _SearchString = null;
|
||||
//public string SearchString
|
||||
//{
|
||||
// get { return _SearchString; }
|
||||
// set { _SearchString = value; }
|
||||
//}
|
||||
//private string _TypesSelected;
|
||||
//public string TypesSelected
|
||||
//{
|
||||
// get { return _TypesSelected; }
|
||||
// set { _TypesSelected = value; }
|
||||
//}
|
||||
//private ICollection<ItemInfo> _MyItemInfoList;
|
||||
//public ICollection<ItemInfo> MyItemInfoList
|
||||
//{
|
||||
// get { return _MyItemInfoList; }
|
||||
// set { _MyItemInfoList = value; }
|
||||
//}
|
||||
public DisplayLibDocEventArgs(string reportTitle, DocumentInfoList libDocList, string paperSize)
|
||||
{
|
||||
_ReportTitle = reportTitle;
|
||||
|
||||
Reference in New Issue
Block a user