예제 #1
0
 private void QuizForm_Load(object sender, EventArgs e)
 {
     XmlMethods.LoadXDocumnet(file);                                //Load the document (file creating remove when catch exception).
     setValuesToControl(0);                                         //set the first question fro file
     lblDescription.Text = XmlMethods.getQuention(file, Des, "1");
     lblQRemaining.Text  = "Question NO. : " + 1 + "/" + ID.Length; //set the first question number
 }
예제 #2
0
        private void EntryForm_Load(object sender, EventArgs e)
        {
            doc = XmlMethods.LoadXDocumnet(filename);


            currentID   = getMaxID();
            textID.Text = (currentID + 1).ToString();

            Console.WriteLine("Max is {0}", getMaxID());

            Console.WriteLine("Next Id is {0}", getMaxID() + 1);

            updateList();

            textID.Enabled = false;
        }