/// <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); } }
/// <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); } }