private void actiongeComboBox_SelectedIndexChanged(object sender, EventArgs e) { if (firstLoad == false) { MdlOptionsManagement.getNotifications(Conversions.ToString(actionComboBox1.SelectedItem), Conversions.ToString(typeComboBox.SelectedItem), this); } }
private void NotificationCenter1_FetchNewNotifications() { // NotificationCenter1.NotificationAlert = True isNewNotification = true; MdlOptionsManagement.getNotifications(Conversions.ToString(actionComboBox1.SelectedItem), Conversions.ToString(typeComboBox.SelectedItem), this); isNewNotification = false; }
private void Form1_Load(object sender, EventArgs e) { MdlOptionsManagement.fillUpEmployeesStats(); firstLoad = true; { var withBlock = NotificationCenter1; withBlock.NotifyButtonDefinitions('\u0001', "Approve", Color.Green); withBlock.NotifyButtonDefinitions('\u0002', "Decline", Color.Firebrick); withBlock.NotifyButtonDefinitions('\u0003', "Hide", Color.FromKnownColor(KnownColor.ControlDarkDark)); withBlock.NotifyButtonDefinitions('\u0004', "Solved", Color.Teal); withBlock.NotifyButtonDefinitions('\u0005', "Dismiss", Color.Firebrick); withBlock.NotifyButtonDefinitions('\u0006', "Message", Color.DarkSlateGray, true); withBlock.NotifyButtonDefinitions('\a', "Details", Color.FromKnownColor(KnownColor.SteelBlue), true); withBlock.NotifyButtonDefinitions('\b', "Confirm", Color.Green); withBlock.NotifyButtonDefinitions('\t', "Update Address", Color.Green); } if (MdlOptionsManagement.canSeeNotificationas == false) { NotificationCenter1.Hide(); } else { actionComboBox1.SelectedIndex = 0; typeComboBox.SelectedIndex = 0; MdlOptionsManagement.getNotifications(Conversions.ToString(actionComboBox1.SelectedItem), Conversions.ToString(typeComboBox.SelectedItem), this); firstLoad = false; } if (MdlOptionsManagement.canSeeMessages == false) { messageEmployeeeTableLayoutPanel.Hide(); } else { messageEmployeeeTableLayoutPanel.Show(); } }