1-) C# RMOS - alert ve toast mesaj
public static void alertMesaj(string icerik)
{
string header = "RMOS ACENTEX";
if (Program.main != null)
{
AlertInfo alertInfo = new AlertInfo(header, icerik);
Program.main.alertControl1.AutoFormDelay = 2000;
Program.main.alertControl1.FormLocation = AlertFormLocation.BottomRight;
Program.main.alertControl1.ShowPinButton = true;
Program.main.alertControl1.Show(Program.main, alertInfo);
}
// AŞAĞISI TOAST MESAJ
if (Program.main != null)
{
Program.main.toastNotificationsManager1.Notifications[0].Header = header;
Program.main.toastNotificationsManager1.Notifications[0].Body = icerik;
Program.main.toastNotificationsManager1.ShowNotification(Program.main.toastNotificationsManager1.Notifications[0]);
}
}
1-) ALERT MESAJI BULUNDUĞU FORMUN SAĞ ÜSTÜNDE GÖSTERME
private void alertControl1_FormLoad(object sender, AlertFormLoadEventArgs e) { --e.AlertForm.Location = new Point((this.Width*2)-230, this.Location.Y); e.AlertForm.Location = new Point(this.Width+this.Location.X-255, this.Location.Y); } public void alertMesaj(string icerik) { string header = "RMOS CRM"; AlertInfo alertInfo = new AlertInfo(header, icerik); alertControl1.AutoFormDelay = 2000; alertControl1.FormLocation = AlertFormLocation.BottomRight; alertControl1.ShowPinButton = true; alertControl1.Show(this, alertInfo); } |