Click here to Skip to main content
15,891,981 members
Home / Discussions / C#
   

C#

 
GeneralRe: variable names Pin
Abhinav S10-Dec-09 5:47
Abhinav S10-Dec-09 5:47 
GeneralRe: variable names Pin
benjamin yap10-Dec-09 5:53
benjamin yap10-Dec-09 5:53 
GeneralRe: variable names Pin
Abhinav S10-Dec-09 5:58
Abhinav S10-Dec-09 5:58 
GeneralRe: variable names Pin
benjamin yap10-Dec-09 6:06
benjamin yap10-Dec-09 6:06 
GeneralRe: variable names Pin
Luc Pattyn10-Dec-09 6:08
sitebuilderLuc Pattyn10-Dec-09 6:08 
AnswerRe: variable names Pin
Keith Barrow10-Dec-09 6:12
professionalKeith Barrow10-Dec-09 6:12 
GeneralRe: variable names Pin
PIEBALDconsult10-Dec-09 6:32
mvePIEBALDconsult10-Dec-09 6:32 
GeneralRe: variable names Pin
benjamin yap10-Dec-09 17:56
benjamin yap10-Dec-09 17:56 
well..

basically this is wat i am foreaching

public void AddAnnotations()
{
    string toa = "calls";
    while (true)
    {

        XmlDocument xmlPlogs = getAllPlogs(toa);
        XmlNodeList plogs = xmlPlogs.SelectNodes("/PlogList/Plog");

        Annotation[] anno = null;
        int countA = 0;
        int arrayIndex = 0;
        foreach (XmlNode plog in plogs)
        {
            XmlNodeList receivers = plog.SelectNodes("PlogUnique/Message/Receiver");

            foreach (DateTime dt in dateArray)
            {
                DateTime newDT = Convert.ToDateTime(plog.SelectSingleNode("PlogCommon/TimeOfOccurrence").InnerText);
                newDT = Convert.ToDateTime(newDT.ToString("dd MMM"));
                String content = plog.SelectSingleNode("PlogUnique/Message/Content").InnerText;
                if((content.Contains(stockQuote)) && (newDT.ToString() == dt.ToString()))
                {
                    for (int i = 0; i < dateArray.Length; i++)
                    {
                        if (dateArray[i] == newDT)
                        {
                            arrayIndex = i;
                        }
                    }
                    anno[countA] = m_ChartControl.Charts[0].AnnotationList.CreateAnnotation();
                    anno[countA].Location.TypeX = LengthType.Bound;
                    anno[countA].Location.X = arrayIndex;
                    anno[countA].Location.TypeY = LengthType.Bound;
                    anno[countA].Location.Y = 0;

                    anno[countA].Data = "     ";
                    anno[countA].Font.Size = 4;
                    anno[countA].Font.Bold = false;
                    anno[countA].Color = Color.FromArgb(1, 1, 1);

                    modulePath = this.GetType().Module.FullyQualifiedName;
                    moduleDir = Path.GetDirectoryName(modulePath);
                    anno[countA].ImageFile = Path.Combine(moduleDir, "ArrUp.png");
                    countA++;
                }

            }
        }
        Thread.Sleep(5 * 60 * 1000);
        ResetChart();
    }
}

QuestionPharmacy Program Pin
Aiham242410-Dec-09 4:56
Aiham242410-Dec-09 4:56 
AnswerRe: Pharmacy Program Pin
Keith Barrow10-Dec-09 5:02
professionalKeith Barrow10-Dec-09 5:02 
AnswerRe: Pharmacy Program Pin
OriginalGriff10-Dec-09 5:08
mveOriginalGriff10-Dec-09 5:08 
AnswerRe: Pharmacy Program Pin
Luc Pattyn10-Dec-09 5:20
sitebuilderLuc Pattyn10-Dec-09 5:20 
GeneralRe: Pharmacy Program Pin
EliottA10-Dec-09 5:22
EliottA10-Dec-09 5:22 
GeneralRe: Pharmacy Program Pin
OriginalGriff10-Dec-09 5:24
mveOriginalGriff10-Dec-09 5:24 
GeneralRe: Pharmacy Program Pin
Luc Pattyn10-Dec-09 6:11
sitebuilderLuc Pattyn10-Dec-09 6:11 
GeneralRe: Pharmacy Program Pin
OriginalGriff10-Dec-09 8:28
mveOriginalGriff10-Dec-09 8:28 
GeneralRe: Pharmacy Program Pin
ragnaroknrol10-Dec-09 5:53
ragnaroknrol10-Dec-09 5:53 
GeneralRe: Pharmacy Program Pin
Dave Sexton10-Dec-09 6:07
Dave Sexton10-Dec-09 6:07 
GeneralRe: Pharmacy Program Pin
Luc Pattyn10-Dec-09 6:12
sitebuilderLuc Pattyn10-Dec-09 6:12 
AnswerRe: Pharmacy Program Pin
MumbleB10-Dec-09 7:33
MumbleB10-Dec-09 7:33 
AnswerRe: Pharmacy Program Pin
Dave Kreskowiak10-Dec-09 9:45
mveDave Kreskowiak10-Dec-09 9:45 
QuestionOffice 2007 Word automation - setting default conversion for InsertFile Pin
Sibble10-Dec-09 4:21
Sibble10-Dec-09 4:21 
AnswerRe: Office 2007 Word automation - setting default conversion for InsertFile Pin
The Man from U.N.C.L.E.14-Dec-09 3:17
The Man from U.N.C.L.E.14-Dec-09 3:17 
Question[Message Deleted] Pin
Sr...Frank10-Dec-09 4:00
Sr...Frank10-Dec-09 4:00 
AnswerRe: System Dialog! Pin
Eddy Vluggen10-Dec-09 4:08
professionalEddy Vluggen10-Dec-09 4:08 

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.