コード例 #1
0
ファイル: Form1.cs プロジェクト: llenroc/AutoNotification
        private void button2_Click(object sender, EventArgs e)
        {
            if (notification == null)
            {
                notification = new Notification();
            }

            notification.Initialization();

            try
            {
                dataGridView.DataSource = notification.SomeMethod(NotificationHandler);
            }
            catch (Exception)
            {
                throw;
            }
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: llenroc/AutoNotification
 public Form1()
 {
     InitializeComponent();
     notification = new Notification();
     bt_prisijungti.Enabled = notification.CanRequestNotifications();
 }