Example #1
0
 public static void Main()
 {
     if (PANEL == null)
     {
         PANEL = new WebServicePanel();
         PANEL.Closed += new EventHandler(panel_Closed);
     }
     PANEL.ShowDialog();
 }
Example #2
0
 public static void RunAtStartup(IApplication app)
 {
     try
     {
         Application = app;
         var comicVersion = new Version(app.ProductVersion);
         if (comicVersion < RequiredVersion)
         {
             MessageBox.Show("ComicRack version required: " + RequiredVersion);
             return;
         }
         if (PANEL == null)
         {
             PANEL = new WebServicePanel();
         }
         PANEL.StartService();
     }
     catch (Exception e)
     {
         MessageBox.Show(e.ToString());
     }
 }
Example #3
0
 public static void Run(IApplication app)
 {
     try
     {
         Application = app;
         var comicVersion = new Version(app.ProductVersion);
         if (comicVersion < RequiredVersion)
         {
             MessageBox.Show("ComicRack version required: " + RequiredVersion);
             return;
         }
         if (PANEL == null)
         {
             PANEL = new WebServicePanel();
             PANEL.Closed += new EventHandler(panel_Closed);
         }
         PANEL.ShowDialog();
     }
     catch (Exception e)
     {
         MessageBox.Show(e.ToString());
     }
 }
Example #4
0
 static void panel_Closed(object sender, EventArgs e)
 {
     PANEL = null;
 }