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(); }
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(); } }
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(); } }