/** * \brief Konstruktor * * Funktionsbeschreibung: Erzeugen der Komponenten, Instanz fuer den Formularmanger anlegen und Formular anmelden. */ public FrmLanguage() { this.InitializeComponent(); this.m_parameter = ClsSingeltonParameter.CreateInstance(); this.m_formularManager = ClsSingeltonFormularManager.CreateInstance(this, this.Name.ToString()); this.m_language = ClsSingeltonLanguage.CreateInstance(this); }
public static ClsSingeltonParameter CreateInstance() { if (m_instance == null) { m_instance = new ClsSingeltonParameter("Data Source=Daten.db"); } return(m_instance); }
public static ClsSingeltonParameter CreateInstance(string ConnectionString) { if (m_instance == null) { m_instance = new ClsSingeltonParameter(ConnectionString); } return(m_instance); }
List <CompBitButton> m_buttonList;//!<Liste fuer die Buttons im Menu /** * \brief Konstruktor * * Funktionsbeschreibung: Erzeugen der Buttonliste und am Formularmanager anmelden */ public FrmMenu() { this.InitializeComponent(); this.m_parameter = ClsSingeltonParameter.CreateInstance(); this.m_formularManager = ClsSingeltonFormularManager.CreateInstance(this, this.Name.ToString()); this.m_language = ClsSingeltonLanguage.CreateInstance(this); this.m_buttonList = new List <CompBitButton>(); this.ClrButtons(); }
private ClsSingeltonUserManagement() { this.m_formularManager = ClsSingeltonFormularManager.CreateInstance(); this.m_parameter = ClsSingeltonParameter.CreateInstance(); this.m_tableComponents = new Hashtable(); this.m_timerLogin = new Timer(); this.m_timerLogin.Interval = 1000; this.m_timerLogin.Tick += this.TimerLogin_Tick; this.m_timerLogin.Enabled = false; this.m_LoginTime = 0; this.m_maxTimeLogin = Convert.ToInt32(this.m_parameter.MaxTimeLogin); }
private ClsSingeltonLanguage() { this.m_parameter = ClsSingeltonParameter.CreateInstance(); this.m_tableComponentIgnore = new List <Control>(); this.m_tableComponents = new List <TableComponents>(); this.m_tableLanguage = new Hashtable(); 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); this.LoadLanguage(); }
public FrmPassword() { InitializeComponent(); this.m_parameter = ClsSingeltonParameter.CreateInstance(); this.m_formularManager = ClsSingeltonFormularManager.CreateInstance(this, this.Name.ToString()); this.m_language = ClsSingeltonLanguage.CreateInstance(this); this.m_userManagement = ClsSingeltonUserManagement.CreateInstance(); this.m_users = new List <string>(); this.m_users.Clear(); this.m_users.Add("Ausgeloggt"); this.m_users.Add("Operator"); this.m_users.Add("Einrichter"); this.m_users.Add("Service"); }
public FrmParameter() { InitializeComponent(); this.m_KeyCount = 0; this.m_plcItemList = new Hashtable(); this.m_userManagement = ClsSingeltonUserManagement.CreateInstance(); this.m_parameter = ClsSingeltonParameter.CreateInstance(); this.m_plc = ClsSingeltonPlc.GetInstance(); 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); this.m_dataBinding = ClsSingeltonDataBinding.CreateInstance(); }
/** * \brief Konstruktor * * Funktionsbeschreibung: Komponenten erzeugen und an den Formularmanager anmelden */ public FrmKeyBoard() { InitializeComponent(); this.BtnBS.Click += new System.EventHandler(this.BtnBS_Click); this.BtnNumber0.Click += new System.EventHandler(this.KeyBoard_Click); this.BtnNumber1.Click += new System.EventHandler(this.KeyBoard_Click); this.BtnNumber2.Click += new System.EventHandler(this.KeyBoard_Click); this.BtnNumber3.Click += new System.EventHandler(this.KeyBoard_Click); this.BtnNumber4.Click += new System.EventHandler(this.KeyBoard_Click); this.BtnNumber5.Click += new System.EventHandler(this.KeyBoard_Click); this.BtnNumber6.Click += new System.EventHandler(this.KeyBoard_Click); this.BtnNumber7.Click += new System.EventHandler(this.KeyBoard_Click); this.BtnNumber8.Click += new System.EventHandler(this.KeyBoard_Click); this.BtnNumber9.Click += new System.EventHandler(this.KeyBoard_Click); this.m_parameter = ClsSingeltonParameter.CreateInstance(); this.m_formularManager = ClsSingeltonFormularManager.CreateInstance(this, this.Name.ToString()); this.m_language = ClsSingeltonLanguage.CreateInstance(this); }
private ClsSingeltonPlc(ClsSingeltonPlcParameter PlcParameter) { this.m_errorCounter = 0; this.m_WriteValues = new Queue <ClsSingeltonPlcWriteDatas>(); this.m_parameter = ClsSingeltonParameter.CreateInstance(); this.m_language = ClsSingeltonLanguage.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); this.m_DatenBytes = new byte[0]; this.m_FlagGoOn = false; this.m_DatabasesInfo = new Hashtable(); this.m_DatabasesNr = new List <int>(); this.m_SymbolInfo = new Hashtable(); this.m_DatabasesValues = new Hashtable(); this.m_InfoThread = new Hashtable(); this.m_Daten = new List <ClsSingeltonPlcDatas>(); this.m_Value = new List <string>(); this.m_TimerRead = new System.Windows.Forms.Timer(); this.m_TimerRead.Enabled = false; this.m_TimerRead.Interval = 100; this.m_TimerRead.Tick += TimerRead_Tick; this.m_TimerPlc = new System.Windows.Forms.Timer(); this.m_TimerPlc.Enabled = true; this.m_TimerPlc.Interval = 1000; this.m_TimerPlc.Tick += TimerPlc_Tick; this.m_IP = PlcParameter.IP; this.m_Rack = Convert.ToInt32(PlcParameter.Rack); this.m_Slot = Convert.ToInt32(PlcParameter.Slot); this.m_ProgressBar = PlcParameter.ProgBar; this.m_LblStatus = PlcParameter.LblStatus; this.m_BtnStart = PlcParameter.BtnStart; this.m_BtnStopp = PlcParameter.BtnStopp; this.m_LblPlc = PlcParameter.LblPlc; this.m_BackgroundWorkerPlcRead = new BackgroundWorker(); this.m_BackgroundWorkerPlcRead.WorkerReportsProgress = true; this.m_BackgroundWorkerPlcRead.WorkerSupportsCancellation = true; this.m_BackgroundWorkerPlcRead.DoWork += BackgroundWorkerPlcRead_DoWork; this.m_BackgroundWorkerPlcRead.ProgressChanged += BackgroundWorkerPlcRead_ProgressChanged; this.m_BackgroundWorkerPlcRead.RunWorkerCompleted += BackgroundWorkerPlcRead_RunWorkerCompleted; m_VarCollect = ClsSingeltonVariablesCollecter.CreateInstance(); m_DataBinding = ClsSingeltonDataBinding.CreateInstance(); this.ButtonVisibleOnOff(this.m_BtnStart, true); this.ButtonVisibleOnOff(this.m_BtnStopp, false); this.SetInfo(this.m_LblStatus, "Wait.."); this.m_PlcState = 0; this.LoadPlcitems(); }