Beispiel #1
0
        /// <summary>
        /// Open image in any programm
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void IListBox_DoubleClick(object sender, EventArgs e)
        {
            var path = PhotoList.GetCurrentPath();

            if (!string.IsNullOrWhiteSpace(path))
            {
                Process.Start(path);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Changed current windows background
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UpdateWindow_Click(object sender, EventArgs e)
        {
            var path = PhotoList.GetCurrentPath();

            if (!string.IsNullOrWhiteSpace(path))
            {
                Native.SetWindow(path, SettingList.TypeImage);
            }
        }