Exemplo n.º 1
0
        public FrmMainScreen()
        {
            InitializeComponent();
            this.BTN_NeueSuche.Top    = this.BTN_Suchen.Top;
            this.BTN_NeueSuche.Left   = this.BTN_Suchen.Left;
            this.BTN_NeueSuche_1.Left = this.BTN_Suchen_1.Left;
            this.BTN_NeueSuche_2.Left = this.BTN_Suchen_2.Left;
            this.BTN_NeueSuche_3.Left = this.BTN_Suchen_3.Left;

            this.BTN_OpenFolderDocumente.Top  = this.BTN_Excel.Top;
            this.BTN_OpenFolderDocumente.Left = this.BTN_Excel.Left;

            FuncGeneral.Start();
            this.BS_Eingabe   = new BindingSource();
            this.BS_Messwerte = new BindingSource();
            this.BS_Ergebnis  = new BindingSource();

            this.DBGRID_Eingabe.DataSource   = this.BS_Eingabe;
            this.DBGRID_Messwerte.DataSource = this.BS_Messwerte;
            this.DBGRID_Ergebnis.DataSource  = this.BS_Ergebnis;

            this.toolStripMenuItem2.Image       = Bmp.btg_exit;
            this.toolStripMenuItem1.Image       = Bmp.btg_Excel;
            this.suchenToolStripMenuItem.Image  = Bmp.btg_Requery;
            this.oeffnenToolStripMenuItem.Image = Bmp.btg_folder;


            this.TXT_Link_Eingabe.Focus();
        }
Exemplo n.º 2
0
        public FrmDatenauswertung()
        {
            InitializeComponent();

            GlobalVar.Glb_SQLConnecton = m_ConnectionString;
            frm1           = new FrmDarstellung();
            this.BS_Source = new BindingSource();
            this.BS_Drain  = new BindingSource();

            this.sqlHelper = new SQLHelper(m_ConnectionString);

            List <SQLHelper.SQLSpalten> felder = new List <SQLHelper.SQLSpalten>();

            SQLHelper.SQLSpalten feld;

            feld.Feldname = "Spalte";
            feld.Feldtype = "nvarchar(50)";
            felder.Add(feld);

            feld.Feldname = "Von";
            feld.Feldtype = "datetime";
            felder.Add(feld);

            feld.Feldname = "Bis";
            feld.Feldtype = "datetime";
            felder.Add(feld);
            this.sqlHelper.CheckTableSpalten("Auswahl", felder);


            this.DBGRID_Source.DataSource = this.BS_Source;
            this.DBGRID_Drain.DataSource  = this.BS_Drain;
            FuncGeneral.Start();
            glb_FrmMng = ClsFormularManager.CreateInstance();
            glb_FrmMng.AddBitButtonCloseAll();
            glb_FrmMng.AddButton(BtnStyle.btg_Graph, frm1.Name);

            this.ShowClose = true;

            ToolTip toolTip1 = new ToolTip();

            toolTip1.AutoPopDelay = 0;
            toolTip1.ShowAlways   = true;
            toolTip1.UseAnimation = false;

            toolTip1.SetToolTip(this.BTN_Menu, "Menue");
            toolTip1.SetToolTip(this.BTN_Keyboard, "Tastatur");
            toolTip1.SetToolTip(this.BTN_Close, "Programm beenden");
            toolTip1.SetToolTip(this.BTN_Darstellung, "Grafik anzeigen");
            toolTip1.SetToolTip(this.BTN_Delete, "Auswahl loeschen");
            toolTip1.SetToolTip(this.BTN_SuchenLoeschen, "Suchfeld loeschen");
            toolTip1.SetToolTip(this.BTN_Auswaehlen, "Auswaehlen");

            this.toolStripMenuItem1.Image    = Bmp.btg_esc;
            this.wwwwToolStripMenuItem.Image = Bmp.btg_pfeilre;
        }
