コード例 #1
0
        private void SashFixedCheckBox_Click(object sender, RoutedEventArgs e)
        {
            Sash sash = SelectionEventHandler.SelectedNode as Sash;

            if (sash == null)
            {
                return;
            }
            sash.Fixed = SashFixedCheckBox.IsChecked.Value;
            sash.Repaint();
        }
コード例 #2
0
        private void SelectedSashDirectionComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (!SashSelected)
            {
                return;
            }
            if (SelectedSashDirectionComboBox.SelectedValue == null)
            {
                return;
            }
            Sash sash = SelectionEventHandler.SelectedNode as Sash;

            if (sash != null && sash.Direction != SelectedSashDirectionComboBox.SelectedValue.ToString())
            {
                sash.Direction = SelectedSashDirectionComboBox.SelectedValue.ToString();
                sash.Repaint();
            }
        }
コード例 #3
0
        private void SelectedSashType_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (!SashSelected)
            {
                return;
            }
            SashType sashType = SelectedSashType.SelectedItem as SashType;
            Sash     sash     = SelectionEventHandler.SelectedNode as Sash;

            if (sash == null)
            {
                return;
            }
            if (!sash.Model.SashType.Equals(sashType))
            {
                sash.Model.SashType = sashType;
                sash.Repaint();
            }
        }