示例#1
0
        private void ChangeView()
        {
            if (radioDetailed.Checked)
            {
                flowLayoutPanelItemsDetailed.Visible = true;
                dataGridView1.Visible = false;
                flowLayoutPanelItemsDetailed.Controls.Clear();
                flowLayoutPanelItemsDetailed.Visible = false;
                flowLayoutPanelItemsDetailed.Enabled = false;
                using (FrmPleaseWait frm = new FrmPleaseWait(FillPanels))
                {
                    frm.ShowDialog(this);
                }

                flowLayoutPanelItemsDetailed.Enabled = true;
                flowLayoutPanelItemsDetailed.Visible = true;
            }
            else
            {
                flowLayoutPanelItemsDetailed.Visible = false;
                dataGridView1.Visible = true;
                using (FrmPleaseWait frm = new FrmPleaseWait(LoadData))
                {
                    frm.ShowDialog(this);
                }
            }
        }
示例#2
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     using (FrmPleaseWait frm = new FrmPleaseWait(LoadData))
     {
         frm.ShowDialog(this);
     }
     pnlDetails.Visible = true;
     User.AddToUserLog("Viewed Accounts", User.Username + " Viewed 12 months Figures starting from " + CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(dtpFrom.Value.Month).ToString() + " " + dtpFrom.Value.Year.ToString());
 }
        private void FrmOverview_Load(object sender, EventArgs e)
        {
            using (FrmPleaseWait frm = new FrmPleaseWait(LoadData))
            {
                Cursor.Current = Cursors.WaitCursor;
                frm.ShowDialog(this);
            }

            Cursor.Current      = Cursors.Default;
            pnlOverview.Visible = true;
        }