Click here to Skip to main content
13,596,861 members
   

C#

 
GeneralRe: intel Hex file creator from Txt File Pin
Psudonym22-Aug-17 17:22
memberPsudonym22-Aug-17 17:22 
GeneralRe: intel Hex file creator from Txt File Pin
Luc Pattyn22-Aug-17 1:56
professionalLuc Pattyn22-Aug-17 1:56 
AnswerRe: intel Hex file creator from Txt File Pin
Psudonym22-Aug-17 18:13
memberPsudonym22-Aug-17 18:13 
GeneralI want to display this method into graphics form inside Private void VtfGraphicalViewMode(Graphics graphics){} Pin
Member 1321093321-Aug-17 8:09
memberMember 1321093321-Aug-17 8:09 
GeneralRe: I want to display this method into graphics form inside Private void VtfGraphicalViewMode(Graphics graphics){} Pin
OriginalGriff21-Aug-17 20:04
protectorOriginalGriff21-Aug-17 20:04 
Questionhow can I add data to datatable and bind it to datagridview c# Pin
ali nagi20-Aug-17 17:27
memberali nagi20-Aug-17 17:27 
AnswerRe: how can I add data to datatable and bind it to datagridview c# Pin
Mycroft Holmes20-Aug-17 20:38
professionalMycroft Holmes20-Aug-17 20:38 
Questionhow cal i cal my list for left right and total and draw graphs Pin
Member 1321093318-Aug-17 4:31
memberMember 1321093318-Aug-17 4:31 
anyone cal add code in this for that


public class VerticalForceGraph
{
private List<verticalforce> vtfList = new List<verticalforce>();

public int BufferSize { get; set; }

public void Add(VerticalForce vtf)
{
vtfList.Add(vtf);

// remove first item if condition
if(vtfList.Count > BufferSize)
{
// vtfList.RemoveRange(1, 1);
vtfList.RemoveAt(0);

}
}

public int[] GetLeftVTF()
{
return vtfList.Select(x => x.Left).ToArray();
}

public int[] GetRightVTF()
{
return vtfList.Select(x => x.Right).ToArray();
}

public int[] GetTotalVTF()
{
return vtfList.Select(x => x.Total).ToArray();
}


}


// and i want to cal it here and draw graph


