Example #1
0
        public static System.Windows.Forms.DialogResult EditCollectorEntry(CollectorEntry collectorEntry, MonitorPack monitorPack)
        {
            QuickMon.Forms.EditCollectorConfig editCollectorEntry = new Forms.EditCollectorConfig();
            editCollectorEntry.SelectedEntry    = collectorEntry;
            editCollectorEntry.KnownRemoteHosts = KnownRemoteHosts;

            return(editCollectorEntry.ShowDialog(monitorPack));
        }
Example #2
0
        public static CollectorEntry CreateAndEditNewCollector(MonitorPack monitorPack, CollectorEntry parentCollectorEntry = null)
        {
            CollectorEntry newCollectorEntry = CreateNewCollector(parentCollectorEntry);

            if (newCollectorEntry != null)
            {
                QuickMon.Forms.EditCollectorConfig editCollectorEntry = new Forms.EditCollectorConfig();
                editCollectorEntry.SelectedEntry      = newCollectorEntry;
                editCollectorEntry.KnownRemoteHosts   = KnownRemoteHosts;
                editCollectorEntry.LaunchAddEntry     = LastLaunchAddEntryOption;
                editCollectorEntry.ShowRawEditOnStart = LastShowRawEditOnStartOption;

                if (editCollectorEntry.ShowDialog(monitorPack) != System.Windows.Forms.DialogResult.OK)
                {
                    newCollectorEntry = null;
                }
            }
            return(newCollectorEntry);
        }