예제 #1
0
 private void ChangedWinId()
 {
     WinId = null;
     if (m_file != null && m_file.DataDiskPath != null)
     {
         WinId = IOTool.NormalizePath(m_file.DataDiskPath) + "#chart";
     }
 }
예제 #2
0
        public static bool FindOpenedFile(string filename)
        {
            if (filename == null)
            {
                return(false);
            }
            string winid = IOTool.NormalizePath(filename) + "#chart";

            if (MainWindow.Instance.HasContent(winid))
            {
                MainWindow.Instance.ActivateContent(winid);
                return(true);
            }
            return(false);
        }