非IT企業に勤める中年サラリーマンのIT日記

非IT企業でしかもITとは全く関係ない部署にいる中年エンジニア。唯一の趣味がプログラミングという”自称”プログラマー。

C#: How would StickyNote be increased?

      2015/12/29

The previous blog:
How to write a text on sticky note.
http://non-it-salaryman.blogspot.jp/2015/11/c-how-to-write-text-on-sticky-note.html

本ブログの日本語バージョンはこちら

One of function which sticky note needed is that the number of it can be increased. How would it be do? I have thought TWO ideas.


A) stand-alone model
The first model is that some notes has been running independently. If the file name is “Sticky.exe”, every note is run from “Sticky.exe” as an external application. When right-click-menu “New” is clicked, Below is run.

 Process p = Process.Start(“note.exe”);

There is a important point, when the sticky note is run first. In the case, it is necessary to run the sticky notes, as many as data in database.

The first note has to check the number of data from the database. The first data is written to its own, then, the second and any later data are run from the first sticky note. in the case, a database ID as argument has to be added.

 Process p = Process.Start(“note.exe”, id);

B) Parent-children model
The second model is that a mother form has exist. The mother form is transparent and located outside the screen. When right-click-menu “New” is clicked, Below is run on mother form.

  new Sticky();

The feature of this model is that it is easy to manage as the number of  notes, exchanged between notes, and so on.

I’m wondering whether A or B…

ガジェット系ブログもよろしく

すまたすログ

ガジェット系ブログです。主にChromebookの情報やMyマシンのASUS Flip C434TAのレビューなどを書いています。その他IT機器のアプリのレビュー、たまに100円ショップなど。


スポンサーリンク

 - C#応用編