Esempio n. 1
0
 internal void OnFIContinueButtonClick(Gwen.Control.Base sender, Gwen.Control.ClickedEventArgs e)
 {
     GameFiber.StartNew(delegate
     {
         Check();
         Game.LogTrivial("FI personal info saving for: " + SuspectLastBox.Text.ToString() + " " + SuspectFirstBox.Text.ToString());
         Game.DisplayNotification("Page 2 of 3 saved. Continuing Field Interaction form...");
         using (StreamWriter Information = new StreamWriter("Plugins/LSPDFR/ComputerPlus/field interviews/" + SuspectLastBox.Text.ToLower() + SuspectFirstBox.Text.ToLower() + ".txt", true))
         {
             // 13 lines
             Information.WriteLine("---PERSONAL INFORMATION---");
             Information.WriteLine("DOB: " + SuspectDOBBox.Text);
             Information.WriteLine(SuspectSSNBox.Text);
             Information.WriteLine("Occupation: " + SuspectOccupationBox.Text);
             Information.WriteLine("Address: " + SuspectAddressBox.Text + " " + SuspectCityBox.Text);
             Information.WriteLine("Sex: " + SuspectSexBox.Text);
             Information.WriteLine("Race: " + SuspectRaceBox.Text);
             Information.WriteLine("Hair: " + SuspectHairBox.Text);
             Information.WriteLine("Eyes: " + SuspectEyesBox.Text);
             Information.WriteLine("Scars/Tattoos: " + SuspectMarkBox.Text);
             Information.WriteLine("License Status: " + SuspectLicenseBox.Text);
             Information.WriteLine("Vehicle Make, Model, Color: " + SuspectVehicleBox.Text);
             Information.WriteLine("Vehicle Plate: " + SuspectPlateBox.Text);
         }
         Game.LogTrivial("Successfully written to .txt");
     });
     state = SubmitCheck.submitted;
     FIComplete();
     this.Window.Close();
     form_firemarks = new GameFiber(OpenFIRemarksForm);
     form_firemarks.Start();
 }
 public override void InitializeLayout()
 {
     GameFiber.StartNew(delegate
     {
         base.InitializeLayout();
         Game.LogTrivial("Initializing Citation Violations");
         this.Position = new Point(Game.Resolution.Width / 2 - this.Window.Width / 2, Game.Resolution.Height / 2 - this.Window.Height / 2);
         this.CitationSubmitButton.Clicked += this.OnCitationSubmitClick;
         this.SpeedCheck.Checked           += this.SpeedCheckChecked;
         BackButton.Clicked += OnBackButtonClick;
         Ina2.Hide();
         InABox.Hide();
         CitationSpeedDeviceBox.Hide();
         SpeedBox.Hide();
         gen                   = Configs.RandomNumber.r.Next(1, 61);
         string date           = DateTime.Now.AddDays(gen).ToShortDateString();
         DateBox.Text          = date;
         DateTime start        = DateTime.Today.AddHours(8);
         DateTime value        = start.AddMinutes(Configs.RandomNumber.r.Next(481));
         string time           = value.ToShortTimeString();
         TimeBox.Text          = time;
         CurrentLocation       = Game.LocalPlayer.Character.Position;
         string currentstreet  = Rage.World.GetStreetName(CurrentLocation);
         StreetBox.Text        = currentstreet;
         CurrentStreetBox.Text = currentstreet;
         VehCheck();
         state = SubmitCheck.inprogress;
         GameFiber.Yield();
     });
 }
 private void OnCitationSubmitClick(Gwen.Control.Base sender, Gwen.Control.ClickedEventArgs e)
 {
     Game.LogTrivial("Citation page 2 submission begin...");
     using (StreamWriter Information = new StreamWriter("Plugins/LSPDFR/ComputerPlus/citations/completedcitations.txt", true))
     {
         Information.WriteLine("---VIOLATIONS---");
         Information.WriteLine("The above defendent operated a:");
         Information.WriteLine("Passenger: " + VehCheck1.IsChecked);
         Information.WriteLine("Commercial: " + VehCheck2.IsChecked);
         Information.WriteLine("Cycle: " + VehCheck3.IsChecked);
         Information.WriteLine("Bus: " + VehCheck4.IsChecked);
         Information.WriteLine("Other: " + VehCheck5.IsChecked);
         Information.WriteLine("Vehicle Make, Model, Color, Style: " + VehInfoBox.Text);
         Information.WriteLine("License Plate: " + VehPlateBox.Text);
         Information.WriteLine("Upon the public highway: " + StreetBox.Text + " in the city: " + CityBox.Text);
         Information.WriteLine("In the following conditions:");
         Information.WriteLine("Street Condition: " + CitationStreetConditionBox.Text);
         Information.WriteLine("Light Condition: " + CitationLightConditionBox.Text);
         Information.WriteLine("Traffic Condition: " + CitationTrafficConditionBox.Text);
         Information.WriteLine("And committed the following offenses:");
         Information.WriteLine("Accident: " + AccidentCheck.IsChecked);
         Information.WriteLine("Speed: " + SpeedCheck.IsChecked + " and was traveling " + SpeedBox.Text + " in a speed limit of " + InABox.Text);
         Information.WriteLine("Speed Device Used: " + CitationSpeedDeviceBox.Text);
         Information.WriteLine("In a:");
         Information.WriteLine("Commercial Vehicle: " + InCommCheck.IsChecked);
         Information.WriteLine("Construction Zone: " + InConstCheck.IsChecked);
         Information.WriteLine("Area: " + Area.Text);
         Information.WriteLine("Violations: " + Violations.Text);
         Information.WriteLine("Additional Information: " + ExtraInfo.Text);
         Information.WriteLine("And is summoned to appear in court on: " + DateBox.Text + " at " + TimeBox.Text);
         Information.WriteLine(" ");
         Information.WriteLine("Citation Submitted " + System.DateTime.Now.ToString());
         Information.WriteLine("---END CITATION---");
     }
     Game.LogTrivial("Citation page 2 submission success!");
     Game.DisplayNotification("Citation ~b~successfully~w~ submitted!");
     vehplate = VehPlateBox.Text.ToLower();
     CitationComplete();
     state = SubmitCheck.submitted;
     this.Window.Close();
     ComputerMain.form_report = new GameFiber(ComputerMain.OpenReportMenuForm);
     ComputerMain.form_report.Start();
 }
Esempio n. 4
0
 public override void InitializeLayout()
 {
     GameFiber.StartNew(delegate
     {
         base.InitializeLayout();
         state = SubmitCheck.inprogress;
         Game.LogTrivial("Initializing FI Personal Info");
         this.Position             = new Point(Game.Resolution.Width / 2 - this.Window.Width / 2, Game.Resolution.Height / 2 - this.Window.Height / 2);
         FIContinueButton.Clicked += OnFIContinueButtonClick;
         FILookupButton.Clicked   += OnFILookupButtonClick;
         ShowFIButton.Clicked     += OnShowFIButtonClick;
         FIBackButton.Clicked     += OnFIBackButtonClick;
         ShowFIButton.Hide();
         FIBox.Hide();
         Wanted.Hide();
         PedCheck();
         VehCheck();
         GameFiber.Yield();
     });
 }