static void Main(string[] args)
 {
   Int32 x = 0x01000200;
   byte[] tmp = x.ToByte();
   foreach (byte i in tmp)
     Console.WriteLine("{0}", i);
   MIFWriterClass xm = new MIFWriterClass();
   xm.AddFileContent("Valami", false);
   xm.AddFileContent("Másvalami");
   xm.WriteMIFtoFile("teszt.mif");
 }
 private static void start_convert(string[] args)
 {
   string source = args[0];
   string dest = Path.GetFileNameWithoutExtension(source)+".mif";
   string form = Path.GetExtension(source);
   Console.WriteLine("Forrás   : {0}",source);
   Console.WriteLine("Cél      : {0}", dest);
   Console.WriteLine("Formátum : {0}", form);
   Console.WriteLine();
   if (!File.Exists(source))
   {
     Console.WriteLine("HIBA! A megadott forrásfájl nem létezik!!!!");
     return;
   }
   MIFWriterClass myMIF = new MIFWriterClass();
   myMIF.AddFile(source);
   myMIF.WriteMIFtoFile(dest);
   return;
 }
 private void OnCreateButton(object sender, EventArgs e)
 {
   lblCsomag.Visible = true;
   pbMaking.Visible = true;
   pbMaking.Maximum = lstPicFiles.Items.Count;
   pbMaking.Minimum = 0;
   if (!chkSplitPics.Checked)
   {
     foreach (string fn in lstPicFiles.Items)
     {
       string fullpath = SvgDict[lstPicFiles.Items.IndexOf(fn)];
       StreamReader xReader = new StreamReader(fullpath);
       string svgstring = xReader.ReadToEnd();
       xReader.Dispose();
       myMif.AddFile(svgstring);
       pbMaking.Increment(1);
     }
     dlgSaveMIF.AddExtension = true;
     dlgSaveMIF.Filter = "Symbian Multi Icon File (*.mif)|*.mif";
     if (dlgSaveMIF.ShowDialog() == DialogResult.OK)
     {
       myMif.WriteMIFtoFile(dlgSaveMIF.FileName);
     }
     dlgSaveMIF.Dispose();
   }
   else
   {
     if (!Directory.Exists(Application.StartupPath + @"\MIF"))
       Directory.CreateDirectory(Application.StartupPath + @"\MIF");
     //dlgSaveFolder.RootFolder = Application.StartupPath + @"\MIF";
     string mifname;
     int i =0;
     foreach (string fn in lstPicFiles.Items)
     {
       mifname =  Path.GetFileNameWithoutExtension(fn)+".mif";
       myMif = new MIFWriterClass();
       myMif.AddFile(SvgDict[lstPicFiles.Items.IndexOf(fn)]);
     };
   }
   lblCsomag.Visible = false;
   pbMaking.Visible = false;
 }
 private void onMakeMIF(object sender, EventArgs e)
 {
   MIFWriterClass myMif = new MIFWriterClass();
   frmMIFMaker x = new frmMIFMaker();
   x.ShowDialog();
 }