Example #1
0
        public FormCart(FormMenu form)
        {
            InitializeComponent();
            formMenu  = form;
            formError = new FormError();

            _emptyPhoneNumField = MTBoxPhoneNum.Text;
            _emptyNameField     = TBoxName.Text;
            _emptyEmailField    = TBoxEmail.Text;

            CBoxOrder.SelectedIndexChanged += CBoxOrder_SelectedIndexChanged;
        }
Example #2
0
        public FormMenu()
        {
            InitializeComponent();
            formCart  = new FormCart(this);
            formError = new FormError();

            var myMenu = JsonConvert.DeserializeObject <Menus>(File.ReadAllText("data.json"));

            CBoxMenu.DataSource            = myMenu.DishMenus;
            CBoxMenu.DisplayMember         = "Title";
            CBoxMenu.SelectedIndexChanged += CBoxMenu_SelectedIndexChanged;
        }