Ejemplo n.º 1
0
 public static String GetTemplateFile()
 {
     if (RegistryManager.HasKey(TemplateFileKey))
     {
         return((String)RegistryManager.GetValue(TemplateFileKey));
     }
     else
     {
         return(TemplateFileDefault);
     }
 }
Ejemplo n.º 2
0
 public static String GetSolver()
 {
     if (RegistryManager.HasKey(SolverKey))
     {
         return((String)RegistryManager.GetValue(SolverKey));
     }
     else
     {
         return(SolverDefault);
     }
 }
Ejemplo n.º 3
0
 public static int GetState()
 {
     if (RegistryManager.HasKey(HasWindowStateData))
     {
         return((int)RegistryManager.GetValue(WindowState));
     }
     else
     {
         return(DefaultValue);
     }
 }
Ejemplo n.º 4
0
 public static String GetModel()
 {
     if (RegistryManager.HasKey(ModelKey))
     {
         return((String)RegistryManager.GetValue(ModelKey));
     }
     else
     {
         return(ModelDefault);
     }
 }
Ejemplo n.º 5
0
 public static String GetController()
 {
     if (RegistryManager.HasKey(ControllerKey))
     {
         return((String)RegistryManager.GetValue(ControllerKey));
     }
     else
     {
         return(ControllerDefault);
     }
 }
Ejemplo n.º 6
0
 public static String GetCombined()
 {
     if (RegistryManager.HasKey(CombinedKey))
     {
         return((String)RegistryManager.GetValue(CombinedKey));
     }
     else
     {
         return(CombinedDefault);
     }
 }
Ejemplo n.º 7
0
 public static int GetLeftPanelWidth()
 {
     if (RegistryManager.HasKey(LeftPanelWidthKey))
     {
         return(Convert.ToInt32((String)RegistryManager.GetValue(LeftPanelWidthKey)));
     }
     else
     {
         return(LeftPanelWidthDefault);
     }
 }
Ejemplo n.º 8
0
 public static String Get_TopRight()
 {
     if (RegistryManager.HasKey(HeaderFooter_TopRight_Key))
     {
         return((String)RegistryManager.GetValue(HeaderFooter_TopRight_Key));
     }
     else
     {
         return("");
     }
 }
Ejemplo n.º 9
0
 public static String GetFileTreePath()
 {
     if (RegistryManager.HasKey(FileTreePathKey))
     {
         return((String)RegistryManager.GetValue(FileTreePathKey));
     }
     else
     {
         return(null);
     }
 }
Ejemplo n.º 10
0
 public static bool GetWholeWord()
 {
     if (RegistryManager.HasKey(WholeWordKey))
     {
         String Image = (String)RegistryManager.GetValue(WholeWordKey);
         return(Convert.ToBoolean(Image));
     }
     else
     {
         return(WholeWordDefault);
     }
 }
Ejemplo n.º 11
0
 public static bool GetIsModular()
 {
     if (RegistryManager.HasKey(IsModularKey))
     {
         String Image = (String)RegistryManager.GetValue(IsModularKey);
         return(Convert.ToBoolean(Image));
     }
     else
     {
         return(Convert.ToBoolean(IsModularDefault));
     }
 }
Ejemplo n.º 12
0
 public static bool GetLandscape()
 {
     if (RegistryManager.HasKey(LandscapeKey))
     {
         String Image = (String)RegistryManager.GetValue(LandscapeKey);
         return(Convert.ToBoolean(Image));
     }
     else
     {
         return(false);
     }
 }
Ejemplo n.º 13
0
 public static bool GetMatchCase()
 {
     if (RegistryManager.HasKey(MatchCaseKey))
     {
         String Image = (String)RegistryManager.GetValue(MatchCaseKey);
         return(Convert.ToBoolean(Image));
     }
     else
     {
         return(MatchCaseDefault);
     }
 }
Ejemplo n.º 14
0
 public static bool GetUseTemplateFile()
 {
     if (RegistryManager.HasKey(UseTemplateFileKey))
     {
         String Image = (String)RegistryManager.GetValue(UseTemplateFileKey);
         return(Convert.ToBoolean(Image));
     }
     else
     {
         return(UseTemplateFileDefault);
     }
 }
