Ejemplo n.º 1
0
        public ScreenShotter()
        {
//            if (muc.Read("Main","lang") == "")
//            {
//                muc.Read("Main","lang") ="en";
//            }
            if (!File.Exists(Configs.filePath))
            {
                muc.Write("Main", "TrayShow", "true");
                var syslang = System.Globalization.CultureInfo.CurrentCulture;
                if (Convert.ToString(syslang) == "ru-RU")
                {
                    muc.Write("Main", "lang", "ru");
                }
                langchange();
                icon.ShowTooltip(cc_lang[68], cc_lang[69]);
            }
            langchange();
            check.Tick    += new EventHandler(checkis);
            check.Interval = 50;
            check.Start();
            langchange();
            cwl(cc_lang[9]);
            AddOwnedForm(configs);
            AddOwnedForm(console);
            AddOwnedForm(selSCR);
            InitializeComponent();
            ScrShHK     = new HotkeyHandler(Modifiers.ALT, Keys.F3, this);
            ScrShshhHK  = new HotkeyHandler(Modifiers.ALT + Modifiers.CTRL, Keys.F3, this);
            ScrShExit   = new HotkeyHandler(Modifiers.ALT + Modifiers.CTRL + Modifiers.WIN, Keys.F4, this);
            Oplast      = new HotkeyHandler(Modifiers.ALT + Modifiers.SHIFT, Keys.F3, this);
            SelScrShot  = new HotkeyHandler(Modifiers.CTRL + Modifiers.SHIFT, Keys.F3, this);
            curWindowSS = new HotkeyHandler(Modifiers.CTRL, Keys.F3, this);
            Selpath     = new FolderBrowserDialog();
            ScrShHK.Register();
            ScrShshhHK.Register();
            ScrShExit.Register();
            Oplast.Register();
            curWindowSS.Register();
            SelScrShot.Register();
            InitializeTrayIcon();
            About  = new AboutBox();
            _sound = muc.ReadBool("Main", "sound");
            CurrentWindowScreenShot.WinShadow = muc.ReadInt("Main", "WShadow");
            MemoryManagement.FlushMemory();
        }
Ejemplo n.º 2
0
 public ScreenShotter()
 {
     //            if (muc.Read("Main","lang") == "")
     //            {
     //                muc.Read("Main","lang") ="en";
     //            }
     if (!File.Exists(Configs.filePath))
     {
         muc.Write("Main","TrayShow","true");
         var syslang = System.Globalization.CultureInfo.CurrentCulture;
         if (Convert.ToString(syslang) == "ru-RU")
         {
             muc.Write("Main","lang","ru");
         }
        		langchange();
         icon.ShowTooltip(cc_lang[68], cc_lang[69]);
     }
     langchange();
     check.Tick += new EventHandler(checkis);
     check.Interval = 50;
     check.Start();
     langchange();
     cwl(cc_lang[9]);
     AddOwnedForm(configs);
     AddOwnedForm(console);
     AddOwnedForm(selSCR);
     InitializeComponent();
     ScrShHK = new HotkeyHandler(Modifiers.ALT, Keys.F3, this);
     ScrShshhHK = new HotkeyHandler(Modifiers.ALT + Modifiers.CTRL, Keys.F3, this);
     ScrShExit = new HotkeyHandler(Modifiers.ALT + Modifiers.CTRL + Modifiers.WIN, Keys.F4, this);
     Oplast = new HotkeyHandler(Modifiers.ALT + Modifiers.SHIFT, Keys.F3, this);
     SelScrShot = new HotkeyHandler(Modifiers.CTRL + Modifiers.SHIFT, Keys.F3, this);
     curWindowSS = new HotkeyHandler(Modifiers.CTRL, Keys.F3, this);
     Selpath = new FolderBrowserDialog();
     ScrShHK.Register();
     ScrShshhHK.Register();
     ScrShExit.Register();
     Oplast.Register();
     curWindowSS.Register();
     SelScrShot.Register();
     InitializeTrayIcon();
     About = new AboutBox();
     MemoryManagement.FlushMemory();
 }