private void ShowTekeningBtn_Click_1(object sender, RoutedEventArgs e) { var dw = new DetailsWindow(); dw.Height = 450; dw.Width = 600; foreach (Ruimte r in Acumulator.Instance().OTracker.offerteRuimte_.Children.Where(x => x.GetType() == typeof(Ruimte))) { /* if (Acumulator.Instance().HuidigRuimteSetKey.ContainsKey(r.RuimteID) && Acumulator.Instance().TekeningBijRuimte.ContainsKey(r.RuimteID) && Acumulator.Instance().TekeningBijRuimte[r.RuimteID].ContainsKey(Acumulator.Instance().HuidigRuimteSetKey[r.RuimteID])) * { * var imgpath = Acumulator.Instance().TekeningBijRuimte[r.RuimteID][Acumulator.Instance().HuidigRuimteSetKey[r.RuimteID]]; * if(Acumulator.Instance().Blueprints.ContainsKey(imgpath)) * { * * bp.LoadImg(Acumulator.Instance().Blueprints[imgpath]); * * } * * }*/ var data = Acumulator.Instance().bluePrintManager.getBlueprintData(r.RuimteID, false); if (data != null) { var bp = new BluePrintControl(); bp.LoadImg(data); dw.LoadContent(bp); } } dw.Show(); }
private void Adjust_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { if ((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control) { double newtotal; var ifbar = Acumulator.Instance().InfoBar; newtotal = ifbar.Bon.GetTotalD();//totaalprijs.Text.TrimStart('€'),out newtotal); double oldtotal; var ool = Acumulator.Instance().oOL; double.TryParse(ool.Prijs.TrimStart('€'), out oldtotal); double oldkort = 0.0; var otrack = Acumulator.Instance().OTracker; if (otrack.offerteRuimte_.Korting != null) { oldkort = otrack.offerteRuimte_.Korting.KortingBedrag; } var dw = new DetailsWindow(); dw.Width = 500; dw.Height = 500; dw.Closed += dw_Closed; dw.LoadContent(new DiscountAuthorizer(newtotal, oldtotal, oldkort, dw)); dw.Show(); } }
private void ShowPrijsRaport_Click(object sender, RoutedEventArgs e) { var dw = new DetailsWindow(); var uv = new ExpertUitvoerPrijs(); uv.GetImg(SaveNeeded, PrintDatum); dw.Height = 800; dw.Width = uv.Width + 20; dw.LoadContent(uv); dw.Show(); }
public NewUserControl(DetailsWindow parentwindow) { InitializeComponent(); ctx = Acumulator.Instance().ctx; ParentWindow = parentwindow; ParentWindow.MaxHeight = 450; LoadRolCBB(); LoadProjLB(); LoadBouwNRCBB(); LoadColBouwnrLB(); }
private void showBonBtn_Click(object sender, RoutedEventArgs e) { if (!empty) { var bigbon = new DetailsWindow(); Bon = MakeBon(); bigbon.Width = Bon.Width + 25; bigbon.Height = Bon.Height + 25; bigbon.LoadContent(Bon); bigbon.Show(); } }
private void BlueprintBtn_Click(object sender, RoutedEventArgs e) { if (!empty) { var bigblue = new DetailsWindow(); bigblue.Width = 725; bigblue.Height = 525; if (ruimteID == null) { } else { var blue = new BluePrintControl(); var data = Acumulator.Instance().bluePrintManager.getBlueprintData(ruimteID, false); if (data != null) { blue.LoadImg(data); } bigblue.LoadContent(blue); } bigblue.Show(); /* * if (_path == null) * { * foreach (var bytes in Acumulator.Instance().Blueprints.Values) * { * var blue = new BluePrintControl(); * blue.LoadImg(bytes); * bigblue.LoadContent(blue); * } * } * else * { * var blue = new BluePrintControl(); * if (Acumulator.Instance().Blueprints.ContainsKey(_path)) * { * blue.LoadImg(Acumulator.Instance().Blueprints[_path]); * } * else * { * //blue.LoadImg(_path); * } * bigblue.LoadContent(blue); * } * bigblue.Show();*/ } }
private void ShowTegelRaport_Click(object sender, RoutedEventArgs e) { var dw = new DetailsWindow(); var uitvoercreator = new UitvoerCreator(); dw.Width = 0; dw.Height = 0; foreach (var u in uitvoercreator.MaakCanvasTegelRaport(SaveNeeded, PrintDatum)) { dw.LoadContent(u); dw.Width = u.Width + 20; dw.Height += 400; } //var uv = new Uitvoer(); //uv.GetImg(); //dw.Width = uv.Width + 20; //dw.Height = uv.Height; //dw.LoadContent(uv); dw.Show(); }