Esempio n. 1
0
        private void btPayment_Click(object sender, System.EventArgs e)
        {
            var actions = new ActionForm(new UcPayments(CurrentUserId))
            {
                Text = @"PAYMENTS",
                //copy icons folder to ...//TvForms/bin/Debug/icons - folder for icons
                Icon = new Icon(@"icons\dollar.ico")
            };

            ParentForm?.Close();
            actions.ShowDialog();
        }
Esempio n. 2
0
        private void ordersToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var actions = new ActionForm(new UсOrdersView(CurrentUserId))
            {
                Text = @"User orders history",
                //copy icons folder to ...//TvForms/bin/Debug/icons - folder for icons
                Icon = new Icon(@"icons\wallet.ico")
            };

            this.Visible = false;
            actions.ShowDialog();
            this.Visible = true;
        }
Esempio n. 3
0
        private void profileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Uncomment when bookmarks will be ready end specify appropriate one!!!!
            var actions = new ActionForm(new UcUserProfile(CurrentUserId))
            {
                Text = @"User profile",
                //copy icons folder to ...//TvForms/bin/Debug/icons - folder for icons
                Icon = new Icon(@"icons\profile.ico")
            };

            this.Visible = false;
            actions.ShowDialog();
            this.Visible = true;
        }
Esempio n. 4
0
        private void paymentsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var ucPay = new UcPayments(CurrentUserId);
            //ucPay.Dock = DockStyle.Fill;
            var actions = new ActionForm(ucPay)
            {
                Text = @"PAYMENTS",
                //copy icons folder to ...//TvForms/bin/Debug/icons - folder for icons
                Icon = new Icon(@"icons\dollar.ico")
            };

            this.Visible = false;
            actions.ShowDialog();
            this.Visible = true;
        }
Esempio n. 5
0
        private void btOrderView_Click(object sender, EventArgs e)
        {
            var actions = new ActionForm(new UсOrdersView(CurrentUserId))
            {
                Text = @"User orders history",
                //copy icons folder to ...//TvForms/bin/Debug/icons - folder for icons
                Icon = new Icon(@"icons\wallet.ico")
            };

            if (ParentForm != null)
            {
                ParentForm.Close();
                actions.ShowDialog();
            }
        }
Esempio n. 6
0
        private void btViewPayment_Click(object sender, EventArgs e)
        {
            var actions = new ActionForm(new UcPayments(_currentUserId))
            {
                Text = @"PAYMENTS",
                //copy icons folder to ...//TvForms/bin/Debug/icons - folder for icons
                Icon = new Icon(@"icons\dollar.ico")
            };

            if (ParentForm != null)
            {
                ParentForm.Visible = false;
                actions.ShowDialog();
                ParentForm.Visible = true;
            }
        }
Esempio n. 7
0
        private void btViewChannels_Click(object sender, EventArgs e)
        {
            var ucAllChan  = new UcAllChannels(CurrentUserId);
            var actionForm = new ActionForm(ucAllChan)
            {
                Text = @"Loaded channels and programms",
                Icon = new Icon(@"icons\download-16.ico")
            };

            if (ParentForm != null)
            {
                ParentForm.Visible = false;
                actionForm.ShowDialog();
                ParentForm.Visible = true;
            }
        }
Esempio n. 8
0
        private void btViewOrders_Click(object sender, EventArgs e)
        {
            var actions = new ActionForm(new UсOrdersView(_selectedUser))
            {
                Text = @"User orders history",
                //copy icons folder to ...//TvForms/bin/Debug/icons - folder for icons
                Icon = new Icon(@"icons\wallet.ico")
            };

            if (ParentForm != null)
            {
                ParentForm.ShowInTaskbar = false;
                actions.ShowDialog();
                ParentForm.ShowInTaskbar = true;
            }
        }