Ejemplo n.º 1
0
        public static void LoadLog(DataTable log)
        {
            var logForm = new PhoneLog
            {
                Data = log
            };

            logForm.ShowDialog();
        }
Ejemplo n.º 2
0
        private void ItmCallLog_Click(object sender, EventArgs e)
        {
            try
            {
                //test authentication
                var success = ArcLogin.IsAuthenticated();

                if (success)
                {
                    var log   = new CgiCallLog();
                    var table = log.GrabTable();

                    if (table != null)
                    {
                        if (table.Rows.Count > 0)
                        {
                            PhoneLog.LoadLog(table);
                        }
                        else
                        {
                            UiMessages.Warning(@"Call log from modem returned 0 rows; operation failed.", @"Data Error");
                        }
                    }
                    else
                    {
                        UiMessages.Warning(@"Call log from modem returned null bytes; operation failed.", @"Data Error");
                    }
                }
                else
                {
                    UiMessages.Warning(@"Authentication required; please authenticate first.");
                }
            }
            catch (Exception ex)
            {
                UiMessages.Error(ex.ToString());
            }
        }