コード例 #1
0
ファイル: Main.cs プロジェクト: BackupTheBerlios/charp
        public static void Main(string[] args)
        {
            Application.Init ();

            charp = new CharpGtk ();
            charp.baseUrl = "http://www.imr.local/";
            charp.credentialsSet ("testuser", "6f1ed002ab5595859014ebf0951522d9");
            charp.credentialsSave ();

            MainWindow win = new MainWindow (charp);
            win.Show ();
            Application.Run ();
        }
コード例 #2
0
ファイル: Main.cs プロジェクト: pupitetris/imr
        public static void Main(string[] args)
        {
            AppConfig.TrySetProcessName ();
            AppConfig.ThemeSetup ();

            Application.Init ();

            CharpGtk charp = new CharpGtk ();
            AppConfig config = new AppConfig (charp, new Radionic ());

            if (!config.LoadOrSetup ()) {
                return;
            }

            MainWindow win;
            do {
                win = null;

                WelcomeDlg wDlg = new WelcomeDlg (config);
                charp.parent = wDlg;

                wDlg.Show ();
                Application.Run ();

                config.Save ();

                if (!wDlg.authSuccess ()) {
                    return;
                }

                wDlg = null;

                win = new MainWindow (config);
                charp.parent = win;
                config.mainwin = win;
                win.Show ();
                Application.Run ();
                config.mainwin = null;
            } while (win.IsLogout);
        }