public Controller(ToolStripStatusLabel _lblStatus, ToolStripMenuItem _languageMenuItem, Form _frmMain, StatusStrip _statusStrip, MenuStrip _menuStrip, Button acceptButton, TabControl tbCntrl) { lblStatus = _lblStatus; statusStrip = _statusStrip; menuStripCurrent = _menuStrip; frmCurrent = _frmMain; btnAcceptFrmMain = acceptButton; ProfileTabControl = tbCntrl; //Config Dateien prüfen MissingFileController fileCheck = new MissingFileController(); //Controler instanziieren xmlCntrl = new xmlController(this); lngCntrl = new LanguageController(this, XmlControllerObject, _languageMenuItem, _frmMain, menuStripCurrent); XmlControllerObject.getDeviceSerial(); setStatus(); //Lüfter Werte ändern sobald ein Profil aktiviert wird (True = Lüfter werden sofort übernommen, False = man muss auf "Übernehmen" klicken bApplyChangesWhenChangingActiveProfile = XmlControllerObject.changeFanSpeedsByActiveProfile(); loadProfiles(); showProfiles(); if (XmlControllerObject.getApplyValuesAtProgramStartValue()) { applyCurrentProfileChanges(); } }
public LanguageController(Controller cntrlPrnt, xmlController _xmlCntrl, ToolStripMenuItem _languageMenuItem) { sLanguageFolder = Application.StartupPath + "\\Languages\\"; cntrl = cntrlPrnt; xmlCntrl = _xmlCntrl; languageMenu = _languageMenuItem; GetAvailableLanguages(); }
public LanguageController(Controller cntrlPrnt, xmlController _xmlCntrl, ToolStripMenuItem _languageMenuItem, Form _frmMain, MenuStrip _menuStrip) { sLanguageFolder = Application.StartupPath + "\\Languages\\"; cntrl = cntrlPrnt; xmlCntrl = _xmlCntrl; languageMenu = _languageMenuItem; collectControls(cntrl.CurrentForm, cntrl.CurrentMenuStrip); getAvailableLanguages(); }