private void btnAdd_Click(object sender, RoutedEventArgs e) { ModuleSelector selector = new ModuleSelector(); selector.Closed += new EventHandler(selector_Closed); selector.Show(); }
private void miAdd_Click(object sender, RoutedEventArgs e) { if (this.Tree.SelectedItem != null) { TreeItem item = this.Tree.SelectedItem as TreeItem; GroupEditor editor = new GroupEditor(); if (item.Tag is NavigateGroup) { NavigateGroup iGroup = item.Tag as NavigateGroup; int mask = 0x0004; int mask2 = 0x0008; ModuleSelector Selector = new ModuleSelector(); //int mask3 = (int)GoComType.SilverlightUI; if ((iGroup.Attributes & mask) == mask) { Selector.SelectMask = (int)GoComType.WinUI; } else if ((iGroup.Attributes & mask2) == mask2) { Selector.SelectMask = (int)GoComType.WebUI; } else { Selector.SelectMask = (int)GoComType.SilverUI; } Selector.Closed += new EventHandler(Selector_Closed); Selector.Show(); } } }
private void btnMAdd_Click(object sender, RoutedEventArgs e) { ModuleSelector Selector = new ModuleSelector(); int mask = 0x0004; int mask2 = 0x0008; //int mask3 = (int)GoComType.SilverlightUI; if ((this.Group.Attributes & mask) == mask) { Selector.SelectMask = (int)GoComType.WinUI; } else if ((this.Group.Attributes & mask2) == mask2) { Selector.SelectMask = (int)GoComType.WebUI; } else { Selector.SelectMask = (int)GoComType.SilverUI; } Selector.Closed += new EventHandler(Selector_Closed); Selector.Show(); }