Ejemplo n.º 15
0
 public static bool GetWaitForExit()
 {
     if (RegistryManager.HasKey(WaitForExitKey))
     {
         String Image = (String)RegistryManager.GetValue(WaitForExitKey);
         return(Convert.ToBoolean(Image));
     }
     else
     {
         return(WaitForExitDefault);
     }
 }
Ejemplo n.º 16
0
 public static bool GetSaveFiles()
 {
     if (RegistryManager.HasKey(SaveFilesKey))
     {
         String Image = (String)RegistryManager.GetValue(SaveFilesKey);
         return(Convert.ToBoolean(Image));
     }
     else
     {
         return(SaveFilesDefault);
     }
 }
Ejemplo n.º 17
0
 public static bool GetInsertWideFormat()
 {
     if (RegistryManager.HasKey(InsertWideFormatKey))
     {
         String Image = (String)RegistryManager.GetValue(InsertWideFormatKey);
         return(Convert.ToBoolean(Image));
     }
     else
     {
         return(InsertWideFormatDefault);
     }
 }
Ejemplo n.º 18
0
 public static bool GetRestoreFileTree()
 {
     if (RegistryManager.HasKey(RestoreFileTreeKey))
     {
         String Image = (String)RegistryManager.GetValue(RestoreFileTreeKey);
         return(Convert.ToBoolean(Image));
     }
     else
     {
         return(RestoreFileTreeDefault);
     }
 }
Ejemplo n.º 19
0
    private static Font Get(String Prefix)
    {
        String FontFamilyName = (String)RegistryManager.GetValue(Prefix + "FontFamilyName");

        String Size         = (String)RegistryManager.GetValue(Prefix + "Size");
        float  SizeInPoints = Convert.ToSingle(Size);

        FontStyle Style = (FontStyle)RegistryManager.GetValue(Prefix + "Style");

        Font NewFont = new Font(FontFamilyName, SizeInPoints, Style);

        return(NewFont);
    }
Ejemplo n.º 20
0
    public static Margins GetMargins()
    {
        if (RegistryManager.HasKey(MarginsLeftKey))
        {
            int Left   = (int)RegistryManager.GetValue(MarginsLeftKey);
            int Top    = (int)RegistryManager.GetValue(MarginsTopKey);
            int Right  = (int)RegistryManager.GetValue(MarginsRightKey);
            int Bottom = (int)RegistryManager.GetValue(MarginsBottomKey);

            return(new Margins(Left, Top, Right, Bottom));
        }
        else
        {
            return(new Margins(100, 100, 100, 100));
        }
    }
Ejemplo n.º 21
0
    public static Point GetLocation()
    {
        if (RegistryManager.HasKey(XKey))
        {
            String XImage = (String)RegistryManager.GetValue(XKey);
            int    X      = Convert.ToInt32(XImage);

            String YImage = (String)RegistryManager.GetValue(YKey);
            int    Y      = Convert.ToInt32(YImage);

            return(new Point(X, Y));
        }
        else
        {
            return(new Point(XDefault, YDefault));
        }
    }
Ejemplo n.º 22
0
    public static Rectangle GetLocation()
    {
        Rectangle Rect = new Rectangle();

        if (RegistryManager.HasKey(HasWindowLocationData))
        {
            Rect.Width  = (int)RegistryManager.GetValue(WindowLocation + "Width");
            Rect.Height = (int)RegistryManager.GetValue(WindowLocation + "Height");
            Rect.X      = (int)RegistryManager.GetValue(WindowLocation + "X");
            Rect.Y      = (int)RegistryManager.GetValue(WindowLocation + "Y");
        }
        else
        {
            Rect.Width  = DefaultWidth;
            Rect.Height = DefaultHeight;
            Rect.X      = DefaultX;
            Rect.Y      = DefaultY;
        }

        return(Rect);
    }
Ejemplo n.º 23
0
    public static Color Get(String Name)
    {
        int RGBValue = (int)RegistryManager.GetValue(Prefix + Name);

        return(Color.FromArgb(RGBValue));
    }