public CFiguresGroupManager(CViewer userInterface, CFiguresLoader loader) { UI = userInterface; figuresLoader = loader; figuresGroup = new List <CTwoDFigure>(); figuresGroupType = figuresLoader.FiguresGroupType; }
public CFiguresLoader(CViewer curUI) { UI = curUI; FiguresGroupType = null; LoadedTypes = new List <Type>(); LoadedMethods = new List <MethodInfo>(); TypesNames = new List <string>(); NamespacesNames = new List <string>(); }
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(); }
public CProjectInfo(CViewer currUI) { resetProjectInfo(); UI = currUI; }