Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
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;
            }
        }