public property_window(memo_window window)
        {
            InitializeComponent();
            memo    = window;
            setting = window.setting;

            title_label.Content            = string.Format("{0}のプロパティ", setting.title);
            memoID_label.Content           = string.Format("memoID:{0}", setting.memoID);
            topmost_checkBox.IsChecked     = memo.Topmost;
            titlehidden_checkbox.IsChecked = setting.title_hidden;
            opt_slider.Value           = setting.transper * 100;
            opt_label.Content          = string.Format("{0:0}", opt_slider.Value);
            enable_mouseover.IsChecked = !(setting.mouse_over);
        }
Example #2
0
        public double height;   //メモの高さ


        public void save_set(memo_setting s)
        {
            title        = s.title;
            content      = s.content;
            topmost      = s.topmost;
            title_hidden = s.title_hidden;
            memoID       = s.memoID;
            transper     = s.transper;
            back         = new my_color(s.back);
            font_color   = new my_color(s.font_color);
            mouse_over   = s.mouse_over;
            font         = s.font.ToString();
            fontsize     = s.fontsize;
            p            = s.p;
            width        = s.width;
            height       = s.height;
        }
Example #3
0
        public memo_window(string id = "0")
        {
            InitializeComponent();
            memo_textbox.Width  = this.Width;
            memo_textbox.Height = this.Height - 28;

            setting    = new memo_setting(this);
            back       = this.Background;
            mouse_over = true;

            Color c = Color.FromRgb(0, 0, 0);

            default_memocolor      = new SolidColorBrush(c);
            title_label.Foreground = default_memocolor;

            if (id != "0")
            {
                setting.memoID = id;
            }
        }