예제 #1
0
 private void AddWebsiteForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (form != null)
     {
         form.Dispose();
         form = null;
     }
 }
예제 #2
0
 private void AddWebsiteForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (form != null)
     {
         form.Dispose();
         form = null;
     }
 }
예제 #3
0
 public static AddWebsiteForm GetInstance()
 {
     if (form == null)
     {
         lock (synLock)
         {
             form = new AddWebsiteForm();
         }
     }
     return(form);
 }
예제 #4
0
 public static AddWebsiteForm GetInstance()
 {
     if (form == null)
     {
         lock (synLock)
         {
             form = new AddWebsiteForm();
         }
     }
     return form;
 }
예제 #5
0
 private void BtnAddWebsite_Click(object sender, EventArgs e)
 {
     try
     {
         form_AddWebsite = AddWebsiteForm.GetInstance();
         form_AddWebsite.AddWebsiteHandlor += new AddWebsiteForm.AddWebsiteHandler(AddWebsite);
         form_AddWebsite.ShowDialog();
         form_AddWebsite.Activate();
         BtnApply.Enabled = true;
     }
     catch (Exception ex)
     {
         log.WriteLog(ex.ToString());
     }
 }
예제 #6
0
 private void BtnAddWebsite_Click(object sender, EventArgs e)
 {
     try
     {
         form_AddWebsite = AddWebsiteForm.GetInstance();
         form_AddWebsite.AddWebsiteHandlor +=new AddWebsiteForm.AddWebsiteHandler(AddWebsite);
         form_AddWebsite.ShowDialog();
         form_AddWebsite.Activate();
         BtnApply.Enabled = true;
     }
     catch (Exception ex)
     {
         log.WriteLog(ex.ToString());
     }
 }