Esempio n. 1
0
        private void afterSelect_Multi(object sender, TreeViewEventArgs e)
        {
            MultiComponentList multi = (MultiComponentList)TreeViewMulti.SelectedNode.Tag;

            if (multi == MultiComponentList.Empty)
            {
                HeightChangeMulti.Maximum = 0;
                toolTip.SetToolTip(HeightChangeMulti, "MaxHeight: 0");
                StatusMultiText.Text = "Size: 0,0 MaxHeight: 0 MultiRegion: 0,0,0,0";
            }
            else
            {
                HeightChangeMulti.Maximum = multi.maxHeight;
                toolTip.SetToolTip(HeightChangeMulti, String.Format("MaxHeight: {0}", HeightChangeMulti.Maximum - HeightChangeMulti.Value));
                StatusMultiText.Text = String.Format("Size: {0},{1} MaxHeight: {2} MultiRegion: {3},{4},{5},{6} Surface: {7}",
                                                     multi.Width,
                                                     multi.Height,
                                                     multi.maxHeight,
                                                     multi.Min.X,
                                                     multi.Min.Y,
                                                     multi.Max.X,
                                                     multi.Max.Y,
                                                     multi.Surface);
            }
            ChangeComponentList(multi);
            MultiPictureBox.Invalidate();
        }
Esempio n. 2
0
        private void AfterSelect_Multi(object sender, TreeViewEventArgs e)
        {
            MultiComponentList multi = (MultiComponentList)TreeViewMulti.SelectedNode.Tag;

            if (multi == MultiComponentList.Empty)
            {
                HeightChangeMulti.Maximum = 0;
                toolTip.SetToolTip(HeightChangeMulti, "MaxHeight: 0");
                StatusMultiText.Text = "Size: 0,0 MaxHeight: 0 MultiRegion: 0,0,0,0";
            }
            else
            {
                HeightChangeMulti.Maximum = multi.maxHeight;
                toolTip.SetToolTip(HeightChangeMulti,
                                   $"MaxHeight: {HeightChangeMulti.Maximum - HeightChangeMulti.Value}");
                StatusMultiText.Text =
                    $"Size: {multi.Width},{multi.Height} MaxHeight: {multi.maxHeight} MultiRegion: {multi.Min.X},{multi.Min.Y},{multi.Max.X},{multi.Max.Y} Surface: {multi.Surface}";
            }
            ChangeComponentList(multi);
            MultiPictureBox.Invalidate();
        }
Esempio n. 3
0
 private void onValue_HeightChangeMulti(object sender, EventArgs e)
 {
     toolTip.SetToolTip(HeightChangeMulti, String.Format("MaxHeight: {0}", HeightChangeMulti.Maximum - HeightChangeMulti.Value));
     MultiPictureBox.Invalidate();
 }
Esempio n. 4
0
 private void OnValue_HeightChangeMulti(object sender, EventArgs e)
 {
     toolTip.SetToolTip(HeightChangeMulti, $"MaxHeight: {HeightChangeMulti.Maximum - HeightChangeMulti.Value}");
     MultiPictureBox.Invalidate();
 }