Beispiel #1
0
        static void Main()
        {
            Configer config = new Configer();

            if (File.Exists(config.FullCredential))
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                MainForm mf = new MainForm(config);
                mf.TopMost = true;
                Application.Run(mf);
            }
            else
            {
                MessageBox.Show("C:/ProgramData/credential.json 不存在 或 Google API 驗證有問題 或 其他問題");
            }
        }
Beispiel #2
0
        public MainForm(Configer config)
        {
            InitializeComponent();

            //永遠保持最上面
            TopMost = true;
            try
            {
                _config = config;
                _api    = new ApiClient(_config.FullCredential);
                _dmodel = new DataModel(_config.Configxml.LogPath);
                this.setTheFormTitle();
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString());
            }
        }
 public SettingForm(Configer config)
 {
     InitializeComponent();
     _config = config;
     _realTimeTransCB.Checked = (_config.SettingConfigxml.TransLationMode == 0);
 }