Esempio n. 1
0
 public MoniroSettings(MainFormGe win)
 {
     InitializeComponent();
     mainWin                  = win;
     tbRedThreshold.Text      = win.RedDataThreshold.ToString();
     tbYellowThreshold.Text   = win.YellowDataThreshold.ToString();
     tbDataCountPerFrame.Text = win.DataCountPerFrame.ToString();
     tbBadDataThreshold.Text  = win.BadDataThreshold.ToString();
     _cmbFrequency.Text       = win.UpdateFrequency.ToString();
 }
Esempio n. 2
0
        private static void Main()
        {
            Thread.CurrentThread.CurrentUICulture =
                new CultureInfo("zh-Hans");

            // The following line provides localization for data formats.
            Thread.CurrentThread.CurrentCulture =
                new CultureInfo("zh-Hans");

            IConfigurationSource config = new XmlConfigurationSource("ARConfig.xml");

            var asm = Assembly.Load("LibEntity");

            ActiveRecordStarter.Initialize(asm, config);

            var mf = new MainFormGe(new BarButtonItem());
            var lf = new LoginForm(mf);

            Application.Run(lf);
        }