/// <summary> /// The application is getting warning that a Handoff continuation is about occur. /// </summary> /// <returns><c>true</c>, if continue user activity was willed, <c>false</c> otherwise.</returns> /// <param name="application">Application.</param> /// <param name="userActivityType">User activity type.</param> public override bool WillContinueUserActivity(UIApplication application, string userActivityType) { // Report Activity Console.WriteLine("Will Continue Activity: {0}", userActivityType); // Take action based on the user activity type switch (userActivityType) { case "com.xamarin.monkeybrowser.tab1": // Inform view that it's going to be modified Tab1.PreparingToHandoff(); break; case "com.xamarin.monkeybrowser.tab2": // Inform view that it's going to be modified Tab2.PreparingToHandoff(); break; case "com.xamarin.monkeybrowser.tab3": // Inform view that it's going to be modified Tab3.PreparingToHandoff(); break; case "com.xamarin.monkeybrowser.tab4": // Inform view that it's going to be modified Tab4.PreparingToHandoff(); break; } // Inform system we handled this return(true); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.Tab1 = this.Factory.CreateRibbonTab(); this.Group1 = this.Factory.CreateRibbonGroup(); this.Command1 = this.Factory.CreateRibbonButton(); $if$($taskpane$ == true) this.TogglePanel = this.Factory.CreateRibbonButton(); $endif$this.Tab1.SuspendLayout(); this.Group1.SuspendLayout(); // // Tab1 // this.Tab1.ControlId.ControlIdType = Microsoft.Office.Tools.Ribbon.RibbonControlIdType.Office; this.Tab1.ControlId.OfficeId = "TabHome"; this.Tab1.Groups.Add(this.Group1); this.Tab1.Label = "TabHome"; this.Tab1.Name = "Tab1"; // // Group1 // this.Group1.Items.Add(this.Command1); $if$($taskpane$ == true) this.Group1.Items.Add(this.TogglePanel); $endif$this.Group1.Label = $productNameCS$; this.Group1.Name = "Group1"; // // Command1 // this.Command1.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; this.Command1.Image = global::$csprojectname$.Properties.Resources.Command1; this.Command1.Label = "Command 1"; this.Command1.Name = "Command1"; this.Command1.ShowImage = true; this.Command1.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.buttonCommand1_Click); $if$($taskpane$ == true) // // TogglePanel // this.TogglePanel.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge; this.TogglePanel.Image = global::$csprojectname$.Properties.Resources.TogglePanel; this.TogglePanel.Label = "Toggle Panel"; this.TogglePanel.Name = "TogglePanel"; this.TogglePanel.ShowImage = true; this.TogglePanel.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.buttonToggle_Click); $endif$ // // AddinRibbon // this.Name = "AddinRibbon"; this.RibbonType = "Microsoft.Visio.Drawing"; this.Tabs.Add(this.Tab1); this.Tab1.ResumeLayout(false); this.Tab1.PerformLayout(); this.Group1.ResumeLayout(false); this.Group1.PerformLayout(); }
public void CreatePanels_General(Panel ElementsPanel, Tab1 tab) { Panel element = new Panel(); foreach (Sportsmen item in Variables.sportsmens) { element = ui.CreateElements_General(item, tab); Variables.elements.Add(element); ElementsPanel.Controls.Add(element); } }
public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } Tab1 = await _context.Tab1.FirstOrDefaultAsync(m => m.ID == id); if (Tab1 == null) { return(NotFound()); } return(Page()); }
public List <Tab1> GetTabs() { List <Tab1> result = new List <Tab1>(); var Entities = new IndustrialMonitoringEntities(); var tabs = Entities.Tabs.OrderBy(x => x.Order); foreach (var tab in tabs) { Tab1 current = new Tab1(tab); result.Add(current); } return(result); }
//复查反馈 protected void btnFCFKClick(object sender, AjaxEventArgs e) { if (cbbplace.SelectedItem.Text == "") { Ext.Msg.Alert("提示", "地点不可为空!").Show(); } else { Window1.Show(); bindYH(); Tab1.Show(); Tab2.Disabled = true; Tab1.Disabled = false; } }
public async Task <IActionResult> OnPostAsync(int?id) { if (id == null) { return(NotFound()); } Tab1 = await _context.Tab1.FindAsync(id); if (Tab1 != null) { _context.Tab1.Remove(Tab1); await _context.SaveChangesAsync(); } return(RedirectToPage("./Index")); }
private void backT(List <string[]> Tab, List <string> preResults, List <List <string> > results) { /* * Ham duyet cay tim tap luat */ // Neu Table chi con 2 cot Ten & Ketqua thi dung lai if (Tab[0].Length == 2) { return; } int posMax = 0; List <giatriTT> T = hamtimTT(Tab, ref posMax); int st = T.Count; // luu lai ten thuoc tinh string tempResults = Tab[0][posMax] + ":"; for (int i = 0; i < st; i++) { //Luu lai gia tri thuoc tinh string temp = tempResults + T[i].value; preResults.Add(temp); List <string[]> Tab1; //Neu la node la thi luu lai ket qua if (T[i].flag == 1) { List <string> newPreResuls = deepCopy(preResults); newPreResuls.Add(T[i].check); results.Add(newPreResuls); } else { Tab1 = taoBangMoi(Tab, T[i], posMax); backT(Tab1, preResults, results); Tab1.Clear(); } preResults.RemoveAt(preResults.Count - 1); } }
public List <Tab1> GetTabs(Func <Tab1, bool> predicate) { var Entities = new IndustrialMonitoringEntities(); List <Tab1> result = new List <Tab1>(); var tabs = Entities.Tabs.OrderBy(x => x.Order); foreach (var tab in tabs) { Tab1 current = new Tab1(tab); if (predicate(current)) { result.Add(current); } } return(result); }
/// <returns>To be added.</returns> /// <summary> /// Continues the user activity. /// </summary> /// <param name="application">Application.</param> /// <param name="userActivity">User activity.</param> /// /// <param name="completionHandler">Completion Handler.</param> public override bool ContinueUserActivity(UIApplication application, NSUserActivity userActivity, UIApplicationRestorationHandler completionHandler) { // Report Activity Console.WriteLine("Continuing User Activity: {0}", userActivity.ToString()); // Get input and output streams from the Activity userActivity.GetContinuationStreams((NSInputStream arg1, NSOutputStream arg2, NSError arg3) => { // Send required data via the streams // ... }); // Take action based on the Activity type switch (userActivity.ActivityType) { case "com.xamarin.monkeybrowser.tab1": // Preform handoff Tab1.PerformHandoff(userActivity); completionHandler(new NSObject[] { Tab1 }); break; case "com.xamarin.monkeybrowser.tab2": // Preform handoff Tab2.PerformHandoff(userActivity); completionHandler(new NSObject[] { Tab2 }); break; case "com.xamarin.monkeybrowser.tab3": // Preform handoff Tab3.PerformHandoff(userActivity); completionHandler(new NSObject[] { Tab3 }); break; case "com.xamarin.monkeybrowser.tab4": // Preform handoff Tab4.PerformHandoff(userActivity); completionHandler(new NSObject[] { Tab4 }); break; } // Inform system we handled this return(true); }
public async Task HandleAsync(MarketDataEvent message, CancellationToken cancellationToken) { if (Tab1Checked) { await Tab1.UpdateLiveData(message.LiveFeed); } else if (Tab2Checked) { await Tab2.UpdateLiveData(message.LiveFeed); } else if (Tab3Checked) { await Tab3.UpdateLiveData(message.LiveFeed); } else if (Tab4Checked) { await Tab4.UpdateLiveData(message.LiveFeed); } else if (Tab5Checked) { await Tab5.UpdateLiveData(message.LiveFeed); } }
public (List <string> labels, List <(string serieName, List <int> data)> series)? ChartWeekly() { var list = _sharpBatchTracking.LastWeekData(); var completedList = list.Where(p => p.State == StatusEnum.Stopped).ToList(); var notCompletedList = list.Where(p => p.State != StatusEnum.Stopped).ToList(); List <DateTime> dateList = new List <DateTime>() { DateTime.Today.AddDays(-6), DateTime.Today.AddDays(-5), DateTime.Today.AddDays(-4), DateTime.Today.AddDays(-3), DateTime.Today.AddDays(-2), DateTime.Today.AddDays(-1), DateTime.Today }; var dataCompleted = (from date in dateList join completed in completedList on date equals completed.StartDate.Value.Date into Tab1 orderby date select new { date = date, count = Tab1.Count() }).ToList(); var dataNotCompleted = (from date in dateList join completed in notCompletedList on date equals completed.StartDate.Value.Date into Tab1 orderby date select new { date = date, count = Tab1.Count() }).ToList(); List <(string serieName, List <int> data)> seriesData = new List <(string serieName, List <int> data)>(); seriesData.Add(("Completed", dataCompleted.Select(p => p.count).ToList <int>())); seriesData.Add(("Error/Not Completed", dataNotCompleted.Select(p => p.count).ToList <int>())); return(dateList.Select(p => p.ToShortDateString()).ToList <string>(), seriesData); }
private void Start() { try { var tabs = ProcessDataServiceClient.GetTabsAll(); foreach (var tabsViewModel in tabs) { if (UserServiceClient.UserHaveItemInTab(Lib.Static.CurrentUser.UserId, tabsViewModel.TabId)) { Tab1 model = tabsViewModel; Dispatcher.BeginInvoke(new Action(() => GenerateTab(model))); } } Dispatcher.BeginInvoke(new Action(OnStartAsyncCompleted)); InitializeHorn(); } catch (Exception ex) { Logger.LogIndustrialMonitoring(ex); } }
protected void btnReturnClick(object sender, AjaxEventArgs e)//返回 { Tab1.Show(); this.Tab2.Disabled = true; this.Tab1.Disabled = false; }
public void Pack(BinaryWriter writer) { writer.Write(Flags); writer.Write((uint)Options); if ((Flags & 0x00000001) != 0) { ShortCutManager.Pack(writer); } Tab1.Pack(writer); if ((Flags & 0x00000004) != 0) { Tab2.Pack(writer); Tab3.Pack(writer); Tab4.Pack(writer); Tab5.Pack(writer); } if ((Flags & 0x00000010) != 0) { Tab2.Pack(writer); Tab3.Pack(writer); Tab4.Pack(writer); Tab5.Pack(writer); Tab6.Pack(writer); Tab7.Pack(writer); } if ((Flags & 0x00000400) != 0) { Tab2.Pack(writer); Tab3.Pack(writer); Tab4.Pack(writer); Tab5.Pack(writer); Tab6.Pack(writer); Tab7.Pack(writer); Tab8.Pack(writer); } if ((Flags & 0x00000008) != 0) { DesiredComps.Pack(writer); } if ((Flags & 0x00000020) != 0) { writer.Write((uint)SpellFilters); } if ((Flags & 0x00000040) != 0) { writer.Write((uint)Options2); } if ((Flags & 0x00000080) != 0) { writer.WriteString16L(TimestampFormat); } if ((Flags & 0x00000100) != 0) { GenericQualities.Pack(writer); } if ((Flags & 0x00000200) != 0) { writer.Write(VersionRow); Properties.Pack(writer); writer.Align(); } }
public void Unpack(BinaryReader reader) { Flags = reader.ReadUInt32(); Options = (CharacterOptions1)reader.ReadUInt32(); if ((Flags & 0x00000001) != 0) { ShortCutManager.Unpack(reader); } Tab1.Unpack(reader); if ((Flags & 0x00000004) != 0) { Tab2.Unpack(reader); Tab3.Unpack(reader); Tab4.Unpack(reader); Tab5.Unpack(reader); } if ((Flags & 0x00000010) != 0) { Tab2.Unpack(reader); Tab3.Unpack(reader); Tab4.Unpack(reader); Tab5.Unpack(reader); Tab6.Unpack(reader); Tab7.Unpack(reader); } if ((Flags & 0x00000400) != 0) { Tab2.Unpack(reader); Tab3.Unpack(reader); Tab4.Unpack(reader); Tab5.Unpack(reader); Tab6.Unpack(reader); Tab7.Unpack(reader); Tab8.Unpack(reader); } if ((Flags & 0x00000008) != 0) { DesiredComps.Unpack(reader); } if ((Flags & 0x00000020) != 0) { SpellFilters = (SpellBookFilterOptions)reader.ReadUInt32(); } if ((Flags & 0x00000040) != 0) { Options2 = (CharacterOptions2)reader.ReadUInt32(); } if ((Flags & 0x00000080) != 0) { TimestampFormat = reader.ReadString16L(); } if ((Flags & 0x00000100) != 0) { GenericQualities.Unpack(reader); } if ((Flags & 0x00000200) != 0) { VersionRow = reader.ReadUInt32(); Properties.Unpack(reader); reader.Align(); } }
private void Solicitud_Load(object sender, EventArgs e) { Tab2.Hide(); Tab1.Hide(); if (Form1.Nivel == "1" || Form1.Nivel == "2") { Tab2.Parent = tabControl1; } else { Tab2.Parent = null; } /* for (c1 = 0; c1 <= totalas - 1; c1++) * { * CboAsesor.Items.Add (datosas.Rows[c1][0]); * } * for (c2=0; c2 <= totalcli - 1; c2++) * { * CboCliente .Items.Add(datoscli.Rows[c2][0]); * }*/ //Agregar datos al combo box cliente DataTable datoscli = new DataTable(); datoscli = cli.Buscar_nom_cli(); CboCliente.DataSource = datoscli; CboCliente.DisplayMember = "Nombre"; CboCliente.ValueMember = "Codigo_Cli"; AutoCompleteStringCollection coleccion = new AutoCompleteStringCollection(); foreach (DataRow row in datoscli.Rows) { coleccion.Add(row["Nombre"].ToString()); } CboCliente.AutoCompleteCustomSource = coleccion; CboCliente.AutoCompleteMode = AutoCompleteMode.SuggestAppend; CboCliente.AutoCompleteSource = AutoCompleteSource.CustomSource; //Agregar datos de asesores DataTable datosas = new DataTable(); datosas = aseso.busca_asesor_nom(); CboAsesor.DataSource = datosas; CboAsesor.DisplayMember = "Nombre"; CboAsesor.ValueMember = "Codigo"; foreach (DataRow row in datosas.Rows) { coleccion.Add(row["Nombre"].ToString()); } CboAsesor.AutoCompleteCustomSource = coleccion; CboAsesor.AutoCompleteMode = AutoCompleteMode.SuggestAppend; CboAsesor.AutoCompleteSource = AutoCompleteSource.CustomSource; LblFecha.Text = "Fecha de solicitud: " + DateTime.Now.ToString("yyyy/MM/dd"); TxtNoSol.Text = sol.id_solicitud().ToString(); CboTipo.Items.Add("Diario"); CboTipo.Items.Add("Diario - Intereses"); CboTipo.Items.Add("Mensual - Cuota Fija"); CboTipo.Items.Add("Mensual - Sobre Saldo"); CboTipo.SelectedIndex = 0; }
void ReleaseDesignerOutlets() { if (AdvancedSearchBox != null) { AdvancedSearchBox.Dispose(); AdvancedSearchBox = null; } if (AngebotNr != null) { AngebotNr.Dispose(); AngebotNr = null; } if (ArchiveButton1 != null) { ArchiveButton1.Dispose(); ArchiveButton1 = null; } if (AufWunsch != null) { AufWunsch.Dispose(); AufWunsch = null; } if (AusstattungDo != null) { AusstattungDo.Dispose(); AusstattungDo = null; } if (AusstattungOd != null) { AusstattungOd.Dispose(); AusstattungOd = null; } if (Bezeichnung != null) { Bezeichnung.Dispose(); Bezeichnung = null; } if (Binderabstand != null) { Binderabstand.Dispose(); Binderabstand = null; } if (Binderabstand2 != null) { Binderabstand2.Dispose(); Binderabstand2 = null; } if (BinderabstandCa != null) { BinderabstandCa.Dispose(); BinderabstandCa = null; } if (Breite != null) { Breite.Dispose(); Breite = null; } if (Breite2 != null) { Breite2.Dispose(); Breite2 = null; } if (BreiteCa != null) { BreiteCa.Dispose(); BreiteCa = null; } if (BreiteN != null) { BreiteN.Dispose(); BreiteN = null; } if (Cena1 != null) { Cena1.Dispose(); Cena1 = null; } if (CenaMontaz != null) { CenaMontaz.Dispose(); CenaMontaz = null; } if (ComboBox1 != null) { ComboBox1.Dispose(); ComboBox1 = null; } if (ComboBox2 != null) { ComboBox2.Dispose(); ComboBox2 = null; } if (ComboBox5 != null) { ComboBox5.Dispose(); ComboBox5 = null; } if (ComboBoxRaport != null) { ComboBoxRaport.Dispose(); ComboBoxRaport = null; } if (Dach != null) { Dach.Dispose(); Dach = null; } if (Data != null) { Data.Dispose(); Data = null; } if (DataOferty != null) { DataOferty.Dispose(); DataOferty = null; } if (DataPotwierdzenia != null) { DataPotwierdzenia.Dispose(); DataPotwierdzenia = null; } if (DeleteButton0 != null) { DeleteButton0.Dispose(); DeleteButton0 = null; } if (DeleteButton1 != null) { DeleteButton1.Dispose(); DeleteButton1 = null; } if (DeleteButton2 != null) { DeleteButton2.Dispose(); DeleteButton2 = null; } if (DeleteButton3 != null) { DeleteButton3.Dispose(); DeleteButton3 = null; } if (DeleteButton5 != null) { DeleteButton5.Dispose(); DeleteButton5 = null; } if (Down1 != null) { Down1.Dispose(); Down1 = null; } if (Down2 != null) { Down2.Dispose(); Down2 = null; } if (Down3 != null) { Down3.Dispose(); Down3 = null; } if (Firma != null) { Firma.Dispose(); Firma = null; } if (Firsthohe != null) { Firsthohe.Dispose(); Firsthohe = null; } if (Firsthohe2 != null) { Firsthohe2.Dispose(); Firsthohe2 = null; } if (FirsthoheCa != null) { FirsthoheCa.Dispose(); FirsthoheCa = null; } if (FirsthoheN != null) { FirsthoheN.Dispose(); FirsthoheN = null; } if (Gesamtpreis != null) { Gesamtpreis.Dispose(); Gesamtpreis = null; } if (Gewicht != null) { Gewicht.Dispose(); Gewicht = null; } if (Gewicht2 != null) { Gewicht2.Dispose(); Gewicht2 = null; } if (Hauptprofil1 != null) { Hauptprofil1.Dispose(); Hauptprofil1 = null; } if (Hauptprofil2 != null) { Hauptprofil2.Dispose(); Hauptprofil2 = null; } if (Hauptprofil3 != null) { Hauptprofil3.Dispose(); Hauptprofil3 = null; } if (HauptProfilGewicht != null) { HauptProfilGewicht.Dispose(); HauptProfilGewicht = null; } if (Ilosc1 != null) { Ilosc1.Dispose(); Ilosc1 = null; } if (InfoLabel1 != null) { InfoLabel1.Dispose(); InfoLabel1 = null; } if (Kedernut != null) { Kedernut.Dispose(); Kedernut = null; } if (Komentarz != null) { Komentarz.Dispose(); Komentarz = null; } if (KWert1 != null) { KWert1.Dispose(); KWert1 = null; } if (LabelTest1 != null) { LabelTest1.Dispose(); LabelTest1 = null; } if (LabelTest2 != null) { LabelTest2.Dispose(); LabelTest2 = null; } if (Lange2 != null) { Lange2.Dispose(); Lange2 = null; } if (Lange3 != null) { Lange3.Dispose(); Lange3 = null; } if (LangeCa != null) { LangeCa.Dispose(); LangeCa = null; } if (LangeN != null) { LangeN.Dispose(); LangeN = null; } if (Leichbauhalle != null) { Leichbauhalle.Dispose(); Leichbauhalle = null; } if (Liefertermin != null) { Liefertermin.Dispose(); Liefertermin = null; } if (Lieferungskosten != null) { Lieferungskosten.Dispose(); Lieferungskosten = null; } if (Lieferzeit != null) { Lieferzeit.Dispose(); Lieferzeit = null; } if (ListaOferty != null) { ListaOferty.Dispose(); ListaOferty = null; } if (Mail != null) { Mail.Dispose(); Mail = null; } if (Mail_cena != null) { Mail_cena.Dispose(); Mail_cena = null; } if (Mail_miasto != null) { Mail_miasto.Dispose(); Mail_miasto = null; } if (Mail_mm != null) { Mail_mm.Dispose(); Mail_mm = null; } if (MontageAGB != null) { MontageAGB.Dispose(); MontageAGB = null; } if (MontageBox != null) { MontageBox.Dispose(); MontageBox = null; } if (MontageSwitch != null) { MontageSwitch.Dispose(); MontageSwitch = null; } if (Name != null) { Name.Dispose(); Name = null; } if (NHN != null) { NHN.Dispose(); NHN = null; } if (NrPotwierdzenia != null) { NrPotwierdzenia.Dispose(); NrPotwierdzenia = null; } if (OpenButton1 != null) { OpenButton1.Dispose(); OpenButton1 = null; } if (Plec != null) { Plec.Dispose(); Plec = null; } if (Postlietzahl != null) { Postlietzahl.Dispose(); Postlietzahl = null; } if (PriceText1 != null) { PriceText1.Dispose(); PriceText1 = null; } if (PriceText2 != null) { PriceText2.Dispose(); PriceText2 = null; } if (RaportType != null) { RaportType.Dispose(); RaportType = null; } if (ReadyButton1 != null) { ReadyButton1.Dispose(); ReadyButton1 = null; } if (SaveButton1 != null) { SaveButton1.Dispose(); SaveButton1 = null; } if (Schneelast != null) { Schneelast.Dispose(); Schneelast = null; } if (Schneelast2 != null) { Schneelast2.Dispose(); Schneelast2 = null; } if (SearchCheckBox != null) { SearchCheckBox.Dispose(); SearchCheckBox = null; } if (SearchDlugosc != null) { SearchDlugosc.Dispose(); SearchDlugosc = null; } if (SearchSchneelast != null) { SearchSchneelast.Dispose(); SearchSchneelast = null; } if (SearchSzerokosc != null) { SearchSzerokosc.Dispose(); SearchSzerokosc = null; } if (SearchText != null) { SearchText.Dispose(); SearchText = null; } if (SearchTextField != null) { SearchTextField.Dispose(); SearchTextField = null; } if (SearchTypHali != null) { SearchTypHali.Dispose(); SearchTypHali = null; } if (SearchWindlast != null) { SearchWindlast.Dispose(); SearchWindlast = null; } if (SearchWysokosc != null) { SearchWysokosc.Dispose(); SearchWysokosc = null; } if (Select2 != null) { Select2.Dispose(); Select2 = null; } if (Stadt != null) { Stadt.Dispose(); Stadt = null; } if (Stallhalle != null) { Stallhalle.Dispose(); Stallhalle = null; } if (Starke1 != null) { Starke1.Dispose(); Starke1 = null; } if (Starke2 != null) { Starke2.Dispose(); Starke2 = null; } if (StraBe != null) { StraBe.Dispose(); StraBe = null; } if (Suma1 != null) { Suma1.Dispose(); Suma1 = null; } if (Switch3 != null) { Switch3.Dispose(); Switch3 = null; } if (SwitchTab1 != null) { SwitchTab1.Dispose(); SwitchTab1 = null; } if (Tab0 != null) { Tab0.Dispose(); Tab0 = null; } if (Tab1 != null) { Tab1.Dispose(); Tab1 = null; } if (Tab2 != null) { Tab2.Dispose(); Tab2 = null; } if (Tab3 != null) { Tab3.Dispose(); Tab3 = null; } if (Tab4 != null) { Tab4.Dispose(); Tab4 = null; } if (Tab5 != null) { Tab5.Dispose(); Tab5 = null; } if (Tab6 != null) { Tab6.Dispose(); Tab6 = null; } if (Tab7 != null) { Tab7.Dispose(); Tab7 = null; } if (Tabela1 != null) { Tabela1.Dispose(); Tabela1 = null; } if (Tabela2 != null) { Tabela2.Dispose(); Tabela2 = null; } if (Tabela3 != null) { Tabela3.Dispose(); Tabela3 = null; } if (Tabela5 != null) { Tabela5.Dispose(); Tabela5 = null; } if (TabNavi != null) { TabNavi.Dispose(); TabNavi = null; } if (TechnischeDaten != null) { TechnischeDaten.Dispose(); TechnischeDaten = null; } if (Telefonnummer != null) { Telefonnummer.Dispose(); Telefonnummer = null; } if (ToreUndTuren != null) { ToreUndTuren.Dispose(); ToreUndTuren = null; } if (Traufhohe != null) { Traufhohe.Dispose(); Traufhohe = null; } if (Traufhohe2 != null) { Traufhohe2.Dispose(); Traufhohe2 = null; } if (TraufhoheCa != null) { TraufhoheCa.Dispose(); TraufhoheCa = null; } if (TraufhoheN != null) { TraufhoheN.Dispose(); TraufhoheN = null; } if (Unterlagen != null) { Unterlagen.Dispose(); Unterlagen = null; } if (UnterlagenBox != null) { UnterlagenBox.Dispose(); UnterlagenBox = null; } if (UnterlagenSwitch != null) { UnterlagenSwitch.Dispose(); UnterlagenSwitch = null; } if (Up1 != null) { Up1.Dispose(); Up1 = null; } if (Up2 != null) { Up2.Dispose(); Up2 = null; } if (Up3 != null) { Up3.Dispose(); Up3 = null; } if (UWert1 != null) { UWert1.Dispose(); UWert1 = null; } if (UWert2 != null) { UWert2.Dispose(); UWert2 = null; } if (Vat2 != null) { Vat2.Dispose(); Vat2 = null; } if (Vorname != null) { Vorname.Dispose(); Vorname = null; } if (Windlast != null) { Windlast.Dispose(); Windlast = null; } if (Windlast2 != null) { Windlast2.Dispose(); Windlast2 = null; } if (WypChange1 != null) { WypChange1.Dispose(); WypChange1 = null; } if (WypChange2 != null) { WypChange2.Dispose(); WypChange2 = null; } if (WypChange3 != null) { WypChange3.Dispose(); WypChange3 = null; } if (X1 != null) { X1.Dispose(); X1 = null; } if (Y1 != null) { Y1.Dispose(); Y1 = null; } if (Zugbandhohe != null) { Zugbandhohe.Dispose(); Zugbandhohe = null; } if (Zugbandhohe2 != null) { Zugbandhohe2.Dispose(); Zugbandhohe2 = null; } if (ZugbandhoheCa != null) { ZugbandhoheCa.Dispose(); ZugbandhoheCa = null; } if (SearchList != null) { SearchList.Dispose(); SearchList = null; } if (SearchEmail != null) { SearchEmail.Dispose(); SearchEmail = null; } }
private void GenerateTab(Tab1 tabsViewModel) { try { Tab1 model = tabsViewModel; var items = ProcessDataServiceClient.GetItemsForTab(model.TabId); RadTabItem radTabItem = new RadTabItem(); radTabItem.Name = string.Format("TabItem{0}", tabsViewModel.TabName).Replace(" ", ""); radTabItem.MinWidth = 80; radTabItem.Height = 25; TabHeaderUserControl tabHeader = new TabHeaderUserControl(); tabHeader.SetHeader(tabsViewModel.TabName); radTabItem.Header = tabHeader; radTabItem.HorizontalContentAlignment = HorizontalAlignment.Center; radTabItem.VerticalContentAlignment = VerticalAlignment.Center; WrapPanel wrapPanel = new WrapPanel(); wrapPanel.Name = string.Format("WrapPanel{0}", tabsViewModel.TabName).Replace(" ", ""); ScrollViewer scrollViewer = new ScrollViewer(); scrollViewer.Name = string.Format("ScrollViewer{0}", tabsViewModel.TabName).Replace(" ", ""); scrollViewer.VerticalScrollBarVisibility = ScrollBarVisibility.Auto; scrollViewer.Content = wrapPanel; radTabItem.Content = scrollViewer; TabControlIOs.Items.Add(radTabItem); foreach (var itemsAioViewModel in items) { if (!UserServiceClient.CheckPermission(Lib.Static.CurrentUser.UserId, itemsAioViewModel.ItemId)) { continue; } ChartLiveData chartLiveData = new ChartLiveData(); chartLiveData.ItemsAioViewModel = itemsAioViewModel; chartLiveData.ProcessDataServiceClient = this.ProcessDataServiceClient; chartLiveData.NotificationServiceClient = this.NotificationServiceClient; chartLiveData.MouseDoubleClick += chartLiveData_MouseDoubleClick; // TODO Parameter //chartLiveData.Width = 280; // TODO Parameter chartLiveData.Height = 200; // TODO Parameter chartLiveData.Margin = new Thickness(4, 2, 4, 2); wrapPanel.Children.Add(chartLiveData); AllCharts.Add(chartLiveData); chartLiveData.Start(); } } catch (Exception ex) { Logger.LogIndustrialMonitoring(ex); } }
public MasterDetailPage2() { Master = new Tab1(); Detail = new TabPage2(); }