public void CancelPollBuddy() { Trace.WriteLine("Entering RTCPresence.CancelPollBuddy"); this.pollDialog = null; this.pollpresenceMenuItem.Enabled = true; }
void pollpresenceMenuItem_Click(object sender, System.EventArgs e) { Trace.WriteLine("Entering RTCPresence.pollpresenceMenuItem_Click");; this.pollpresenceMenuItem.Enabled = false; pollDialog = new PollDialog("Poll Contact", this); pollDialog.Show(); }
void signoutMenuItem_Click(object sender, System.EventArgs e) { Trace.WriteLine("Entering RTCPresence.signoutMenuItem_Click"); if (this.pollDialog != null) { this.pollDialog.Close(); this.pollDialog = null; } this.presenceCore.DoLogOff(); }
protected override void OnClosing(CancelEventArgs e) { Trace.WriteLine("Entering RTCPresence.OnClosing"); base.OnClosing(e); if (this.pollDialog != null) { this.pollDialog.Close(); this.pollDialog = null; } if (this.presenceCore.DoShutdown()) { // The RTC client object is preparing to shutdown. e.Cancel = true; this.Hide(); } }