コード例 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            AppDomain.CurrentDomain.AssemblyResolve += (sender, args) =>
            {
                String resourceName = "send2mykindle." +
                                      new AssemblyName(args.Name).Name + ".dll";
                using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceName))
                {
                    Byte[] assemblyData = new Byte[stream.Length];

                    stream.Read(assemblyData, 0, assemblyData.Length);

                    return(Assembly.Load(assemblyData));
                }
            };
            //Application.Run(new Form_send2mykindle());
            Application.Run(Form_send2mykindle.getInstance());
        }
コード例 #2
0
 private void sendWaitWindow_FormClosing(object sender, FormClosingEventArgs e)
 {
     Form_send2mykindle.getInstance().sendCancel();
 }
コード例 #3
0
 private void buttonCancel_Click(object sender, EventArgs e)
 {
     Form_send2mykindle.getInstance().sendCancel();
     this.Close();
 }