Exemplo n.º 1
0
        private void SetMD5Info(BinaryFile file, DevComponents.DotNetBar.LabelX label, bool md5Same)
        {
            if (file == null || !file.IsFileOnDisk)
            {
                label.Text = "-";
                return;
            }
            label.Text = file.GetMD5();

            if (md5Same)
            {
                pictureBoxMD5.Image = System.Drawing.Image.FromStream(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Slyce.IntelliMerge.Resources.font_char61_green_16_h.png"));
            }
            else
            {
                pictureBoxMD5.Image = System.Drawing.Image.FromStream(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Slyce.IntelliMerge.Resources.font_char33_red_16_h.png"));
            }
        }
Exemplo n.º 2
0
        private void SetMD5Info(BinaryFile file, DevComponents.DotNetBar.LabelX label, bool md5Same)
        {
            if (file == null || !file.IsFileOnDisk)
            {
                label.Text = "-";
                return;
            }
            label.Text = file.GetMD5();

            if (md5Same)
                pictureBoxMD5.Image = System.Drawing.Image.FromStream(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Slyce.IntelliMerge.Resources.font_char61_green_16_h.png"));
            else
                pictureBoxMD5.Image = System.Drawing.Image.FromStream(System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Slyce.IntelliMerge.Resources.font_char33_red_16_h.png"));
        }