private void prepareForm(VElectionDetail result,DateTime serverDate) { electionName.Dispatcher.BeginInvoke(new Action(delegate() { electionName.Text = "En Yakın Seçim: "; electionName.Text += result.Name; })); startDate.Dispatcher.BeginInvoke(new Action(delegate() { startDate.Text = "Başlangıç Zamanı: "; startDate.Text += result.StartDate.Value; })); endDate.Dispatcher.BeginInvoke(new Action(delegate() { endDate.Text = "Bitiş Zamanı: "; endDate.Text += result.FinishDate.Value; })); left.Dispatcher.BeginInvoke(new Action(delegate() { if (!Globals.IsElectionStarted) { left.Text = "Kalan Zaman: "; left.Text += Math.Ceiling((result.StartDate.Value - serverDate).TotalMinutes) + " Dakika"; } else { left.Text = "Seçim zaman aşımında. "; } })); }
private void prepareForm(VElectionDetail result, DateTime serverDate) { electionName.Dispatcher.BeginInvoke(new Action(delegate() { electionName.Text = "En Yakın Seçim: "; electionName.Text += result.Name; })); startDate.Dispatcher.BeginInvoke(new Action(delegate() { startDate.Text = "Başlangıç Zamanı: "; startDate.Text += result.StartDate.Value; })); endDate.Dispatcher.BeginInvoke(new Action(delegate() { endDate.Text = "Bitiş Zamanı: "; endDate.Text += result.FinishDate.Value; })); left.Dispatcher.BeginInvoke(new Action(delegate() { if (!Globals.IsElectionStarted) { left.Text = "Kalan Zaman: "; left.Text += Math.Ceiling((result.StartDate.Value - serverDate).TotalMinutes) + " Dakika"; } else { left.Text = "Seçim zaman aşımında. "; } })); }