public MainWindow() { InitializeComponent(); phone_book_root_node = tv_PhoneBook.Nodes["phone_book_root_node"]; sessions_root_node = tv_Sessions.Nodes["sessions_root_node"]; internal_root_node = sessions_root_node.Nodes["internal_root_node"]; external_root_node = sessions_root_node.Nodes["external_root_node"]; inbound_root_node = sessions_root_node.Nodes["inbound_root_node"]; outbound_root_node = sessions_root_node.Nodes["outbound_root_node"]; sessions_root_node.ExpandAll(); talk_duration_less_than_a_minute = new DataPoint { Name = "LessThenAMinute", LegendText = "Talk < 1 min", YValues = new[] { 0.0 }, Color = Color.FromArgb(100, 180, 100) }; c_UserChart.Series[USER_STATES].Points.Add(talk_duration_less_than_a_minute); talk_duration_over_a_minute = new DataPoint { Name = "OverAMinute", LegendText = "Talk >= 1 min", YValues = new[] { 0.0 }, Color = Color.FromArgb(180, 80, 80) }; c_UserChart.Series[USER_STATES].Points.Add(talk_duration_over_a_minute); SetState(LoginState.LoggedOut); presenter = new MainWindowPresenter(this, SimpleIOCContainer.Instance.Resolve<IOPSClient>()); c_Statistics.Series[NUMBER_OF_SESSIONS].Points.AddXY(0, 0); c_Statistics.Series[NUMBER_OF_DROPPED_SESSIONS].Points.AddXY(0, 0); presenter.Connect(); t_Timer.Start(); }
public MainWindow() { InitializeComponent(); phone_book_root_node = tv_PhoneBook.Nodes["phone_book_root_node"]; sessions_root_node = tv_Sessions.Nodes["sessions_root_node"]; internal_root_node = sessions_root_node.Nodes["internal_root_node"]; external_root_node = sessions_root_node.Nodes["external_root_node"]; inbound_root_node = sessions_root_node.Nodes["inbound_root_node"]; outbound_root_node = sessions_root_node.Nodes["outbound_root_node"]; sessions_root_node.ExpandAll(); talk_duration_less_than_a_minute = new DataPoint { Name = "LessThenAMinute", LegendText = "Talk < 1 min", YValues = new[] { 0.0 }, Color = Color.FromArgb(100, 180, 100) }; c_UserChart.Series[USER_STATES].Points.Add(talk_duration_less_than_a_minute); talk_duration_over_a_minute = new DataPoint { Name = "OverAMinute", LegendText = "Talk >= 1 min", YValues = new[] { 0.0 }, Color = Color.FromArgb(180, 80, 80) }; c_UserChart.Series[USER_STATES].Points.Add(talk_duration_over_a_minute); SetState(LoginState.LoggedOut); presenter = new MainWindowPresenter(this, SimpleIOCContainer.Instance.Resolve <IOPSClient>()); c_Statistics.Series[NUMBER_OF_SESSIONS].Points.AddXY(0, 0); c_Statistics.Series[NUMBER_OF_DROPPED_SESSIONS].Points.AddXY(0, 0); presenter.Connect(); t_Timer.Start(); }
public MainWindow() { InitializeComponent(); presenter = new MainWindowPresenter(this, SimpleIOCContainer.Instance.Resolve <IOPSClient>()); presenter.ExtensionsListAvailable += PresenterOnExtensionsListAvailable; presenter.OutsideLinesListAvailable += PresenterOnOutsideLinesListAvailable; presenter.Connect(); lbl_FormatValue.Text = SettingsHelper.RecordingFileFormat.ToString(); lbl_RecordingPathValue.Text = SettingsHelper.RecordingPath; }
void tsmi_ConnectToServerServer_Clicked(object sender, EventArgs e) { presenter.Connect(); }