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(); }
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; }
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; }
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; }
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(); } }
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; } }
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; } }
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; } }