Esempio n. 1
0
 public CFiguresGroupManager(CViewer userInterface, CFiguresLoader loader)
 {
     UI               = userInterface;
     figuresLoader    = loader;
     figuresGroup     = new List <CTwoDFigure>();
     figuresGroupType = figuresLoader.FiguresGroupType;
 }
Esempio n. 2
0
 public CFiguresLoader(CViewer curUI)
 {
     UI = curUI;
     FiguresGroupType = null;
     LoadedTypes      = new List <Type>();
     LoadedMethods    = new List <MethodInfo>();
     TypesNames       = new List <string>();
     NamespacesNames  = new List <string>();
 }
Esempio n. 3
0
        public frmMain()
        {
            InitializeComponent();

            curBtnX   = 8;
            curBtnY   = 260;
            locationX = 0;
            locationY = 0;
            currentPictureBackgroundColor = STANDART_CANVAS_COLOR;

            figuresBtns    = new List <Button>();
            userInterface  = new CViewer(this);
            projectManager = new CProjectInfo(userInterface);
            figuresLoader  = new CFiguresLoader(userInterface);
            paramsXML      = new CParamsXML();

            figuresLoader.LoadFigures();
            CTwoDFigureFactory.LoadedFactories = figuresLoader.LoadedMethods;
            CTwoDFigure.KnownTypes             = figuresLoader.LoadedTypes;
            figuresGroupManager = new CFiguresGroupManager(userInterface, figuresLoader);

            CTwoDFigureFactory factory = CTwoDFigureFactory.GetFactory(0);

            if (factory != null)
            {
                picture = new CPicture(currentPictureBackgroundColor, PictureBox, factory, PictureMode.pmEdit, figuresGroupManager);
            }

            standartBtnColor = Color.White;
            pressedBtnColor  = Color.Bisque;
            prevMode         = PictureMode.pmEdit;
            this.SetStyle(ControlStyles.ResizeRedraw, true);

            setStandartSettings();
            updateWindowCaption();
        }
Esempio n. 4
0
 public CProjectInfo(CViewer currUI)
 {
     resetProjectInfo();
     UI = currUI;
 }