public static DownloadingEpisodes GetMe()
 {
     if (MyObject == null)
     {
         MyObject = new DownloadingEpisodes();
     }
     return(MyObject);
 }
Beispiel #2
0
 public SingleLoadedAnime()
 {
     _tryCount = 0;
     if (DesignMode == false)
     {
         InitializeComponent();
         _phantomObject = WebDriverClass.PhantomJSInstance;
         _de            = DownloadingEpisodes.GetMe();
     }
 }
Beispiel #3
0
        public MainFrm()
        {
            foreach (var p in Process.GetProcessesByName("PhantomJS"))
            {
                p.Kill();
            }

            InitializeComponent();
            optionStrip.Renderer = new RemStripBar();
            if (DesignMode == false)
            {
                _downloadingEpisodes = DownloadingEpisodes.GetMe();
                _downloadingEpisodes.Hide();
            }
            VersionTxt.Text += Application.ProductVersion;
            DecoratorClass.GoThroughDecorate(this);
            ProgramText.BackColor = MainFrmPanel.BackColor; //doesn't inherit control!
        }