Beispiel #1
0
 private void ChangedWinId()
 {
     WinId = null;
     if (m_file != null && m_file.DataDiskPath != null)
     {
         WinId = IOTool.NormalizePath(m_file.DataDiskPath) + "#chart";
     }
 }
Beispiel #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);
        }