123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.CompilerServices;
- using System.Text;
- using System.Threading.Tasks;
- namespace PDF_Office.Model
- {
-
-
-
- public static class RegionNames
- {
-
-
-
- public static string MainRegion = "MainRegion";
-
-
-
- public static string ToolRegionName
- {
- get
- {
- return GetRegionName("ToolRegionName");
- }
- }
-
-
-
- public static string ViwerRegionName
- {
- get
- {
- return GetRegionName("ViwerRegionName");
- }
- }
-
-
-
- public static string BOTARegionName
- {
- get
- {
- return GetRegionName("BOTARegionName");
- }
- }
-
-
-
- public static string PropertyRegionName
- {
- get
- {
- return GetRegionName("PropertyRegionName");
- }
- }
-
-
-
- public static string ToolContentRegionName
- {
- get
- {
- return GetRegionName("ToolContentRegionName");
- }
- }
-
-
-
- public static string ToolsBarContentRegionName
- {
- get
- {
- return GetRegionName("ToolsBarContentRegionName");
- }
- }
-
-
-
- public static string BottomToolRegionName
- {
- get
- {
- return GetRegionName("BottomToolRegionName");
- }
- }
-
-
-
-
-
- public static string GetRegionName(string key)
- {
- if (App.mainWindowViewModel.SelectedItem.RegionContentNames.ContainsKey(key))
- {
- return App.mainWindowViewModel.SelectedItem.RegionContentNames[key];
- }
- else
- {
- string name = Guid.NewGuid().ToString();
- App.mainWindowViewModel.SelectedItem.RegionContentNames[key] = name;
- return name;
- }
- }
-
-
-
-
- public static void SetRegionName(string key, string Value)
- {
- if (App.mainWindowViewModel.SelectedItem.RegionContentNames.ContainsKey(key))
- {
- App.mainWindowViewModel.SelectedItem.RegionContentNames[key] = Value;
- }
- else
- {
- App.mainWindowViewModel.SelectedItem.RegionContentNames[key] = Value;
- }
- }
- }
- }
|