コード例 #1
0
    public static void Main()
    {
        var ele = new Election();
        var ui  = new ElectionUI(ele);

        ui.candidateInfo();
        ele.findWinner();
    }
        static void Main(string[] args)
        {
            Info myInfo = new Info();
            myInfo.DisplayInfo("Election Result");

            ElectionUI newEUI = new ElectionUI();
            newEUI.MainMethod();
        }
コード例 #3
0
ファイル: EligereESAPI.cs プロジェクト: Unipisa/eligere
        public async Task <IActionResult> UpdateElection(Guid id, ElectionUI election)
        {
            var e = await _context.Election.FindAsync(id);

            election.UpdateElection(e);
            await _context.SaveChangesAsync();

            return(Ok());
        }
コード例 #4
0
        private static void Main(string[] args)
        {
            //a new instance of the Info class called myInfo is created
            Info myInfo = new Info();

            //starts the AssignmentInfo method from the Info class and passes in the assignment data string
            myInfo.DisplayInfo("Assignment 3 - Election Results");

            Thread.Sleep(4000);

            ElectionUI start = new ElectionUI();

            start.MainMethod();
        }
コード例 #5
0
        private static void Main()
        {
            //a new instance of the Info class called myInfo is created
            Info myInfo = new Info();

            //starts the AssignmentInfo method from the Info class and passes in the assignment data string
            myInfo.DisplayInfo("Assignment 3 - Farmer Game");

            Thread.Sleep(4000);

            ElectionUI playGame = new ElectionUI();

            playGame.MainMethod();
        }