/// <summary> /// Selected Node Changed /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void radTreeView1_SelectedNodeChanged(object sender, Telerik.WinControls.UI.RadTreeViewEventArgs e) { switch (e.Node.Text) { case "Status": _globalObject.FocusNow(e.Node.Parent.Tag.ToString()); break; } }
private void packsTreeView1_SelectedNodeChanged(object sender, Telerik.WinControls.UI.RadTreeViewEventArgs e) { try { //CurrentNode = e.Node; if (e == null || e.Node == null) { return; } Cursor = Cursors.WaitCursor; switch (e.Node.Name) { case "NodePassed": CurrentStatusPack = AllFunctions._StatusPack.Passage; eventNodePassed(); break; case "NodeWaitPass": CurrentStatusPack = AllFunctions._StatusPack.Confirm; eventNodeWaitPass(); break; case "NodeWaitConfirm": CurrentStatusPack = AllFunctions._StatusPack.Request; eventNodeWaitConfirm(); break; case "NodeWaitRequest": CurrentStatusPack = AllFunctions._StatusPack.Create; eventNodeWaitRequest(); break; case "NodeNoConfirm": CurrentStatusPack = AllFunctions._StatusPack.NoConfirm; eventNodeNoConfirm(); break; case "NodeNoPass": CurrentStatusPack = AllFunctions._StatusPack.NoPassage; eventNodeNoPass(); break; default: CurrentStatusPack = null; break; } Cursor = Cursors.Default; } catch (Exception ex) { Cursor = Cursors.Default; MessageBox.Show(ex.Message); } }
private void radTreeView1_NodeMouseClick(object sender, Telerik.WinControls.UI.RadTreeViewEventArgs e) { if (e.Node.Name.Equals("EMP0002RChild")) { EMP0002R frm = new EMP0002R(); frm.Show(); } if (e.Node.Text.Equals("Customer Information")) { MessageBox.Show("The report that you requested was not found.", "Sorry"); } //MessageBox.Show("Report not found", "Error"); }
private void radTreeView1_SelectedNodeChanged(object sender, Telerik.WinControls.UI.RadTreeViewEventArgs e) { try { Uri uri = new Uri(path + "\\GeogebraFiles\\" + e.Node.Text + ".html"); webBrowser1.Url = uri; radButton1.Visible = false; if (radTreeView1.SelectedNode.Parent.Text.ToUpper() == "Практические задания".ToUpper()) { radButton1.Visible = true; } else { radButton1.Visible = false; } } catch (Exception) { } }
//initialize data for grid of the selected dictionary private void complexTreeView_SelectedNodeChanged(object sender, Telerik.WinControls.UI.RadTreeViewEventArgs e) { switch (ComplexDictionaryName.ToLower()) { case "copyrightkind": //revome other controls tableLayout_MarkupElement.Controls.Remove(tableLayout_MarkupElement.GetControlFromPosition(1, 0)); DirectorLayers <CopyrightKind> directorCopyright = new DirectorLayers <CopyrightKind>(); BaseCopyrightKindControl baseCopyrightKind = (BaseCopyrightKindControl)directorCopyright.InitCommon(_connector, UrlForComplexDictionaries); tableLayout_MarkupElement.Controls.Add(baseCopyrightKind, 1, 0); break; case "country": //revome other controls tableLayout_MarkupElement.Controls.Remove(tableLayout_MarkupElement.GetControlFromPosition(1, 0)); DirectorLayers <Country> directorCountry = new DirectorLayers <Country>(); BaseCountryControl baseCountry = (BaseCountryControl)directorCountry.InitCommon(_connector, UrlForComplexDictionaries); tableLayout_MarkupElement.Controls.Add(baseCountry, 1, 0); break; case "creativeroletype": //revome other controls tableLayout_MarkupElement.Controls.Remove(tableLayout_MarkupElement.GetControlFromPosition(1, 0)); DirectorLayers <CreativeRoleType> directorCreative = new DirectorLayers <CreativeRoleType>(); BaseCreativeroleTypeControl baseCreativeroleType = (BaseCreativeroleTypeControl)directorCreative.InitCommon(_connector, UrlForComplexDictionaries); tableLayout_MarkupElement.Controls.Add(baseCreativeroleType, 1, 0); break; case "genretype": //revome other controls tableLayout_MarkupElement.Controls.Remove(tableLayout_MarkupElement.GetControlFromPosition(1, 0)); DirectorLayers <GenreType> directorGenre = new DirectorLayers <GenreType>(); BaseGenreTypeControl baseGenreType = (BaseGenreTypeControl)directorGenre.InitCommon(_connector, UrlForComplexDictionaries); tableLayout_MarkupElement.Controls.Add(baseGenreType, 1, 0); break; case "kl_r030": //revome other controls tableLayout_MarkupElement.Controls.Remove(tableLayout_MarkupElement.GetControlFromPosition(1, 0)); DirectorLayers <KlR030> directorKlr = new DirectorLayers <KlR030>(); BaseKlr030Control baseKlr030 = (BaseKlr030Control)directorKlr.InitCommon(_connector, UrlForComplexDictionaries); tableLayout_MarkupElement.Controls.Add(baseKlr030, 1, 0); break; case "systemconstant": //revome other controls tableLayout_MarkupElement.Controls.Remove(tableLayout_MarkupElement.GetControlFromPosition(1, 0)); DirectorLayers <SystemConstant> directorSystem = new DirectorLayers <SystemConstant>(); BaseSystemConstantControl baseSystemConstant = (BaseSystemConstantControl)directorSystem.InitCommon(_connector, UrlForComplexDictionaries); tableLayout_MarkupElement.Controls.Add(baseSystemConstant, 1, 0); break; case "typeplace": //revome other controls tableLayout_MarkupElement.Controls.Remove(tableLayout_MarkupElement.GetControlFromPosition(1, 0)); DirectorLayers <TypePlace> directorType = new DirectorLayers <TypePlace>(); BaseTypePlaceControl baseTypePlace = (BaseTypePlaceControl)directorType.InitCommon(_connector, UrlForComplexDictionaries); tableLayout_MarkupElement.Controls.Add(baseTypePlace, 1, 0); break; } }
private void packsTreeView1_SelectedNodeChanged(object sender, Telerik.WinControls.UI.RadTreeViewEventArgs e) { try { //CurrentNode = e.Node; if (e == null || e.Node == null) { return; } Cursor = Cursors.WaitCursor; switch (e.Node.Name) { case "NodePassed": WhatState = 0; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Passage; eventNodePassed(); break; #region NodePassed case "NodePassedGateM": WhatState = 2; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Passage; eventNodePassed(); break; case "NodePassedGate13": WhatState = null; FilterMode = 3; // FilterMode = 3; CurrentStatusPack = AllFunctions._StatusPack.Passage; eventNodePassed(); break; case "NodePassedGate14": WhatState = 3; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Passage; eventNodePassed(); break; case "NodePassedGate18": WhatState = 4; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Passage; eventNodePassed(); break; case "NodePassedGate19": WhatState = 5; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Passage; eventNodePassed(); break; case "NodePassedGateGO": WhatState = 6; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Passage; eventNodePassed(); break; #endregion case "NodeWaitPass": WhatState = null; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Confirm; eventNodeWaitPass(); break; #region NodeWaitPass case "NodeWaitPassGateM": WhatState = 1; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Confirm; eventNodeWaitPass(); break; case "NodeWaitPassGate13": WhatState = null; FilterMode = 3; CurrentStatusPack = AllFunctions._StatusPack.Confirm; eventNodeWaitPass(); break; case "NodeWaitPassGate14": WhatState = 3; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Confirm; eventNodeWaitPass(); break; case "NodeWaitPassGate18": WhatState = 4; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Confirm; eventNodeWaitPass(); break; case "NodeWaitPassGate19": WhatState = 5; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Confirm; eventNodeWaitPass(); break; case "NodeWaitPassGateGO": WhatState = 6; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Confirm; eventNodeWaitPass(); break; #endregion case "NodeWaitConfirm": WhatState = null; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Request; eventNodeWaitConfirm(); break; #region NodeWaitConfirm case "NodeWaitConfirmGateM": WhatState = null; FilterMode = 3; CurrentStatusPack = AllFunctions._StatusPack.Request; eventNodeWaitConfirm(); break; case "NodeWaitConfirmGate13": WhatState = 2; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Request; eventNodeWaitConfirm(); break; case "NodeWaitConfirmGate14": WhatState = 3; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Request; eventNodeWaitConfirm(); break; case "NodeWaitConfirmGate18": WhatState = 4; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Request; eventNodeWaitConfirm(); break; case "NodeWaitConfirmGate19": WhatState = 5; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Request; eventNodeWaitConfirm(); break; case "NodeWaitConfirmGateGO": WhatState = 6; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Request; eventNodeWaitConfirm(); break; #endregion case "NodeWaitRequest": WhatState = null; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Create; eventNodeWaitRequest(); break; #region NodeWaitRequest case "NodeWaitRequestGateM": WhatState = null; FilterMode = 3; CurrentStatusPack = AllFunctions._StatusPack.Create; eventNodeWaitRequest(); break; case "NodeWaitRequestGate13": WhatState = 2; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Create; eventNodeWaitRequest(); break; case "NodeWaitRequestGate14": WhatState = 3; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Create; eventNodeWaitRequest(); break; case "NodeWaitRequestGate18": WhatState = 4; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Create; eventNodeWaitRequest(); break; case "NodeWaitRequestGate19": WhatState = 5; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Create; eventNodeWaitRequest(); break; case "NodeWaitRequestGateGO": WhatState = 6; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.Create; eventNodeWaitRequest(); break; #endregion case "NodeNoConfirm": WhatState = null; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.NoConfirm; eventNodeNoConfirm(); break; #region NodeNoConfirm case "NodeNoConfirmGateM": WhatState = null; FilterMode = 3; CurrentStatusPack = AllFunctions._StatusPack.NoConfirm; eventNodeNoConfirm(); break; case "NodeNoConfirmGate13": WhatState = 2; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.NoConfirm; eventNodeNoConfirm(); break; case "NodeNoConfirmGate14": WhatState = 3; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.NoConfirm; eventNodeNoConfirm(); break; case "NodeNoConfirmGate18": WhatState = 4; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.NoConfirm; eventNodeNoConfirm(); break; case "NodeNoConfirmGate19": WhatState = 5; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.NoConfirm; eventNodeNoConfirm(); break; case "NodeNoConfirmGateGO": WhatState = 6; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.NoConfirm; eventNodeNoConfirm(); break; #endregion case "NodeNoPass": WhatState = null; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.NoPassage; eventNodeNoPass(); break; #region NodeNoPass case "NodeNoPassGateM": WhatState = null; FilterMode = 3; CurrentStatusPack = AllFunctions._StatusPack.NoPassage; eventNodeNoPass(); break; case "NodeNoPassGate13": WhatState = 2; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.NoPassage; eventNodeNoPass(); break; case "NodeNoPassGate14": WhatState = 3; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.NoPassage; eventNodeNoPass(); break; case "NodeNoPassGate18": WhatState = 4; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.NoPassage; eventNodeNoPass(); break; case "NodeNoPassGate19": WhatState = 5; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.NoPassage; eventNodeNoPass(); break; case "NodeNoPassGateGO": WhatState = 6; FilterMode = null; CurrentStatusPack = AllFunctions._StatusPack.NoPassage; eventNodeNoPass(); break; #endregion default: WhatState = null; CurrentStatusPack = null; break; } Cursor = Cursors.Default; } catch (Exception ex) { Cursor = Cursors.Default; MessageBox.Show(ex.Message); } }
private void radTreeView1_SelectedNodeChanged(object sender, Telerik.WinControls.UI.RadTreeViewEventArgs e) { eventSelectedNodeChanged(); }
private void radTreeView1_NodeMouseClick(object sender, Telerik.WinControls.UI.RadTreeViewEventArgs e) { //selectNode = e.Node.Text; radTreeView1.SelectedNode = e.Node; }
private void radTreeView1_SelectedNodeChanged(object sender, Telerik.WinControls.UI.RadTreeViewEventArgs e) { Uri uri = new Uri(path + "\\files\\" + e.Node.Text + ".html"); webBrowser1.Url = uri; }