private void btnExtract_Click(object sender, RoutedEventArgs e)
 {
     if (gifPath_B.Length != 0)
     {
         if (filePath_B.Length != 0)
         {
             if (LSB_B)
             {
                 File.WriteAllBytes(filePath_B, GIFEncryptorByLSBMethod.Decrypt(gifPath_B));
                 tblResult_B.Text = "Completed successfully!";
             }
             else if (palExt_B)
             {
                 File.WriteAllBytes(filePath_B, GIFEncryptorByPaletteExtensionMethod.Decrypt(gifPath_B));
                 tblResult_B.Text = "Completed successfully!";
             }
             else
             {
                 tblResult_B.Text = "No method selected!";
             }
         }
         else
         {
             tblResult_B.Text = "No path to save message!";
         }
     }
     else
     {
         tblResult_B.Text = "No GIF container selected!";
     }
 }
 private void btnEmbed_Click(object sender, RoutedEventArgs e)
 {
     if (gifPath.Length != 0)
     {
         if (text.Length != 0)
         {
             if (gifPath_new.Length != 0)
             {
                 if (LSB)
                 {
                     File.WriteAllBytes(gifPath_new, GIFEncryptorByLSBMethod.Encrypt(gifPath, text));
                     tblResult.Text = "Completed successfully!";
                 }
                 else if (palExt)
                 {
                     File.WriteAllBytes(gifPath_new, GIFEncryptorByPaletteExtensionMethod.Encrypt(gifPath, text));
                     tblResult.Text = "Completed successfully!";
                 }
                 else
                 {
                     tblResult.Text = "No method selected!";
                 }
             }
             else
             {
                 tblResult.Text = "No path to save file!";
             }
         }
         else
         {
             tblResult.Text = tblResult.Text = "No message to embed!";
         }
     }
     else
     {
         tblResult.Text = "No GIF container selected!";
     }
 }