Beispiel #1
0
        public deft_xmltv_gui(grabber g, settings s)
        {
            InitializeComponent();
            this.g = g;
            this.s = s;

//#if DEBUG
//            log.loglevel = log.loglvl.debug;
//#else
            log.loglevel = log.loglvl.debug;
//#endif
            log.notice("");
            log.notice("App start");

            this.SizeChanged += new System.EventHandler(this.SizeChangedEv);

            s.AppDataChanged += new AppDataChangedHandler(appDataChanged);

            s.init(ConstructSettingsFromForm()); /*default values on form sets default values in settings*/

            SetFormFromSettings(s.sd);


            string[] args = Environment.GetCommandLineArgs();

            foreach (string arg in args)
            {
                if (arg == "-m")
                {
                    this.ShowInTaskbar = false;
                    this.WindowState   = FormWindowState.Minimized;
                }
            }
        }
        public deft_xmltv_gui(grabber g, settings s)
        {
            InitializeComponent();
            this.g = g;
            this.s = s;

            //#if DEBUG
            //            log.loglevel = log.loglvl.debug;
            //#else
            log.loglevel = log.loglvl.debug;
            //#endif
            log.notice("");
            log.notice("App start");

            this.SizeChanged += new System.EventHandler(this.SizeChangedEv);

            s.AppDataChanged += new AppDataChangedHandler(appDataChanged);

            s.init(ConstructSettingsFromForm()); /*default values on form sets default values in settings*/

            SetFormFromSettings(s.sd);

            string[] args = Environment.GetCommandLineArgs();

            foreach (string arg in args)
            {
                if (arg == "-m")
                {
                    this.ShowInTaskbar = false;
                    this.WindowState = FormWindowState.Minimized;
                }
            }
        }