private void VtfGraphicalViewMode(Graphics graphics)
{


Pen yellowPen = new Pen(Color.Yellow, 2);
Pen bluePen = new Pen(Color.Blue, 2);
Pen redPen = new Pen(Color.Red, 2);
int hOffset = heatmapWidth / 2;
int vOffset = heatmapHeight / 2;
//Display title
using (Font title_font = new Font("Times New Roman", 20))
{
using (StringFormat string_format = new StringFormat())
{

string_format.Alignment = StringAlignment.Center;
string_format.LineAlignment = StringAlignment.Center;
Point title_center = new Point(this.heatmapWidth / 2, 20);
Point titleleft = new Point(this.heatmapHeight / 4, heatmapWidth/10);


Font leftfornt = new Font("Times New Roman", 10);
Font totalfont = new Font("Times New Roman", 10);
Font rightfont = new Font("Times New Roman", 10);



graphics.SmoothingMode = SmoothingMode.AntiAlias;
graphics.DrawRectangle(outline, new Rectangle(heatmapCoord_X, heatmapCoord_Y, heatmapWidth, heatmapHeight));
Rectangle graph_area = new Rectangle(heatmapCoord_X, heatmapCoord_Y, heatmapWidth, heatmapHeight);
graphics.FillRectangle(Brushes.LightBlue, graph_area);
graphics.DrawString("VTF Grahical View",
title_font, Brushes.Blue,
title_center, string_format);
graphics.DrawString("Left VTF", leftfornt, Brushes.Blue, titleleft, string_format);


//Y-axis
int xOffset = 50;
int yOffset = 20;
graphics.DrawLine(Pens.Blue,
heatmapCoord_X + xOffset, heatmapCoord_Y + (heatmapHeight - 50),heatmapCoord_X + xOffset, heatmapCoord_Y + yOffset
);


//X-axis
graphics.DrawLine(Pens.Blue,
heatmapCoord_X + (heatmapWidth - 10), heatmapCoord_Y + (heatmapHeight - 50), heatmapCoord_X + xOffset, heatmapCoord_Y + (heatmapHeight - 50)
);
AnswerRe: how cal i cal my list for left right and total and draw graphs Pin
Dave Kreskowiak18-Aug-17 4:47
mvpDave Kreskowiak18-Aug-17 4:47 
Questionhow can i Display Frequency graph of data i have.i stored it into list<>.now i want o display it as a graphical form Pin
Member 1321093318-Aug-17 5:33
memberMember 1321093318-Aug-17 5:33 
AnswerRe: how can i Display Frequency graph of data i have.i stored it into list<>.now i want o display it as a graphical form Pin
Dave Kreskowiak18-Aug-17 7:15
mvpDave Kreskowiak18-Aug-17 7:15 
QuestionUnderstanding the steps in creating a GUI project named DisplayQuotes in Visual Studios IDE, C# programming Pin
Member 1336452016-Aug-17 16:14
memberMember 1336452016-Aug-17 16:14 
AnswerRe: Understanding the steps in creating a GUI project named DisplayQuotes in Visual Studios IDE, C# programming Pin
OriginalGriff16-Aug-17 19:48
protectorOriginalGriff16-Aug-17 19:48 
GeneralRe: Understanding the steps in creating a GUI project named DisplayQuotes in Visual Studios IDE, C# programming Pin
Member 1336452018-Aug-17 6:58
memberMember 1336452018-Aug-17 6:58 
GeneralRe: Understanding the steps in creating a GUI project named DisplayQuotes in Visual Studios IDE, C# programming Pin
OriginalGriff18-Aug-17 8:28
protectorOriginalGriff18-Aug-17 8:28 
AnswerRe: Understanding the steps in creating a GUI project named DisplayQuotes in Visual Studios IDE, C# programming Pin
BillWoodruff17-Aug-17 21:27
mvpBillWoodruff17-Aug-17 21:27 
QuestionRe: Understanding the steps in creating a GUI project named DisplayQuotes in Visual Studios IDE, C# programming Pin
Luc Pattyn18-Aug-17 2:11
professionalLuc Pattyn18-Aug-17 2:11 
AnswerRe: Understanding the steps in creating a GUI project named DisplayQuotes in Visual Studios IDE, C# programming Pin
OriginalGriff18-Aug-17 2:20
protectorOriginalGriff18-Aug-17 2:20 
GeneralRe: Understanding the steps in creating a GUI project named DisplayQuotes in Visual Studios IDE, C# programming Pin
Luc Pattyn18-Aug-17 2:25
professionalLuc Pattyn18-Aug-17 2:25 
AnswerRe: Understanding the steps in creating a GUI project named DisplayQuotes in Visual Studios IDE, C# programming Pin
Pete O'Hanlon18-Aug-17 2:46
protectorPete O'Hanlon18-Aug-17 2:46 
QuestionRe: Understanding the steps in creating a GUI project named DisplayQuotes in Visual Studios IDE, C# programming Pin
Luc Pattyn18-Aug-17 3:00
professionalLuc Pattyn18-Aug-17 3:00 
AnswerRe: Understanding the steps in creating a GUI project named DisplayQuotes in Visual Studios IDE, C# programming Pin
Pete O'Hanlon18-Aug-17 3:48
protectorPete O'Hanlon18-Aug-17 3:48 
GeneralRe: Understanding the steps in creating a GUI project named DisplayQuotes in Visual Studios IDE, C# programming Pin
OriginalGriff18-Aug-17 3:55
protectorOriginalGriff18-Aug-17 3:55 
GeneralRe: Understanding the steps in creating a GUI project named DisplayQuotes in Visual Studios IDE, C# programming Pin
Luc Pattyn18-Aug-17 4:30
professionalLuc Pattyn18-Aug-17 4:30 
GeneralRe: Understanding the steps in creating a GUI project named DisplayQuotes in Visual Studios IDE, C# programming Pin
Member 1336452018-Aug-17 7:24
memberMember 1336452018-Aug-17 7:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.180621.3 | Last Updated 23 Jun 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid