zoukankan      html  css  js  c++  java
  • 窗体Text修改方式

    方法有二

    1.直接修改TEXT:

    View Code
    this.Text = "csg - " + FullFileName;

    2.通过调用DLL文件修改:

    方法二
     #region 方法二
                docManagerData.NewDocName = FullFileName;
                docManager = new DocManager(docManagerData);
                docManager.RegisterFileType("csg", "csgfile", "DrawTools File");//文件关联
    
                // Subscribe to DocManager events.
                docManager.SaveEvent += docManager_SaveEvent;
                docManager.LoadEvent += docManager_LoadEvent;
    
                // Make "inline subscription" using anonymous methods.
                docManager.OpenEvent += delegate(object sender, OpenFileEventArgs e)
                {
                    // Update MRU List
                    if (e.Succeeded)
                        mruManager.Add(e.FileName);
                    else
                        mruManager.Remove(e.FileName);
                };
    
                docManager.DocChangedEvent += delegate
                {
                    drawArea.Refresh();
                    drawArea.ClearHistory();
                };
    
                docManager.ClearEvent += delegate
                {
                    bool haveObjects = false;
    
                    if (drawArea.Graphicslist.Count > 1)
                    {
                        haveObjects = true;
    
                    }
    
                    if (haveObjects)
                    {
                        drawArea.Graphicslist.Clear();
                        drawArea.ClearHistory();
                        drawArea.Refresh();
                    }
                };
                docManager.NewDocument();
                #endregion
  • 相关阅读:
    生成函数代替伯努利数
    关于费用流
    GDOI注意事项
    计算几何 学习笔记
    jzoj5370
    图上的游戏
    小学生语文题
    arcane
    P2305 [NOI2014] 购票
    P3512 [POI2010]PIL-Pilots
  • 原文地址:https://www.cnblogs.com/kongll/p/2514851.html
Copyright © 2011-2022 走看看