public void Login(string server_address, string username, string password)
        {
            stats = new Statistics();

            ops_client = new OpsClient();
            ops_client.ErrorOccurred += OPSClientOnErrorOccurred;

            ops_client.LoginAsync(server_address, username, password, Completed);
        }
 void tsmi_Disconnect_Clicked(object sender, EventArgs e)
 {
     user_statistics_container = new UserStatisticsContainer();
     stats = new Statistics();
     number_of_sessions = 0;
     talk_duration_less_than_a_minute.YValues = new[] { 0.0 };
     talk_duration_over_a_minute.YValues = new[] { 0.0 };
     presenter.Disconnect();
     c_CallsInProgressStatistics.Series.Clear();
 }
 public void ShowStatistics(Statistics statistics)
 {
     stats = statistics;
     AddPointToChartSeries(c_Statistics, NUMBER_OF_DROPPED_SESSIONS, unit_of_time, stats.NumberOfDroppedSessions);
 }