示例#1
0
 public CFiguresGroupManager(CViewer userInterface, CFiguresLoader loader)
 {
     UI               = userInterface;
     figuresLoader    = loader;
     figuresGroup     = new List <CTwoDFigure>();
     figuresGroupType = figuresLoader.FiguresGroupType;
 }
示例#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>();
 }
示例#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();
        }
示例#4
0
 public CProjectInfo(CViewer currUI)
 {
     resetProjectInfo();
     UI = currUI;
 }