Exemplo n.º 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 驗證有問題 或 其他問題");
            }
        }
Exemplo n.º 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());
            }
        }
Exemplo n.º 3
0
 public SettingForm(Configer config)
 {
     InitializeComponent();
     _config = config;
     _realTimeTransCB.Checked = (_config.SettingConfigxml.TransLationMode == 0);
 }