Example #1
0
 public EventBook(FSRESTAURANT.EVENT_PENJUALANRow eprow)
 {
     if (eprow == null)
     {
         throw new ArgumentNullException();
     }
     this.eprow = eprow;
     InitializeComponent();
     //init value
     dttable = MainForm.FS.EVENT_TABLE;
     dtbook  = MainForm.FS.EVENT_BOOKING;
     foreach (FSRESTAURANT.EVENT_TABLERow item in dttable)
     {
         source.Add(item.TABLE_NAME, item.TABLE_ID);
     }
 }
Example #2
0
        public EventSearchBook(FSRESTAURANT.EVENT_BOOKINGDataTable dt, FSRESTAURANT.EVENT_TABLEDataTable et)
        {
            InitializeComponent();
            this.dt = dt;
            this.et = et;
            DockContent dc = new DockContent();

            dc.Controls.Add(flowLayoutPanel1);
            flowLayoutPanel1.Dock            = DockStyle.Fill;
            dc.DockPanel                     = dockPanel1;
            dc.DockState                     = DockState.DockLeftAutoHide;
            dockPanel1.AllowEndUserDocking   = false;
            dockPanel1.ActiveAutoHideContent = dc;
            dockPanel1.Controls.Add(EventCalendar);
            dockPanel1.Dock    = DockStyle.Fill;
            EventCalendar.Dock = DockStyle.Fill;
            EventCalendar.SetViewRange(DateTime.Now, DateTime.Now);
            listTable.DataSource    = et;
            listTable.DisplayMember = "TABLE_NAME";
            listTable.ValueMember   = "TABLE_ID";
        }