Пример #1
0
        void Btn_saveClick(object sender, EventArgs e)
        {
            // Screen resolution
            Settings.screen_res = Settings.screen_res = String.Format(
                "{0},{1},{2},{3}",
                numeric_left.Value,
                numeric_top.Value,
                numeric_width.Value,
                numeric_height.Value
                );

            Screen_Bounds.load();

            Settings.save_screenshots = check_save_screenshots.Checked;
            Settings.save_folder      = txt_save_folder.Text;
            Settings.save_format      = drop_save_format.Text;
            Settings.save_quality     = Convert.ToInt16(drop_save_quality.Text);

            Settings.upload_method = drop_upload_method.Text;
            Settings.upload_format = drop_upload_format.Text;

            Settings.copy_links_to_clipboard = check_copy_links.Checked;
            Settings.sound_effects           = check_sound_effects.Checked;
            Settings.show_cursor             = check_show_cursor.Checked;
            Settings.balloon_messages        = check_balloon.Checked;
            Settings.launch_browser          = check_launch_browser.Checked;
            Settings.edit_screenshot         = check_edit_screenshot.Checked;

            Settings.write_settings();
            Global_Func.run_at_startup(check_run_at_startup.Checked);
            Dispose();
        }
Пример #2
0
 void Btn_reset_screenClick(object sender, System.EventArgs e)
 {
     String[] screen_res = Screen_Bounds.reset().Split(',');
     numeric_left.Value   = Convert.ToDecimal(screen_res[0]);
     numeric_top.Value    = Convert.ToDecimal(screen_res[1]);
     numeric_width.Value  = Convert.ToDecimal(screen_res[2]);
     numeric_height.Value = Convert.ToDecimal(screen_res[3]);
 }
Пример #3
0
        void Frm_MainLoad(object sender, EventArgs e)
        {
            Imgur.web_client.UploadProgressChanged += upload_progress_changed;
            Imgur.web_client.UploadValuesCompleted += upload_progress_complete;

            Settings.get_settings();
            tray_icon.Visible = true;

            Screen_Bounds.load();
        }
Пример #4
0
        public static void get_settings()
        {
            Global_Func.app_data_folder_create();
            settings_build = Exists("hyperdesktop2", "build", Convert.ToString(build));

            imgur_client_id = Exists("upload", "imgur_client_id", "84c55d06b4c9686");

            save_screenshots = Global_Func.str_to_bool(Exists("general", "save_screenshots", "false"));
            save_folder      = Exists("general", "save_folder", Environment.CurrentDirectory + "\\captures\\");
            save_format      = Exists("general", "save_format", "png");
            save_quality     = Convert.ToInt16(Exists("general", "save_quality", "100"));

            upload_method = Exists("upload", "upload_method", "imgur");
            upload_format = Exists("upload", "upload_format", "png");

            copy_links_to_clipboard = Global_Func.str_to_bool(Exists("behavior", "copy_links_to_clipboard", "true"));
            show_cursor             = Global_Func.str_to_bool(Exists("behavior", "show_cursor", "false"));
            sound_effects           = Global_Func.str_to_bool(Exists("behavior", "sound_effects", "true"));
            balloon_messages        = Global_Func.str_to_bool(Exists("behavior", "balloon_messages", "true"));
            launch_browser          = Global_Func.str_to_bool(Exists("behavior", "launch_browser", "false"));
            edit_screenshot         = Global_Func.str_to_bool(Exists("behavior", "edit_screenshot", "true"));

            screen_res = Exists("screen", "screen_res", Screen_Bounds.reset());
        }