Example #1
0
        private void ShowCycliAgentForm()
        {
            if (cycliAgentForm == null)
            {
                cycliAgentForm = new CycliAgentForm();

                cycliAgentForm.Closed += cycliAgentForm_Closed;
                cycliAgentForm.Show();
            }
            else { cycliAgentForm.Activate(); }
        }
Example #2
0
 // null out the forms so we know to create a new one.
 void cycliAgentForm_Closed(object sender, EventArgs e)
 {
     cycliAgentForm = null;
 }