Example #1
0
        private void newItemToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NginxMappingItemForm form = new NginxMappingItemForm(seConfig, itemConfig);

            form.ShowDialog(this);

            ReflushMonitorUrl();
        }
Example #2
0
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (projects.SelectedItems.Count > 0)
            {
                try
                {
                    ListViewItem    item = projects.SelectedItems[0];
                    NginxMonitorUrl pro  = (NginxMonitorUrl)item.Tag;

                    NginxMappingItemForm form = new NginxMappingItemForm(seConfig, itemConfig);
                    form.SetNginxMonitorUrl(pro);
                    form.ShowDialog(this);

                    ReflushMonitorUrl();
                }
                catch { }
            }
        }