示例#1
0
文件: frmMain.cs 项目: farlei/libEGL
        public frmMain()
        {
            InitializeComponent();

            frmEvents = new frmEvent();
            frmEvents.newEvent += new newEventHandler(frmEvents_newEvent);
            frmEvents.editEvent += new editEventHandler(frmEvents_editEvent);
            frmEvents.deleteEvent += new deleteEventHandler(frmEvents_deleteEvent);
            frmEvents.FormClosed += new FormClosedEventHandler(frmEvents_FormClosed);

            fontEvent = new Font(this.Font, FontStyle.Bold);

            formatEventStr = new StringFormat();
            formatEventStr.Alignment = StringAlignment.Center;
            formatEventStr.LineAlignment = StringAlignment.Center;

            EnableTools(false);
            frmAbout = new frmSobre();
            helpToolStripMenuItem.Text = String.Format("Versão {0} beta", frmAbout.AssemblyVersion);
        }
示例#2
0
文件: frmMain.cs 项目: farlei/libEGL
 private void sobreEditorMapa2DToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmAbout = new frmSobre();
     frmAbout.ShowDialog();
 }