コード例 #1
0
 private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
 {
     if (treeView1.SelectedNode == report_today)
     {
         report.sale_detail_today today = new sale_detail_today();
         today.ShowDialog();
     }
     if (treeView1.SelectedNode == report_today_inv)
     {
         AllReport all = new AllReport();
         all.ShowDialog();
     }
     if (treeView1.SelectedNode == report_by_em)
     {
         report.employee_report_sale emp = new employee_report_sale();
         emp.ShowDialog();
     }
     if (treeView1.SelectedNode == report_by_day)
     {
         report.report_by_day day = new report.report_by_day();
         day.ShowDialog();
     }
     if (treeView1.SelectedNode == report_moth)
     {
     }
 }
コード例 #2
0
ファイル: POS.cs プロジェクト: phearunum/Restaurant-C-
        private void todayReportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (Application.OpenForms["sale_detail_today"] == null)
            {
                report.sale_detail_today allReport = new report.sale_detail_today();

                allReport.ShowDialog();
            }
        }