Наследование: PluginFunctionality
Пример #1
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            CustomPlugin cp = new CustomPlugin();
            cp.Initialize();

            GMailIntegration mail = new GMailIntegration(cp.GmailUsername, cp.GmailPassword);
            Console.WriteLine("New mails: {0}", mail.NewMessagesCount);

            for (int i = 0; i < mail.Entries.Count; ++i)
            {
                Console.WriteLine("{0} {1} {2}", mail.Entries[i].FromEmail, mail.Entries[i].Id, mail.Entries[i].Link);
            }

            try
            {
                ShowMessages showMessagesForm = new ShowMessages(mail.Entries);
                showMessagesForm.Show();
            }
            catch
            {
                ShowMessages showMessagesForm = new ShowMessages(false);
                showMessagesForm.Show();
            }

            Console.ReadLine();
        }
Пример #2
0
        public InitializeForm(CustomPlugin owner)
        {
            InitializeComponent();

            for (int i = 30; i >= 1; i--)
            {
                domainUpDownComPort.Items.Add("COM" + i.ToString());
            }
            domainUpDownComPort.SelectedIndex = 29;
        }
Пример #3
0
        public InitializeForm(CustomPlugin owner)
        {
            InitializeComponent();

            for (int i = 30; i >= 1; i--)
            {
                domainUpDownComPort.Items.Add("COM" + i.ToString());
            }
            domainUpDownComPort.SelectedIndex = 29;
        }
Пример #4
0
        public static void Main()
        {
            CustomPlugin plugin = new CustomPlugin();

            plugin.Initialize();
        }
Пример #5
0
 public static void Main()
 {
     CustomPlugin plugin = new CustomPlugin();
     plugin.Initialize();
 }