private void tsmElenco_Click(object sender, EventArgs e) { ShowAll s = new ShowAll(); s.ShowDialog(); c.DashBoardCreation(textBox1); }
/// <summary> /// Transfers control back to DOs page, or restores this page with an error message. /// </summary> /// <param name="ErrorMessage">The error message to display.</param> /// <param name="Message">Message to display on transfer.</param> private void Continue(string ErrorMessage, string Message) { if (ErrorMessage == "") { if (Message != "") { Context.Items.Add("Message", Message); } //67811A0 START - PCI Remediation for Payment systems :Arcsight logging - To log the details of DO's Addition else { Logger.DestinationProcessName = CSAAWeb.Constants.PCI_ARC_DEVICEACTION_DO; Logger.DeviceEventCategory = CSAAWeb.Constants.PCI_ARC_DEVICEEVENTCATEGORY_SUCCESS; Logger.SourceUserName = User.Identity.Name; Logger.SourceProcessName = CSAAWeb.Constants.PCI_SOURCE_PROCESS_NAME; Logger.DeviceSeverity = CSAAWeb.Constants.PCI_ARC_SEVERITY_LOW; Logger.DeviceAction = CSAAWeb.Constants.PCI_ARC_DEVICEACTION_DO_ADD; Logger.Name = CSAAWeb.Constants.PCI_ARC_NAME_DO_ADD; Logger.ArcsightLog(); } //67811A0 END - PCI Remediation for Payment systems :Arcsight logging - To log the details of DO's Addition Context.Items.Add("HUB", HUB); ShowAll.SaveContext(); Server.Transfer("DOs.aspx"); } else { _vldpage.ErrorMessage = ErrorMessage; _vldpage.MarkInvalid(); } }
/// <summary> /// Show Customer Main Menu /// </summary> public static void ShowCustomersMenu() { string menuOption = new string(""); string menu = "Customers\n\n" + "1 - New\n" + "2 - Show All\n" + "3 - Find\n" + "4 - Update\n" + "\nb - Back\n\n" + "Option: "; do { Console.Write(menu); menuOption = Console.ReadLine(); switch (menuOption) { case "1": ClearHelper.Clear(); CustomerForm.ShowForm(); break; case "2": ClearHelper.Clear(); ShowAllWithAddress.Show(); Console.WriteLine(); Console.ReadKey(); ClearHelper.Clear(); break; case "3": ClearHelper.Clear(); SearchForm.Search(); ClearHelper.Clear(); break; case "4": ClearHelper.Clear(); ShowAll.Show(); Console.WriteLine(); Update.Show(); break; case "b": ClearHelper.Clear(); break; default: Console.WriteLine("Wrong option!"); Console.ReadKey(); ClearHelper.Clear(); break; } } while (menuOption != "b"); }
public override Expression <Func <T, bool> > BuildExpression() { var exp = _exp.BuildExpression(); if (exp.ToString() == ShowAll.ToString()) { return(ShowAll); } var param = exp.Parameters[0]; return(Expression.Lambda <Func <T, bool> >(Expression.Not(exp.Body), param)); }
/// <summary> /// This method for filling brand field. /// </summary> public void SelectBrand(string brand) { ShowAll.Click(); var brandsList = driver.FindElements(By.XPath(Locator.brandListLocator)); for (int i = 0; i < brandsList.Count; i++) { brands.Add(brandsList[i].Text); } if (!brands.Contains(brand)) { throw new Exception("Error! Brands is not found."); } Brand.SendKeys(brand); }
public override string ToString() { return($"{{Input={Url}, {nameof(UseTvApi)}={UseTvApi.ToString()}, " + $"{nameof(OnlyHevc)}={OnlyHevc.ToString()}, " + $"{nameof(OnlyShowInfo)}={OnlyShowInfo.ToString()}, " + $"{nameof(Interactive)}={Interactive.ToString()}, " + $"{nameof(HideStreams)}={HideStreams.ToString()}, " + $"{nameof(ShowAll)}={ShowAll.ToString()}, " + $"{nameof(UseAria2c)}={UseAria2c.ToString()}, " + $"{nameof(MultiThread)}={MultiThread.ToString()}, " + $"{nameof(VideoOnly)}={VideoOnly.ToString()}, " + $"{nameof(AudioOnly)}={AudioOnly.ToString()}, " + $"{nameof(Debug)}={Debug.ToString()}, " + $"{nameof(SelectPage)}={SelectPage}, " + $"{nameof(Cookie)}={Cookie}, " + $"{nameof(AccessToken)}={AccessToken}}}"); }
static void Main() { var path = @"..\Data\DatesAndTemps.txt"; var parser = new DateAndDegreeParser(); var presenter = new DataPresenter(); var showBelowZero = new ShowFirstDayBelowZero(); var showColdest = new ShowColdestDay(); var showWarmest = new ShowHottestDay(); var showAverage = new ShowAverageTemp(); var showAll = new ShowAll(new List <IPresenter> { showBelowZero, showColdest, showWarmest, showAverage }); var datesAndTemperatures = parser.Parse(path); presenter.PresentData(showAll, datesAndTemperatures); }
private void Products_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { ShowAll.Execute(null); }
/// <summary> /// Show Order Main Menu /// </summary> public static void ShowOrderMenu() { string menuOption = new string(""); string menu = "Orders\n\n" + "1 - New\n" + "2 - Show All\n" + "3 - Show All by Costumer\n" + "4 - Show All by Location\n" + "5 - Find\n" + "\nb - Back\n\n" + "Option: "; do { Console.Write(menu); menuOption = Console.ReadLine(); switch (menuOption) { case "1": ClearHelper.Clear(); OrderForm.ShowForm(); break; case "2": ClearHelper.Clear(); ShowAll.Show(); Console.WriteLine(); Console.ReadKey(); ClearHelper.Clear(); break; case "3": ClearHelper.Clear(); ShowAllCustomer.Show(); Console.WriteLine(); Console.ReadKey(); ClearHelper.Clear(); break; case "4": ClearHelper.Clear(); ShowAllAddress.Show(); Console.WriteLine(); Console.ReadKey(); ClearHelper.Clear(); break; case "5": ClearHelper.Clear(); Console.WriteLine("Find Order!"); Console.ReadKey(); ClearHelper.Clear(); break; case "b": ClearHelper.Clear(); break; default: Console.WriteLine("Wrong option!"); Console.ReadKey(); ClearHelper.Clear(); break; } } while (menuOption != "b"); }
private void MainWindow_ShowAll(object sender, RoutedEventArgs e) { ShowAll?.Invoke(this, e); }
/// <summary> /// Show Ingredients Main Menu /// </summary> public static void ShowIngredientsMenu() { string menuOption = new string(""); string menu = "Ingredients\n\n" + "1 - New\n" + "2 - Invetory\n" + "3 - Find\n" + "4 - Update\n" + //"5 - Delete\n" + "\nb - Back\n\n" + "Option: "; do { Console.Write(menu); menuOption = Console.ReadLine(); switch (menuOption) { case "1": ClearHelper.Clear(); IngredientForm.ShowForm(); break; case "2": ClearHelper.Clear(); ShowAll.Show(); Console.WriteLine(); Console.ReadKey(); ClearHelper.Clear(); break; case "3": ClearHelper.Clear(); SearchForm.Search(); break; case "4": ClearHelper.Clear(); ShowAll.Show(); Console.WriteLine(); Update.Show(); break; /*case "5": * ClearHelper.Clear(); * ShowAll.Show(); * Console.WriteLine(); * Delete.Show(); * break;*/ case "b": ClearHelper.Clear(); break; default: Console.WriteLine("Wrong option!"); Console.ReadKey(); ClearHelper.Clear(); break; } } while (menuOption != "b"); }