Exemplo n.º 1
0
 private void removeControl(MovePanel movePanel)
 {
     if (movePanels.Contains(movePanel))
     {
         this.controls.Children.Remove(movePanel);
         movePanels.Remove(movePanel);
     }
 }
Exemplo n.º 2
0
 private void addControl(MovePanel movePanel)
 {
     this.controls.Children.Add(movePanel);
     movePanel.Md += notice_Richbox_MouseDown;
     movePanel.MV += notice_Richbox_MouseMove;
     movePanel.MU += notice_Richbox_MouseUp;
     movePanel.ML += TitleBox_MouseLeave;
     movePanels.Add(movePanel);
 }
Exemplo n.º 3
0
        /// <summary>
        /// titles选项改变
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void controlTitles_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            MovePanel movePanel = controlTitles.SelectedItem as MovePanel;

            Canvas.SetZIndex(movePanel, 9999);
            if (currentZindex != null)
            {
                Canvas.SetZIndex(currentZindex, 1);
            }
            currentZindex        = movePanel;
            movePanel.Visibility = Visibility.Visible;
        }
Exemplo n.º 4
0
 public MainWindow()
 {
     InitializeComponent();
     this.Loaded += MainWindow_Loaded;
     foreach (var item in PlugInfoInterfaces)
     {
         MovePanel ml = new MovePanel()
         {
             MainId            = item.Id,
             PlugInfoInterface = item,
         };
         ml.Notice = item.Name;
         addControl(ml);
     }
     addControl(otherPanel);
     MessageCallBack += MainWindow_MessageCallBack;
     this.Closed     += MainWindow_Closed;
 }