Clean-up
This commit is contained in:
parent
0fd0c44c18
commit
92b2f55871
@ -15,8 +15,6 @@ namespace ResultsParser
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static ISessionFactory sessionFactory;
|
||||
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Bench: [WR15]");
|
||||
|
||||
@ -40,7 +40,7 @@ namespace Statistics
|
||||
|
||||
MidOrWaterMetersCtrl ctrl = new MidOrWaterMetersCtrl();
|
||||
ctrl.MidId = midId;
|
||||
ctrl.Parent = this;
|
||||
ctrl.ParentDlg = this;
|
||||
ctrl.Dock = DockStyle.Fill;
|
||||
|
||||
tp.Controls.Add(ctrl);
|
||||
|
||||
@ -14,7 +14,7 @@ namespace Statistics.UserControls
|
||||
public partial class MidOrWaterMetersCtrl : UserControl
|
||||
{
|
||||
public int MidId; /// 1-based MID Id.
|
||||
public StatisticsDlg Parent;
|
||||
public StatisticsDlg ParentDlg;
|
||||
|
||||
|
||||
public bool IsFlowEnabled(int i)
|
||||
@ -82,7 +82,7 @@ namespace Statistics.UserControls
|
||||
|
||||
public IList<TestRslt> UpdateRequest(int benchId)
|
||||
{
|
||||
return Parent.UpdateRequest(benchId, MidId);
|
||||
return ParentDlg.UpdateRequest(benchId, MidId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -144,7 +144,7 @@ namespace TBF
|
||||
IEnumerable<string> files = Directory.EnumerateFiles(TempImagesDir); /// TODO: Implement recursive directory delete
|
||||
foreach (var file in files) File.Delete(file);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Exception)
|
||||
{
|
||||
MessageBox.Show("Error creating a local application data directory and preparing an initial configuration", "Fatal error");
|
||||
return; /// Fatal error
|
||||
|
||||
@ -12,8 +12,6 @@ namespace TBF.Rig.Dummy.RegulValve
|
||||
{
|
||||
public partial class RegulValveCfgCtrl : UserControl, IComponentCfgCtrl
|
||||
{
|
||||
ComponentParametersDlg parent;
|
||||
|
||||
public bool ShowMore { get { return true; } }
|
||||
|
||||
RegulValveCfg config;
|
||||
|
||||
@ -302,7 +302,6 @@ namespace TBF.UI.ResultsMI
|
||||
bool DeleteWaterMeters(OracleConnection conn, IList<string> waterMeters)
|
||||
{
|
||||
OracleCommand cmd;
|
||||
OracleDataReader dr;
|
||||
int deletedRows;
|
||||
|
||||
try
|
||||
|
||||
Loading…
Reference in New Issue
Block a user