Esempio n. 1
0
        public MainForm()
        {
            InitializeComponent();
            Device.SetAsLCDForegroundApp(true);
            if (!IsHandleCreated) CreateHandle();
            _hooks = new Hooks(Device);
            Device.Menu += Device_Menu;
            Device.Ok += DeviceOnOk;

            _currentTheme = _themer.GetTheme(Settings.Default.ThemeIdx);
            ApplyTheme();

            EnterChatroom();
        }
Esempio n. 2
0
        public MainForm()
        {
            InitializeComponent();
            Device.SetAsLCDForegroundApp(true);
            if (!IsHandleCreated)
            {
                CreateHandle();
            }
            _hooks       = new Hooks(Device);
            Device.Menu += Device_Menu;
            Device.Ok   += DeviceOnOk;

            _currentTheme = _themer.GetTheme(Settings.Default.ThemeIdx);
            ApplyTheme();

            EnterChatroom();
        }
Esempio n. 3
0
 static void Main()
 {
     if (_mutex.WaitOne(TimeSpan.Zero, true))
     {
         Application.EnableVisualStyles();
         try {
             new MainForm();
             Application.Run();
         }
         catch {
         }
         finally {
             _mutex.ReleaseMutex();
         }
     }
     else
     {
         Hooks.BroadcastForegroundRequest();
     }
 }