public static void SaveConfigurations(iniparser parser) { parser.SetValue("Locations", "location_dot_diameter", location_dot_diameter); parser.SetValue("Locations", "location_dot_color", location_dot_color); parser.SetValue("Locations", "location_dot_outline_color", location_dot_outline_color); parser.SetValue("Locations", "location_dot_font_color", location_dot_font_color); // General variables //parser.SetValue("General", "line_break", "\"" + line_break.ToString() + "\""); parser.SetValue("General", "log_file", log_file); parser.SetValue("General", "contribution_comment_date", contribution_comment_date); parser.SetValue("General", "contribution_comment_tag", contribution_comment_tag); parser.SetValue("General", "contribution_comment_location", contribution_comment_location); parser.SetValue("General", "designidea_date_desc", designidea_date_desc); parser.SetValue("General", "designidea_num_desc", designidea_num_desc); parser.SetValue("General", "users_date_desc", users_date_desc); parser.SetValue("General", "users_num_desc", users_num_desc); parser.SetValue("General", "users_no_date", users_no_date); parser.SetValue("General", "activities_date_desc", activities_date_desc); parser.SetValue("General", "activities_num_desc", activities_num_desc); parser.SetValue("General", "frame_title", frame_title); // Parameters parser.SetValue("Parameters", "high_contrast", high_contrast); parser.SetValue("Parameters", "top_most", top_most); parser.SetValue("Parameters", "show_update_label", show_update_label); parser.SetValue("Parameters", "response_to_mouse_clicks", response_to_mouse_clicks); parser.SetValue("Parameters", "enable_single_rotation", enable_single_rotation); parser.SetValue("Parameters", "max_num_content_update", max_num_content_update); parser.SetValue("Parameters", "max_signup_frame", max_signup_frame); parser.SetValue("Parameters", "max_collection_frame", max_collection_frame); parser.SetValue("Parameters", "max_image_display_frame", max_image_display_frame); parser.SetValue("Parameters", "max_design_ideas_frame", max_design_ideas_frame); parser.SetValue("Parameters", "max_activity_frame", max_activity_frame); parser.SetValue("Parameters", "max_thread_reply", max_thread_reply); parser.SetValue("Parameters", "max_activity_frame_title_chars", max_activity_frame_title_chars); //parser.SetValue("Parameters", "thumbnail_pixel_width",thumbnail_pixel_width); parser.SetValue("Parameters", "thumbnail_pixel_height", thumbnail_pixel_height); parser.SetValue("Parameters", "thumbnail_video_span_seconds", thumbnail_video_span.Seconds); parser.SetValue("Parameters", "use_existing_thumbnails", use_existing_thumbnails); parser.SetValue("Parameters", "drag_dy_dx_factor", drag_dy_dx_factor); //parser.SetValue("Parameters", "drag_dx_dy_factor",drag_dx_dy_factor); parser.SetValue("Parameters", "drag_collection_theta", drag_collection_theta); parser.SetValue("Parameters", "scroll_scale_factor", scroll_scale_factor); parser.SetValue("Parameters", "min_touch_points", min_touch_points); parser.SetValue("Parameters", "max_consecutive_drag_points", max_consecutive_drag_points); parser.SetValue("Parameters", "tap_error", tap_error); parser.SetValue("Parameters", "manipulation_pivot_radius", manipulation_pivot_radius); parser.SetValue("Parameters", "use_avatar_drag", use_avatar_drag); parser.SetValue("Parameters", "tab_width_percentage", tab_width_percentage); parser.SetValue("Parameters", "manual_scroll", manual_scroll); parser.SetValue("Parameters", "manual_tap", manual_tap); parser.SetValue("Parameters", "right_panel_drag", right_panel_drag); parser.SetValue("Parameters", "whole_item_drag", whole_item_drag); parser.SetValue("Parameters", "center_commentarea_and_keyboard", center_commentarea_and_keyboard); parser.SetValue("Parameters", "multi_keyboard", multi_keyboard); parser.SetValue("Parameters", "show_vertical_drag", show_vertical_drag); parser.SetValue("Parameters", "show_empty_metadata", show_empty_metadata); parser.SetValue("Parameters", "show_all_metadata", show_all_metadata); parser.SetValue("Parameters", "use_list_refresher", use_list_refresher); parser.SetValue("Parameters", "update_period_ms", update_period_ms); parser.SetValue("Parameters", "scaling_mode", scaling_mode); parser.SetValue("Parameters", "click_opacity_on_collection_item", click_opacity_on_collection_item); // Google Drive parser.SetValue("GoogleDrive", "googledrive_directory_id", googledrive_directory_id); parser.SetValue("GoogleDrive", "googledrive_client_id", googledrive_client_id); parser.SetValue("GoogleDrive", "googledrive_client_secret", googledrive_client_secret); parser.SetValue("GoogleDrive", "googledrive_storage", googledrive_storage); parser.SetValue("GoogleDrive", "googledrive_key", googledrive_key); parser.SetValue("GoogleDrive", "googledrive_refresh_token", googledrive_refresh_token); parser.SetValue("GoogleDrive", "googledrive_lastchange", googledrive_lastchange); parser.SetValue("GoogleDrive", "googledrive_userfilename", googledrive_userfilename); parser.SetValue("GoogleDrive", "googledrive_userfiletitle", googledrive_userfiletitle); parser.SetValue("GoogleDrive", "googledrive_ideafilename", googledrive_ideafilename); parser.SetValue("GoogleDrive", "googledrive_ideafiletitle", googledrive_ideafiletitle); parser.SetValue("GoogleDrive", "download_buffer_size", download_buffer_size); // 10KB = 10 * 1024 // Paths parser.SetValue("Paths", "image_path", image_path); parser.SetValue("Paths", "avatar_path", avatar_path); parser.SetValue("Paths", "thumbnails_path", thumbnails_path); parser.SetValue("Paths", "contributions_path", contributions_path); // Files parser.SetValue("Files", "background_pic", background_pic); parser.SetValue("Files", "drop_avatar_pic", drop_avatar_pic); parser.SetValue("Files", "loading_image_pic", loading_image_pic); parser.SetValue("Files", "empty_image_pic", empty_image_pic); parser.SetValue("Files", "not_found_image_pic", not_found_image_pic); parser.SetValue("Files", "sound_image_pic", sound_image_pic); parser.SetValue("Files", "video_image_pic", video_image_pic); parser.SetValue("Files", "keyboard_pic", keyboard_pic); parser.SetValue("Files", "keyboard_shift_pic", keyboard_shift_pic); parser.SetValue("Files", "keyboard_caps_pic", keyboard_caps_pic); parser.SetValue("Files", "keyboard_numpad_pic", keyboard_numpad_pic); parser.SetValue("Files", "close_icon", close_icon); parser.SetValue("Files", "change_view_list_icon", change_view_list_icon); parser.SetValue("Files", "change_view_stack_icon", change_view_stack_icon); parser.SetValue("Files", "collection_window_icon", collection_window_icon); parser.SetValue("Files", "signup_icon", signup_icon); parser.SetValue("Files", "signup_window_icon", signup_window_icon); parser.SetValue("Files", "submit_idea_icon", submit_idea_icon); parser.SetValue("Files", "thumbs_up_icon", thumbs_up_icon); parser.SetValue("Files", "thumbs_down_icon", thumbs_down_icon); parser.SetValue("Files", "keyboard_click_wav", keyboard_click_wav); parser.SetValue("Files", "drag_icon", drag_icon); parser.SetValue("Files", "drag_vertical_icon", drag_vertical_icon); parser.SetValue("Files", "comment_icon", comment_icon); parser.SetValue("Files", "reply_icon", reply_icon); // Frame parser.SetValue("Frame", "frame_width", frame_width); parser.SetValue("Frame", "frame_title_bar_height", frame_title_bar_height); parser.SetValue("Frame", "frame_icon_width", frame_icon_width); // Item parser.SetValue("Item", "toolbar_item_width", toolbar_item_width); parser.Save(GetAbsoluteConfigFilePath()); }
public static void SaveChangeID() { iniparser parser = new iniparser(GetAbsoluteConfigFilePath()); parser.SetValue("GoogleDrive", "googledrive_lastchange", configurations.googledrive_lastchange); parser.Save(GetAbsoluteConfigFilePath()); }