コード例 #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();
        }
コード例 #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;
        }
コード例 #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;
        }
コード例 #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;
        }
コード例 #5
0
ファイル: UcPayments.cs プロジェクト: vlad-mykh/VNV-TVApp
        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();
            }
        }
コード例 #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;
            }
        }
コード例 #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;
            }
        }
コード例 #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;
            }
        }