Exemplo n.º 1
0
        void OnClear(object sender, EventArgs e)
        {
            LogbookManagerClient proxy = new LogbookManagerClient();

            proxy.Clear();
            proxy.Close();

            OnReload(this, e);
        }
Exemplo n.º 2
0
        void OnReload(object sender, EventArgs e)
        {
            LogbookManagerClient proxy = new LogbookManagerClient("LogbookTCP");

            LogbookEntry[] entries = proxy.GetEntries();
            proxy.Close();

            m_EntriesBindingSource.DataSource = entries;

            ResizeGrid(m_EntriesGrid);
        }
Exemplo n.º 3
0
        public static void LogError(Exception error, MessageFault fault)
        {
            LogbookEntryClient entry = CreateLogbookEntry(error, fault);

            try
            {
                LogbookManagerClient proxy = new LogbookManagerClient();
                proxy.LogEntry(entry);
                proxy.Close();
            }
            catch
            {}
        }