Ejemplo n.º 1
0
        private void btnProperty_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            GoView view = GetCurrentGoView();

            if (view != null && view.Document is FlowDocument)
            {
                frmInfo dlg = new frmInfo();
                dlg.Doc = (FlowDocument)view.Document;
                dlg.ShowDialog();
            }
        }
Ejemplo n.º 2
0
        private void btnNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FlowMap canvas = new FlowMap();

            canvas.MdiParent = this;
            canvas.Show();
            canvas.WindowState = FormWindowState.Maximized;
            canvas.View.UpdateFormInfo();
            FlowDocument doc = canvas.View.Doc;

            doc.UndoManager.Clear();
            doc.IsModified = false;

            frmInfo dlg = new frmInfo();

            dlg.Doc = doc;
            dlg.ShowDialog();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Bring up the properties dialog for the document.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void Properties_Command(Object sender, EventArgs e)
 {
     frmInfo dlg = new frmInfo();
     dlg.Doc = this.Doc;
     dlg.ShowDialog();
 }