Exemplo n.º 1
0
        public CompGraph(GRAPH_SIZE size, ref ResExtractor extractor)
        {
            InitializeComponent();

            mExtractor = extractor;

            int VAR_SIZE = GetVarSize(size);

            amImage.Width  = VAR_SIZE;
            amImage.Height = VAR_SIZE;
            amLabel.Width  = VAR_SIZE;
            amLabel.Height = TEXTFIELD_HEIGHT;

            this.Height = VAR_SIZE + TEXTFIELD_HEIGHT + EDGE;
            this.Width  = VAR_SIZE + EDGE;

            Canvas.SetLeft(amImage, 0);
            Canvas.SetTop(amImage, 0);
            Canvas.SetLeft(amLabel, 0);
            Canvas.SetTop(amLabel, VAR_SIZE);

            BorderBrush = new SolidColorBrush(System.Windows.Media.Color.FromRgb(255, 255, 255));
        }
Exemplo n.º 2
0
 public void OpenConnection()
 {
     mExtractor = new ResExtractor();
     mExtractor.Begin(mPackagePath);
 }