public FormCompass( FormMain parent ) { InitializeComponent(); ConfigurationChanged(); MainFontColor = Color.FromArgb( 0x00, 0x00, 0x00 ); SubFontColor = Color.FromArgb( 0x88, 0x88, 0x88 ); ControlHelper.SetDoubleBuffered( BasePanel ); ControlHelper.SetDoubleBuffered( TableEnemyFleet ); ControlHelper.SetDoubleBuffered( TableEnemyMember ); TableEnemyMember.SuspendLayout(); ControlMember = new TableEnemyMemberControl[6]; for ( int i = 0; i < ControlMember.Length; i++ ) { ControlMember[i] = new TableEnemyMemberControl( this, TableEnemyMember, i ); } TableEnemyMember.ResumeLayout(); //BasePanel.SetFlowBreak( TextMapArea, true ); BasePanel.SetFlowBreak( TextDestination, true ); //BasePanel.SetFlowBreak( TextEventKind, true ); BasePanel.SetFlowBreak( TextEventDetail, true ); TextDestination.ImageList = ResourceManager.Instance.Equipments; Icon = ResourceManager.ImageToIcon( ResourceManager.Instance.Icons.Images[(int)ResourceManager.IconContent.FormCompass] ); }
public FormCompass(FormMain parent) { InitializeComponent(); ConfigurationChanged(); MainFontColor = Color.FromArgb(0x00, 0x00, 0x00); SubFontColor = Color.FromArgb(0x88, 0x88, 0x88); ControlHelper.SetDoubleBuffered(BasePanel); ControlHelper.SetDoubleBuffered(TableEnemyFleet); ControlHelper.SetDoubleBuffered(TableEnemyMember); TableEnemyMember.SuspendLayout(); ControlMember = new TableEnemyMemberControl[6]; for (int i = 0; i < ControlMember.Length; i++) { ControlMember[i] = new TableEnemyMemberControl(this, TableEnemyMember, i); } TableEnemyMember.ResumeLayout(); //BasePanel.SetFlowBreak( TextMapArea, true ); BasePanel.SetFlowBreak(TextDestination, true); //BasePanel.SetFlowBreak( TextEventKind, true ); BasePanel.SetFlowBreak(TextEventDetail, true); TextDestination.ImageList = ResourceManager.Instance.Equipments; Icon = ResourceManager.ImageToIcon(ResourceManager.Instance.Icons.Images[(int)ResourceManager.IconContent.FormCompass]); }
public FormCompass( FormMain parent ) { InitializeComponent(); MainFontColor = Color.FromArgb( 0x00, 0x00, 0x00 ); SubFontColor = Color.FromArgb( 0x88, 0x88, 0x88 ); ControlHelper.SetDoubleBuffered( BasePanel ); ControlHelper.SetDoubleBuffered( TableEnemyFleet ); ControlHelper.SetDoubleBuffered( TableEnemyMember ); TableEnemyMember.SuspendLayout(); ControlMembers = new TableEnemyMemberControl[6]; for ( int i = 0; i < ControlMembers.Length; i++ ) { ControlMembers[i] = new TableEnemyMemberControl( this, TableEnemyMember, i ); } TableEnemyMember.ResumeLayout(); TableEnemyCandidate.SuspendLayout(); ControlCandidates = new TableEnemyCandidateControl[6]; for ( int i = 0; i < ControlCandidates.Length; i++ ) { ControlCandidates[i] = new TableEnemyCandidateControl( this, TableEnemyCandidate, i ); } //row/column style init for ( int y = 0; y < TableEnemyCandidate.RowCount; y++ ) { var rs = new RowStyle( SizeType.AutoSize ); if ( TableEnemyCandidate.RowStyles.Count <= y ) TableEnemyCandidate.RowStyles.Add( rs ); else TableEnemyCandidate.RowStyles[y] = rs; } for ( int x = 0; x < TableEnemyCandidate.ColumnCount; x++ ) { var cs = new ColumnStyle( SizeType.AutoSize ); if ( TableEnemyCandidate.ColumnStyles.Count <= x ) TableEnemyCandidate.ColumnStyles.Add( cs ); else TableEnemyCandidate.ColumnStyles[x] = cs; } TableEnemyCandidate.ResumeLayout(); //BasePanel.SetFlowBreak( TextMapArea, true ); BasePanel.SetFlowBreak( TextDestination, true ); //BasePanel.SetFlowBreak( TextEventKind, true ); BasePanel.SetFlowBreak( TextEventDetail, true ); TextDestination.ImageList = ResourceManager.Instance.Equipments; TextEventKind.ImageList = ResourceManager.Instance.Equipments; TextEventDetail.ImageList = ResourceManager.Instance.Equipments; TextFormation.ImageList = ResourceManager.Instance.Icons; TextAirSuperiority.ImageList = ResourceManager.Instance.Equipments; TextAirSuperiority.ImageIndex = (int)ResourceManager.EquipmentContent.CarrierBasedFighter; ConfigurationChanged(); Icon = ResourceManager.ImageToIcon( ResourceManager.Instance.Icons.Images[(int)ResourceManager.IconContent.FormCompass] ); }
public FormCompass(FormMain parent) { InitializeComponent(); MainFontColor = Color.FromArgb(0xFF, 0xFF, 0xFF); SubFontColor = Color.FromArgb(0x88, 0x88, 0x88); ControlHelper.SetDoubleBuffered(BasePanel); ControlHelper.SetDoubleBuffered(TableEnemyFleet); ControlHelper.SetDoubleBuffered(TableEnemyMember); TableEnemyMember.SuspendLayout(); ControlMembers = new TableEnemyMemberControl[6]; for (int i = 0; i < ControlMembers.Length; i++) { ControlMembers[i] = new TableEnemyMemberControl(this, TableEnemyMember, i); } TableEnemyMember.ResumeLayout(); TableEnemyCandidate.SuspendLayout(); ControlCandidates = new TableEnemyCandidateControl[6]; for (int i = 0; i < ControlCandidates.Length; i++) { ControlCandidates[i] = new TableEnemyCandidateControl(this, TableEnemyCandidate, i); } TableEnemyCandidate.ResumeLayout(); //BasePanel.SetFlowBreak( TextMapArea, true ); BasePanel.SetFlowBreak(TextDestination, true); //BasePanel.SetFlowBreak( TextEventKind, true ); BasePanel.SetFlowBreak(TextEventDetail, true); TextDestination.ImageList = ResourceManager.Instance.Equipments; TextEventKind.ImageList = ResourceManager.Instance.Equipments; TextEventDetail.ImageList = ResourceManager.Instance.Equipments; TextFormation.ImageList = ResourceManager.Instance.Icons; TextAirSuperiority.ImageList = ResourceManager.Instance.Equipments; TextAirSuperiority.ImageIndex = (int)ResourceManager.EquipmentContent.CarrierBasedFighter; ConfigurationChanged(); Icon = ResourceManager.ImageToIcon(ResourceManager.Instance.Icons.Images[(int)ResourceManager.IconContent.FormCompass]); }
public FormCompass(FormMain parent) { InitializeComponent(); MainFontColor = Color.FromArgb(0x00, 0x00, 0x00); SubFontColor = Color.FromArgb(0x88, 0x88, 0x88); ControlHelper.SetDoubleBuffered(BasePanel); ControlHelper.SetDoubleBuffered(TableEnemyFleet); ControlHelper.SetDoubleBuffered(TableEnemyMember); TableEnemyMember.SuspendLayout(); ControlMembers = new TableEnemyMemberControl[6]; for (int i = 0; i < ControlMembers.Length; i++) { ControlMembers[i] = new TableEnemyMemberControl(this, TableEnemyMember, i); } TableEnemyMember.ResumeLayout(); TableEnemyCandidate.SuspendLayout(); ControlCandidates = new TableEnemyCandidateControl[6]; for (int i = 0; i < ControlCandidates.Length; i++) { ControlCandidates[i] = new TableEnemyCandidateControl(this, TableEnemyCandidate, i); } //row/column style init for (int y = 0; y < TableEnemyCandidate.RowCount; y++) { var rs = new RowStyle(SizeType.AutoSize); if (TableEnemyCandidate.RowStyles.Count <= y) { TableEnemyCandidate.RowStyles.Add(rs); } else { TableEnemyCandidate.RowStyles[y] = rs; } } for (int x = 0; x < TableEnemyCandidate.ColumnCount; x++) { var cs = new ColumnStyle(SizeType.AutoSize); if (TableEnemyCandidate.ColumnStyles.Count <= x) { TableEnemyCandidate.ColumnStyles.Add(cs); } else { TableEnemyCandidate.ColumnStyles[x] = cs; } } TableEnemyCandidate.ResumeLayout(); //BasePanel.SetFlowBreak( TextMapArea, true ); BasePanel.SetFlowBreak(TextDestination, true); //BasePanel.SetFlowBreak( TextEventKind, true ); BasePanel.SetFlowBreak(TextEventDetail, true); TextDestination.ImageList = ResourceManager.Instance.Equipments; TextEventKind.ImageList = ResourceManager.Instance.Equipments; TextEventDetail.ImageList = ResourceManager.Instance.Equipments; TextFormation.ImageList = ResourceManager.Instance.Icons; TextAirSuperiority.ImageList = ResourceManager.Instance.Equipments; TextAirSuperiority.ImageIndex = (int)ResourceManager.EquipmentContent.CarrierBasedFighter; ConfigurationChanged(); Icon = ResourceManager.ImageToIcon(ResourceManager.Instance.Icons.Images[(int)ResourceManager.IconContent.FormCompass]); }