Exemplo n.º 3
0
        public FrmMain()
        {
            this.m_errorTickerCounter = 0;
            this.m_errorNoRecords     = 0;
            this.m_errorList          = new List <string>();
            this.m_errorList.Clear();
            this.m_parameter        = ClsSingeltonParameter.CreateInstance();
            this.m_sqliteConnection = new SQLiteConnection();
            this.m_sqliteConnection.ConnectionString = this.m_parameter.ConnectionString;
            this.m_sqliteConnection.Open();

            this.m_sqliteCommand = new SQLiteCommand(this.m_sqliteConnection);

            FuncGeneral.Start();

            this.InitializeComponent();
            this.Width  = 1024;
            this.Height = 768;

            this.m_formularManager   = ClsSingeltonFormularManager.CreateInstance();
            this.m_userManagement    = ClsSingeltonUserManagement.CreateInstance(this);
            this.m_varCollect        = ClsSingeltonVariablesCollecter.CreateInstance();
            this.m_dataBinding       = ClsSingeltonDataBinding.CreateInstance();
            this.m_plcPara.ProgBar   = this.BarPlcProgress;
            this.m_plcPara.LblStatus = this.lblState;
            this.m_plcPara.BtnStart  = this.BtnStartPlc;
            this.m_plcPara.BtnStopp  = this.BtnStoppPlc;
            this.m_plcPara.IP        = this.m_parameter.PlcIp;
            this.m_plcPara.IP        = "192.168.56.1";

            this.m_plcPara.Rack   = this.m_parameter.PlcRack;
            this.m_plcPara.Slot   = this.m_parameter.PlcSlot;
            this.m_plcPara.LblPlc = this.LblPlcNoConnect;

            this.m_plc      = ClsSingeltonPlc.CreateInstance(this.m_plcPara);
            this.m_language = ClsSingeltonLanguage.CreateInstance(this);

            this.FrmHeater               = new FrmHeater();
            this.FrmParameter            = new FrmPara();
            this.FrmInformation          = new FrmInfo();
            this.FrmService              = new FrmServ();
            this.FrmError                = new FrmError();
            this.FrmRelease              = new FrmRelease();
            this.FrmErrorReportingSystem = new FrmErrorReportingSystem();
            this.FrmO2Curve              = new FrmO2Curve();

            this.BtnStartPlc.Click += new System.EventHandler(this.BtnStartPlc_Click);
            this.BtnStoppPlc.Click += new System.EventHandler(this.BtnStoppPlc_Click);

            this.TmrErrorTicker.Enabled = true;
        }
Exemplo n.º 4
0
        public frmMainScreen()
        {
            InitializeComponent();
            FuncGeneral.Start();

            glb_DataBinding = ClsDataBinding.CreateInstance();
            frmMng          = ClsFormularManager.CreateInstance();
            frmMng.AddButton(BtnStyle.btg_Para, "FrmPara");
            frmMng.AddButton(BtnStyle.btg_Service, "FrmService");
            frmMng.AddButton(BtnStyle.btg_Freigabe, "FrmRelease");
            frmMng.AddButton(BtnStyle.btg_Error, "FrmError");
            frmMng.AddBitButtonCloseAll();


            glb_plc = ClsPLC.CreateInstance();

            helperMakroControl = new HelperMakroControl();
            helperLibNoDave    = new HelperLibNoDave(this);
        }
Exemplo n.º 5
0
        public FrmDatenlogger()
        {
            InitializeComponent();
            glb_DataBinding = ClsDataBinding.CreateInstance();
            frmMng          = ClsFormularManager.CreateInstance();
            glb_plc         = ClsPLC.CreateInstance();

            sqlHelper = new SQLHelper(m_ConnectionString);
            FuncGeneral.Start();
            this.ShowClose = true;
            this.LoadPlc();
            this.BindConrols();

            glb_plc.IP   = "10.100.72.125";
            glb_plc.Rack = 0;
            glb_plc.Slot = 2;

            glb_plc.Open();
            glb_plc.Read();

            this.CreateListView();
        }
Exemplo n.º 6
0
        public FrmMainScreen()
        {
            InitializeComponent();

            this.m_ClsIni             = new ClsIni("cfg.ini");
            this.m_Columnlist         = new List <string[]>();
            this.m_ColumnlistOutput   = new List <string[]>();
            this.m_Tablelist          = new List <string>();
            this.ShowClose            = true;
            this.m_CanChange          = false;
            this.m_SqlHelper          = new SQLHelper(m_ConnectionString);
            this.m_SqlHelperWhere     = new SQLHelper(m_ConnectionString);
            this.m_SqlHelperFrom      = new SQLHelper(m_ConnectionString);
            this.m_SqlHelperInnerJoin = new SQLHelper(m_ConnectionString);
            this.m_Datas      = new Hashtable();
            this.m_TableInfo  = new Hashtable();
            this.m_BS_Auswahl = new BindingSource();

            this.DBGRID_Auswahl.DataSource = this.m_BS_Auswahl;


            FuncGeneral.Start();
        }