Esempio n. 1
0
        public fMain()
        {
            InitializeComponent();

            btnAlpha.Checked = cProperties.getPropertyBool("enable_alpha");
            btnBackground.Checked = cProperties.getPropertyBool("enable_backdrop"); ;

            if (Platform.sysPlatform != Platform.ePlatform.MONO)
                textBoxEditor2.ConfigurationManager.Language = "xml";

            this.Text = String.Format("{0} v{1}", ((AssemblyProductAttribute)Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false)[0]).Product, Assembly.GetExecutingAssembly().GetName().Version.ToString());

            pDesigner = new cDesigner(pictureBox1.CreateGraphics());

            DirectoryInfo folder = new DirectoryInfo("elements");

            buildAddElementsMenu(folder, elementToolStripMenuItem1);

            pQueue = new cCommandQueue();
            pQueue.UndoPossibleEvent += new cCommandQueue.UndoRedoHandler(eventUndoPossible);
            pQueue.RedoPossibleEvent += new cCommandQueue.UndoRedoHandler(eventRedoPossible);
        }
Esempio n. 2
0
 public fWindowstyle()
 {
     InitializeComponent();
     pDesigner = new cDesigner(pictureBoxPreview.CreateGraphics());
 }