Archived
Changed: textbox button to respond to left-button only
This commit is contained in:
1 parent
2af53adcae
commit
3518084267
7 files changed
+78
-78
No files matched your search
+7
-36
@@ -1,7 +1,6 @@
|
||||
using Microsoft.Data.Sqlite;
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Imaging;
|
||||
using System.IO;
|
||||
|
||||
namespace BookmarkManager
|
||||
@@ -50,11 +49,8 @@ namespace BookmarkManager
|
||||
{
|
||||
command.ExecuteNonQuery();
|
||||
}
|
||||
catch (Exception exc)
|
||||
catch (Exception)
|
||||
{
|
||||
//#if DEBUG
|
||||
// MessageBox.Show(exc.Message);
|
||||
//#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -84,11 +80,8 @@ namespace BookmarkManager
|
||||
{
|
||||
command.ExecuteNonQuery();
|
||||
}
|
||||
catch (Exception exc)
|
||||
catch (Exception)
|
||||
{
|
||||
//#if DEBUG
|
||||
// MessageBox.Show(exc.Message);
|
||||
//#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -119,11 +112,8 @@ namespace BookmarkManager
|
||||
|
||||
command.Dispose();
|
||||
}
|
||||
catch (Exception exc)
|
||||
catch (Exception)
|
||||
{
|
||||
//#if DEBUG
|
||||
// MessageBox.Show(exc.Message);
|
||||
//#endif
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -138,16 +128,12 @@ namespace BookmarkManager
|
||||
{
|
||||
img = Image.FromStream(new MemoryStream(iconBytes));
|
||||
}
|
||||
catch (Exception exc)
|
||||
catch (Exception)
|
||||
{
|
||||
//#if DEBUG
|
||||
// MessageBox.Show(exc.Message);
|
||||
//#endif
|
||||
return null;
|
||||
}
|
||||
|
||||
return img;
|
||||
//return new Bitmap(img, 16, 16);
|
||||
}
|
||||
|
||||
public bool HasIcon(string id)
|
||||
@@ -168,11 +154,8 @@ namespace BookmarkManager
|
||||
|
||||
command.Dispose();
|
||||
}
|
||||
catch (Exception exc)
|
||||
catch (Exception)
|
||||
{
|
||||
//#if DEBUG
|
||||
// MessageBox.Show(exc.Message);
|
||||
//#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -200,11 +183,8 @@ namespace BookmarkManager
|
||||
{
|
||||
command.ExecuteNonQuery();
|
||||
}
|
||||
catch (Exception exc)
|
||||
catch (Exception)
|
||||
{
|
||||
//#if DEBUG
|
||||
// MessageBox.Show(exc.Message);
|
||||
//#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -222,11 +202,8 @@ namespace BookmarkManager
|
||||
command.ExecuteNonQuery();
|
||||
command.Dispose();
|
||||
}
|
||||
catch (Exception exc)
|
||||
catch (Exception)
|
||||
{
|
||||
//#if DEBUG
|
||||
// MessageBox.Show(exc.Message);
|
||||
//#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -235,12 +212,6 @@ namespace BookmarkManager
|
||||
|
||||
protected byte[] ImageToBytes(Image image)
|
||||
{
|
||||
//MemoryStream stream = new MemoryStream();
|
||||
//image.Save(stream, image.RawFormat);
|
||||
//stream.Close();
|
||||
|
||||
//return stream.ToArray();
|
||||
|
||||
ImageConverter imageConverter = new ImageConverter();
|
||||
return (byte[])imageConverter.ConvertTo(image, typeof(byte[]));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user