예제 #1
0
        private void btnSalesOrder_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmNotification notify = frmNotification.getInstance();

            notify.Show();
        }
예제 #2
0
 public static frmNotification getInstance()
 {
     if (instance == null || instance.IsDisposed)
     {
         instance = new frmNotification();
     }
     else
     {
         instance.BringToFront();
     }
     return(instance);
 }
예제 #3
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            lblreminder.Text = DateTime.Now.ToString("yyyy-MM-dd");
            search_reminder_date();
            //lblFirst.Text = first_name.ToUpper();
            if (cmbreminder.Text.Length > 0)
            {
                //MessageBox.Show("You have to remind domain name for renew customer payment", "Check domain name", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);

                DialogResult exit;
                exit = MessageBox.Show("You have some domain names to be expire. Are you want to check these domain names now?", "Check domain name", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
                if (exit == DialogResult.Yes)
                {
                    frmNotification summery = new frmNotification();
                    summery.ShowDialog();
                }
            }
        }