static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            GadgetManager.Init();
            initNotifyIcon();

            Application.Run();
        }
Exemplo n.º 2
0
        private void GadgetManagerForm_Load(object sender, EventArgs e)
        {
            int i = 0;

            foreach (var gInfo in GadgetManager.getGadgetInfoList())
            {
                GadgetIconControl gIconControl = new GadgetIconControl(i, gInfo.name, gInfo.icon.src);
                gadgetListPanel.Controls.Add(gIconControl);
                i++;
            }
        }
Exemplo n.º 3
0
 private void importGadgetLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (gadgetBrowserDialog.ShowDialog() == DialogResult.OK)
     {
         if (GadgetManager.addGadget(gadgetBrowserDialog.SelectedPath))
         {
             GadgetInfo        gInfo        = GadgetManager.getLastGadgetInfo();
             GadgetIconControl gIconControl = new GadgetIconControl(GadgetManager.getGedgetCount(), gInfo.name, gInfo.icon.src);
             gadgetListPanel.Controls.Add(gIconControl);
         }
         else
         {
             MessageBox.Show("Error", "Can't load Gadget");
         }
     }
 }
 private void activeGadget()
 {
     GadgetManager.setGadgetActivationAt(_index, true);
 }
 private void GadgetForm_Load(object sender, EventArgs e)
 {
     gadgetDisplay.Navigate(GadgetManager.getGadgetInfoAt(_index).htmlPath);
 }
 private void GadgetForm_LocationChanged(object sender, EventArgs e)
 {
     GadgetManager.setGadgetPositionAt(_index, Location.X, Location.Y);
 }
 private static void exitApplication_Event(object Sender, EventArgs e)
 {
     GadgetManager.Close();
     Application.Exit();
 }