public Settings(MyGroupList screen1Group, MyGroupList screen2Group, MyScreenParam screen1Param, MyScreenParam screen2Param) { InitializeComponent(); this.screen1Group = screen1Group; this.screen2Group = screen2Group; this.screen1Param = screen1Param; this.screen2Param = screen2Param; InitializeRoleGroupTab(); }
private void InitializeScreenParam() { ScreenParamReader reader = new ScreenParamReader() { RoleGroup = "Roles", IpAddr = "ScrIP", Port = "ScrPort", Id = "ScreenNo", Width = "ScreenW", High = "ScreenH", Type = "ScreenType", Polarity = "DataP", ValidType = "OEP", DutyNo = "DutyTelNo", UpdateTime = "UpTime", NotifyTime = "ChgeTime", LeftTitle = "Title", RightTitle = "Title2", GroupId = "MGroupID", RoleDefault = "RoleDefault1", LeftTitleFontName = "LTFontName1", LeftTitleFontSize = "LTFontSize1", LeftTitleFontColor = "LTFontColor1", RightTitleFontName = "RTFontName1", RightTitleFontSize = "RTFontSize1", RightTitleFontColor = "RTFontColor1", LeftContextFontName = "LCFontName1", LeftContextFontSize = "LCFontSize1", LeftContextFontColor = "LCFontColor1", RightContextFontName = "RCFontName1", RightContextFontSize = "RCFontSize1", RightContextFontColor = "RCFontColor1", NoteText = System.AppDomain.CurrentDomain.BaseDirectory + "Notice.txt", MonitorText = System.AppDomain.CurrentDomain.BaseDirectory + "ShowSrcInfo.txt" }; myScreen1Param = new MyScreenParam(reader); ScreenParamReader reader2 = new ScreenParamReader() { RoleGroup = "Roles2", IpAddr = "ScrIP2", Port = "ScrPort2", Id = "ScreenNo2", Width = "ScreenW2", High = "ScreenH2", Type = "ScreenType2", Polarity = "DataP2", ValidType = "OEP2", DutyNo = "DutyTelNo2", UpdateTime = "UpTime2", NotifyTime = "ChgeTime2", LeftTitle = "LTitle2", RightTitle = "RTitle2", GroupId = "MGroupID2", RoleDefault = "RoleDefault2", LeftTitleFontName = "LTFontName2", LeftTitleFontSize = "LTFontSize2", LeftTitleFontColor = "LTFontColor2", RightTitleFontName = "RTFontName2", RightTitleFontSize = "RTFontSize2", RightTitleFontColor = "RTFontColor2", LeftContextFontName = "LCFontName2", LeftContextFontSize = "LCFontSize2", LeftContextFontColor = "LCFontColor2", RightContextFontName = "RCFontName2", RightContextFontSize = "RCFontSize2", RightContextFontColor = "RCFontColor2", NoteText = System.AppDomain.CurrentDomain.BaseDirectory + "Notice2.txt", MonitorText = System.AppDomain.CurrentDomain.BaseDirectory + "ShowSrcInfo2.txt" }; myScreen2Param = new MyScreenParam(reader2); }