static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(NotificationIcon.Initialize()); }
private void SnilsGenButton_Click(object sender, EventArgs e) { var text = DataGenerator.Snils; Clipboard.SetText(snilsLabel.Text = DataGenerator.Snils); NotificationIcon.AddElementToDataArrayList(text); }
private void OgrnUlGenButton_Click(object sender, EventArgs e) { var text = DataGenerator.OgrnUl; Clipboard.SetText(ogrnUlLabel.Text = text); NotificationIcon.AddElementToDataArrayList(text); }
private void HotKeyIpRegister(Keys keys, KeyModifiers keyModifiers, KeyModifiers secondKeyModifiers = KeyModifiers.None) { _ipHotKey = new HotKey(keys, keyModifiers, secondKeyModifiers); _ipHotKey.Pressed += (o, e) => { var inn = DataGenerator.InnIp; Clipboard.SetText(inn); if (NotificationIcon.ShowNotificationStrategy) { NotificationIcon.ShowBalloonTip(2, "Буфер обновлен", "Сгенерирован ИНН для ИП", ToolTipIcon.Info); } NotificationIcon.AddElementToDataArrayList(inn); e.Handled = true; }; _ipHotKey.Register(this); }