Beispiel #1
0
        public frmMain(string[] args)
        {
            Parameter = new ParameterDictionary();
            NomiRegEx = new ListNameRegEx();

            InitializeComponent();

            Logger.Setup(Parameter.GetBool("LogOn"));
            PileSwLib.PileSwLib.OnUpdatePosition += SwPileUtil_OnUpdatePosition;

            //Set logs da fare subito
            PileSwLib.UtilTest.UtilTestLib.SetLog(log); //SwPileLib
            PileSwLib.PileSwLib.SetLog(log);            //SwPileLibUtil
            //--------------------------
            PileSwLib.PileSwLib.UseWMI = false;         // Properties.Settings.Default.UseWMI;
            PileSwLib.PileSwLib.SetServiceConfig(Parameter.StrCfg);

            //Start Work
            bw.DoWork += bw_DoWork;
            if (bw.IsBusy != true)
            {
                bw.RunWorkerAsync();
            }

            toolStrip1_Resize(this, new EventArgs());

            log.Warn("Started at " + DateTime.Now.ToString() + " " + SystemInformation.UserName);

            SetChmFile();
            if (args.Count() > 0)
            {
                FileDaAprire = args[0];
            }
        }