Пример #1
0
        private void Default(double left = 0, double top = 0)
        {
            Background = new SolidColorBrush(Colors.Black);

            Height = 13;
            Width = 33;
            Top = top - Height / 2;
            Left = left - Width / 2;
            Margin = new Thickness(Left, Top, 0, 0);

            Stan = new ClrIdxStr();
            Process = new ClrIdxStr();

            OutData = 1;
            ProcessTime = 1;
            CicleMux = 1;

            StrokeThickness = 1;
            Stroke = new SolidColorBrush(Colors.Black);
            Foreground = new SolidColorBrush(Colors.White);

            MouseLeftButtonDown -= CommonObjectOnMouseDown;
            MouseLeftButtonDown += OnMouseMove;
        }
Пример #2
0
        private void Default(double left = 0, double top = 0)
        {
            Background = new SolidColorBrush(Colors.White);

            //ProcNames = new List<string>();
            //StanNames = new List<string>();

            Height = 26;
            Width = 26;
            Top = top - Height / 2;
            Left = left - Width / 2;
            Margin = new Thickness(Left, Top, 0, 0);

            SubscribeInit();

            Stan = new ClrIdxStr();
            Process = new ClrIdxStr();

            InOutNo = 0;
            OutConCount = 0;
            Level = 0;
            IsUse = false;

            StrokeThickness = 1;
            Stroke = new SolidColorBrush(Colors.Black);
            Foreground = new SolidColorBrush(Colors.Black);
            MouseLeftButtonDown -= CommonObjectOnMouseDown;
            MouseLeftButtonDown += OnMouseDown;
            MouseMove += OnMouseMove;
        }